Code::Blocks
SVN r11506
include
editpathdlg.h
Go to the documentation of this file.
1
/*
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
4
*/
5
6
#ifndef EDITPATHDLG_H
7
#define EDITPATHDLG_H
8
9
#include "
scrollingdialog.h
"
10
#include <
wx/intl.h
>
11
12
class
DLLIMPORT
EditPathDlg
:
public
wxScrollingDialog
13
{
14
public
:
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
23
24
~
EditPathDlg
()
override
;
25
EditPathDlg
&
operator=
(
const
EditPathDlg
&){
return
*
this
; }
// just to satisfy script bindings (never used)
26
27
const
wxString
&
GetPath
(){
return
m_Path; }
28
void
EndModal
(
int
retCode)
override
;
29
30
protected
:
31
void
OnUpdateUI(
wxUpdateUIEvent
& event);
32
void
OnBrowse(
wxCommandEvent
& event);
33
void
OnOther(
wxCommandEvent
& event);
34
35
wxString
m_Path
;
36
wxString
m_Message
;
37
wxString
m_Basepath
;
38
wxString
m_Filter
;
39
bool
m_WantDir
;
40
bool
m_AllowMultiSel
;
41
bool
m_AskMakeRelative
;
42
bool
m_ShowCreateDirButton
;
43
44
private
:
45
46
DECLARE_EVENT_TABLE();
47
};
48
49
#endif // EDITPATHDLG_H
ScriptBindings::EndModal
void EndModal(int retCode)
Definition:
sc_dialog.cpp:112
intl.h
_T
#define _T(string)
EditPathDlg::operator=
EditPathDlg & operator=(const EditPathDlg &)
Definition:
editpathdlg.h:25
wxScrollingDialog
Definition:
scrollingdialog.h:163
scrollingdialog.h
EditPathDlg
Definition:
editpathdlg.h:12
EditPathDlg::m_Basepath
wxString m_Basepath
Definition:
editpathdlg.h:37
wxUpdateUIEvent
wxCommandEvent
EditPathDlg::m_Message
wxString m_Message
Definition:
editpathdlg.h:36
DLLIMPORT
#define DLLIMPORT
Definition:
settings.h:16
EditPathDlg::m_WantDir
bool m_WantDir
Definition:
editpathdlg.h:39
EditPathDlg::m_AllowMultiSel
bool m_AllowMultiSel
Definition:
editpathdlg.h:40
wxString
EditPathDlg::GetPath
const wxString & GetPath()
Definition:
editpathdlg.h:27
_
const wxString & _(const wxString &string)
EditPathDlg::m_Path
wxString m_Path
Definition:
editpathdlg.h:35
EditPathDlg::m_AskMakeRelative
bool m_AskMakeRelative
Definition:
editpathdlg.h:41
EditPathDlg::m_Filter
wxString m_Filter
Definition:
editpathdlg.h:38
EditPathDlg::m_ShowCreateDirButton
bool m_ShowCreateDirButton
Definition:
editpathdlg.h:42
wxWindow
Generated by
1.8.13