]>
git.saurik.com Git - wxWidgets.git/blob - utils/configtool/src/settingsdialog.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: settingsdialog.h
3 // Purpose: Settings dialog
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _SETTINGSDIALOG_H_
13 #define _SETTINGSDIALOG_H_
21 #include "wx/dialog.h"
22 #include "wx/textctrl.h"
23 #include "wx/checkbox.h"
28 * Forward declarations
31 ////@begin forward declarations
32 class ctGeneralSettingsDialog
;
33 class ctLocationSettingsDialog
;
34 ////@end forward declarations
40 ////@begin control identifiers
41 #define ID_SETTINGS_DIALOG 10000
42 #define ID_NOTEBOOK 10001
43 #define ID_GENERAL_SETTINGS_DIALOG 10005
44 #define ID_LOAD_LAST_DOCUMENT 10006
45 #define ID_SHOW_TOOLTIPS 10007
46 #define ID_DEFAULT_FILE_KIND 10003
47 #define ID_LOCATION_SETTINGS_DIALOG 10008
48 #define ID_WXWIN_HIERARCHY 10010
49 #define ID_CHOOSE_WXWIN_HIERARCHY 10011
50 #define ID_USE_WXWIN 10012
51 ////@end control identifiers
54 * ctSettingsDialog class declaration
57 class ctSettingsDialog
: public wxDialog
61 ctSettingsDialog( wxWindow
* parent
);
63 /// Creates the controls and sizers
64 void CreateControls();
66 ////@begin ctSettingsDialog event handler declarations
68 /// Event handler for wxID_OK
69 void OnOk( wxCommandEvent
& event
);
71 /// Event handler for wxID_CANCEL
72 void OnCancel( wxCommandEvent
& event
);
74 /// Event handler for wxID_HELP
75 void OnHelp( wxCommandEvent
& event
);
77 ////@end ctSettingsDialog event handler declarations
79 ////@begin ctSettingsDialog member function declarations
81 ////@end ctSettingsDialog member function declarations
83 /// Should we show tooltips?
84 static bool ShowToolTips();
86 DECLARE_CLASS( ctSettingsDialog
)
92 wxNotebook
* m_notebook
;
96 * ctGeneralSettingsDialog class declaration
99 class ctGeneralSettingsDialog
: public wxPanel
103 ctGeneralSettingsDialog( wxWindow
* parent
, wxWindowID id
= wxID_ANY
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
, long style
= wxNO_BORDER
|wxTAB_TRAVERSAL
);
105 /// Creates the controls and sizers
106 void CreateControls();
108 ////@begin ctGeneralSettingsDialog event handler declarations
110 ////@end ctGeneralSettingsDialog event handler declarations
112 ////@begin ctGeneralSettingsDialog member function declarations
114 ////@end ctGeneralSettingsDialog member function declarations
116 /// Should we show tooltips?
117 static bool ShowToolTips();
119 DECLARE_CLASS( ctGeneralSettingsDialog
)
120 DECLARE_EVENT_TABLE()
124 * ctLocationSettingsDialog class declaration
127 class ctLocationSettingsDialog
: public wxPanel
131 ctLocationSettingsDialog( wxWindow
* parent
, wxWindowID id
= wxID_ANY
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
, long style
= wxNO_BORDER
|wxTAB_TRAVERSAL
);
133 /// Creates the controls and sizers
134 void CreateControls();
136 ////@begin ctLocationSettingsDialog event handler declarations
138 /// Update event handler for ID_WXWIN_HIERARCHY
139 void OnUpdateWxwinHierarchy( wxUpdateUIEvent
& event
);
141 /// Event handler for ID_CHOOSE_WXWIN_HIERARCHY
142 void OnChooseWxwinHierarchy( wxCommandEvent
& event
);
144 /// Update event handler for ID_CHOOSE_WXWIN_HIERARCHY
145 void OnUpdateChooseWxwinHierarchy( wxUpdateUIEvent
& event
);
147 ////@end ctLocationSettingsDialog event handler declarations
149 ////@begin ctLocationSettingsDialog member function declarations
151 ////@end ctLocationSettingsDialog member function declarations
153 /// Should we show tooltips?
154 static bool ShowToolTips();
156 DECLARE_CLASS( ctLocationSettingsDialog
)
157 DECLARE_EVENT_TABLE()
162 wxTextCtrl
* m_wxWinHierarchy
;
163 wxCheckBox
* m_wxWinUse
;
167 // _SETTINGSDIALOG_H_