]>
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"
27 * Forward declarations
30 ////@begin forward declarations
31 class ctGeneralSettingsDialog
;
32 class ctLocationSettingsDialog
;
33 ////@end forward declarations
39 ////@begin control identifiers
40 #define ID_SETTINGS_DIALOG 10000
41 #define ID_NOTEBOOK 10001
42 #define ID_GENERAL_SETTINGS_DIALOG 10005
43 #define ID_LOAD_LAST_DOCUMENT 10006
44 #define ID_SHOW_TOOLTIPS 10007
45 #define ID_DEFAULT_FILE_KIND 10003
46 #define ID_LOCATION_SETTINGS_DIALOG 10008
47 #define ID_WXWIN_HIERARCHY 10010
48 #define ID_CHOOSE_WXWIN_HIERARCHY 10011
49 #define ID_USE_WXWIN 10012
50 ////@end control identifiers
53 * ctSettingsDialog class declaration
56 class ctSettingsDialog
: public wxDialog
60 ctSettingsDialog( wxWindow
* parent
);
62 /// Creates the controls and sizers
63 void CreateControls();
65 ////@begin ctSettingsDialog event handler declarations
67 /// Event handler for wxID_OK
68 void OnOk( wxCommandEvent
& event
);
70 /// Event handler for wxID_CANCEL
71 void OnCancel( wxCommandEvent
& event
);
73 /// Event handler for wxID_HELP
74 void OnHelp( wxCommandEvent
& event
);
76 ////@end ctSettingsDialog event handler declarations
78 ////@begin ctSettingsDialog member function declarations
80 ////@end ctSettingsDialog member function declarations
82 /// Should we show tooltips?
83 static bool ShowToolTips();
85 DECLARE_CLASS( ctSettingsDialog
)
91 wxNotebook
* m_notebook
;
95 * ctGeneralSettingsDialog class declaration
98 class ctGeneralSettingsDialog
: public wxPanel
102 ctGeneralSettingsDialog( wxWindow
* parent
, wxWindowID id
= wxID_ANY
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
, long style
= wxNO_BORDER
|wxTAB_TRAVERSAL
);
104 /// Creates the controls and sizers
105 void CreateControls();
107 ////@begin ctGeneralSettingsDialog event handler declarations
109 ////@end ctGeneralSettingsDialog event handler declarations
111 ////@begin ctGeneralSettingsDialog member function declarations
113 ////@end ctGeneralSettingsDialog member function declarations
115 /// Should we show tooltips?
116 static bool ShowToolTips();
118 DECLARE_CLASS( ctGeneralSettingsDialog
)
119 DECLARE_EVENT_TABLE()
123 * ctLocationSettingsDialog class declaration
126 class ctLocationSettingsDialog
: public wxPanel
130 ctLocationSettingsDialog( wxWindow
* parent
, wxWindowID id
= wxID_ANY
, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
, long style
= wxNO_BORDER
|wxTAB_TRAVERSAL
);
132 /// Creates the controls and sizers
133 void CreateControls();
135 ////@begin ctLocationSettingsDialog event handler declarations
137 /// Update event handler for ID_WXWIN_HIERARCHY
138 void OnUpdateWxwinHierarchy( wxUpdateUIEvent
& event
);
140 /// Event handler for ID_CHOOSE_WXWIN_HIERARCHY
141 void OnChooseWxwinHierarchy( wxCommandEvent
& event
);
143 /// Update event handler for ID_CHOOSE_WXWIN_HIERARCHY
144 void OnUpdateChooseWxwinHierarchy( wxUpdateUIEvent
& event
);
146 ////@end ctLocationSettingsDialog event handler declarations
148 ////@begin ctLocationSettingsDialog member function declarations
150 ////@end ctLocationSettingsDialog member function declarations
152 /// Should we show tooltips?
153 static bool ShowToolTips();
155 DECLARE_CLASS( ctLocationSettingsDialog
)
156 DECLARE_EVENT_TABLE()
161 wxTextCtrl
* m_wxWinHierarchy
;
162 wxCheckBox
* m_wxWinUse
;
166 // _SETTINGSDIALOG_H_