]>
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_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "settingsdialog.cpp"
25 #include "wx/dialog.h"
26 #include "wx/textctrl.h"
27 #include "wx/checkbox.h"
32 * Forward declarations
35 ////@begin forward declarations
36 class ctGeneralSettingsDialog
;
37 class ctLocationSettingsDialog
;
38 ////@end forward declarations
44 ////@begin control identifiers
45 #define ID_SETTINGS_DIALOG 10000
46 #define ID_NOTEBOOK 10001
47 #define ID_GENERAL_SETTINGS_DIALOG 10005
48 #define ID_LOAD_LAST_DOCUMENT 10006
49 #define ID_SHOW_TOOLTIPS 10007
50 #define ID_DEFAULT_FILE_KIND 10003
51 #define ID_LOCATION_SETTINGS_DIALOG 10008
52 #define ID_WXWIN_HIERARCHY 10010
53 #define ID_CHOOSE_WXWIN_HIERARCHY 10011
54 #define ID_USE_WXWIN 10012
55 ////@end control identifiers
58 * ctSettingsDialog class declaration
61 class ctSettingsDialog
: public wxDialog
65 ctSettingsDialog( wxWindow
* parent
);
67 /// Creates the controls and sizers
68 void CreateControls();
70 ////@begin ctSettingsDialog event handler declarations
72 /// Event handler for wxID_OK
73 void OnOk( wxCommandEvent
& event
);
75 /// Event handler for wxID_CANCEL
76 void OnCancel( wxCommandEvent
& event
);
78 /// Event handler for wxID_HELP
79 void OnHelp( wxCommandEvent
& event
);
81 ////@end ctSettingsDialog event handler declarations
83 ////@begin ctSettingsDialog member function declarations
85 ////@end ctSettingsDialog member function declarations
87 /// Should we show tooltips?
88 static bool ShowToolTips();
90 DECLARE_CLASS( ctSettingsDialog
)
96 wxNotebook
* m_notebook
;
100 * ctGeneralSettingsDialog class declaration
103 class ctGeneralSettingsDialog
: public wxPanel
107 ctGeneralSettingsDialog( wxWindow
* parent
, wxWindowID id
= wxID_ANY
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
, long style
= wxNO_BORDER
|wxTAB_TRAVERSAL
);
109 /// Creates the controls and sizers
110 void CreateControls();
112 ////@begin ctGeneralSettingsDialog event handler declarations
114 ////@end ctGeneralSettingsDialog event handler declarations
116 ////@begin ctGeneralSettingsDialog member function declarations
118 ////@end ctGeneralSettingsDialog member function declarations
120 /// Should we show tooltips?
121 static bool ShowToolTips();
123 DECLARE_CLASS( ctGeneralSettingsDialog
)
124 DECLARE_EVENT_TABLE()
128 * ctLocationSettingsDialog class declaration
131 class ctLocationSettingsDialog
: public wxPanel
135 ctLocationSettingsDialog( wxWindow
* parent
, wxWindowID id
= wxID_ANY
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
, long style
= wxNO_BORDER
|wxTAB_TRAVERSAL
);
137 /// Creates the controls and sizers
138 void CreateControls();
140 ////@begin ctLocationSettingsDialog event handler declarations
142 /// Update event handler for ID_WXWIN_HIERARCHY
143 void OnUpdateWxwinHierarchy( wxUpdateUIEvent
& event
);
145 /// Event handler for ID_CHOOSE_WXWIN_HIERARCHY
146 void OnChooseWxwinHierarchy( wxCommandEvent
& event
);
148 /// Update event handler for ID_CHOOSE_WXWIN_HIERARCHY
149 void OnUpdateChooseWxwinHierarchy( wxUpdateUIEvent
& event
);
151 ////@end ctLocationSettingsDialog event handler declarations
153 ////@begin ctLocationSettingsDialog member function declarations
155 ////@end ctLocationSettingsDialog member function declarations
157 /// Should we show tooltips?
158 static bool ShowToolTips();
160 DECLARE_CLASS( ctLocationSettingsDialog
)
161 DECLARE_EVENT_TABLE()
166 wxTextCtrl
* m_wxWinHierarchy
;
167 wxCheckBox
* m_wxWinUse
;
171 // _SETTINGSDIALOG_H_