2
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3
* http://www.gnu.org/licenses/lgpl-3.0.html
12
class EditPathDlg : public wxDialog
15
EditPathDlg(wxWindow* parent,
16
const wxString& path, // initial path
17
const wxString& basepath, // for relative pathes
18
const wxString& title = _("Edit Path"), // title of the dialog
19
const wxString& message = _T(""), // message displayed in the dialogs
20
const bool wantDir = true, // whether to open a dir or a file dialog
21
const bool allowMultiSel = false, // whether to allow for multiple files selection
22
const wxString& filter = _("All files(*)|*")); // wildcard for files
24
virtual ~EditPathDlg();
25
EditPathDlg& operator=(const EditPathDlg&){ return *this; } // just to satisfy script bindings (never used)
27
const wxString& GetPath(){ return m_Path; }
28
void EndModal(int retCode);
31
void OnBrowse(wxCommandEvent& event);
32
void OnUpdateUI(wxUpdateUIEvent& event);
35
wxString m_Message, m_Basepath, m_Filter;
36
bool m_WantDir, m_AllowMultiSel, m_AskMakeRelative, m_ShowCreateDirButton;
39
DECLARE_EVENT_TABLE();
42
#endif // EDITPATHDLG_H