]> git.saurik.com Git - wxWidgets.git/blob - utils/configtool/src/settingsdialog.h
File/dir dialog styles and other changes (patch 1488371):
[wxWidgets.git] / utils / configtool / src / settingsdialog.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: settingsdialog.h
3 // Purpose: Settings dialog
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 2002-09-04
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _SETTINGSDIALOG_H_
13 #define _SETTINGSDIALOG_H_
14
15 /*!
16 * Includes
17 */
18
19 ////@begin includes
20
21 #include "wx/dialog.h"
22 #include "wx/textctrl.h"
23 #include "wx/checkbox.h"
24
25 ////@end includes
26
27 /*!
28 * Forward declarations
29 */
30
31 ////@begin forward declarations
32 class ctGeneralSettingsDialog;
33 class ctLocationSettingsDialog;
34 ////@end forward declarations
35
36 /*!
37 * Control identifiers
38 */
39
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
52
53 /*!
54 * ctSettingsDialog class declaration
55 */
56
57 class ctSettingsDialog: public wxDialog
58 {
59 public:
60 /// Constructor
61 ctSettingsDialog( wxWindow* parent );
62
63 /// Creates the controls and sizers
64 void CreateControls();
65
66 ////@begin ctSettingsDialog event handler declarations
67
68 /// Event handler for wxID_OK
69 void OnOk( wxCommandEvent& event );
70
71 /// Event handler for wxID_CANCEL
72 void OnCancel( wxCommandEvent& event );
73
74 /// Event handler for wxID_HELP
75 void OnHelp( wxCommandEvent& event );
76
77 ////@end ctSettingsDialog event handler declarations
78
79 ////@begin ctSettingsDialog member function declarations
80
81 ////@end ctSettingsDialog member function declarations
82
83 /// Should we show tooltips?
84 static bool ShowToolTips();
85
86 DECLARE_CLASS( ctSettingsDialog )
87 DECLARE_EVENT_TABLE()
88
89 protected:
90
91 // Dialog controls.
92 wxNotebook* m_notebook;
93 };
94
95 /*!
96 * ctGeneralSettingsDialog class declaration
97 */
98
99 class ctGeneralSettingsDialog: public wxPanel
100 {
101 public:
102 /// Constructor
103 ctGeneralSettingsDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER|wxTAB_TRAVERSAL );
104
105 /// Creates the controls and sizers
106 void CreateControls();
107
108 ////@begin ctGeneralSettingsDialog event handler declarations
109
110 ////@end ctGeneralSettingsDialog event handler declarations
111
112 ////@begin ctGeneralSettingsDialog member function declarations
113
114 ////@end ctGeneralSettingsDialog member function declarations
115
116 /// Should we show tooltips?
117 static bool ShowToolTips();
118
119 DECLARE_CLASS( ctGeneralSettingsDialog )
120 DECLARE_EVENT_TABLE()
121 };
122
123 /*!
124 * ctLocationSettingsDialog class declaration
125 */
126
127 class ctLocationSettingsDialog: public wxPanel
128 {
129 public:
130 /// Constructor
131 ctLocationSettingsDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER|wxTAB_TRAVERSAL );
132
133 /// Creates the controls and sizers
134 void CreateControls();
135
136 ////@begin ctLocationSettingsDialog event handler declarations
137
138 /// Update event handler for ID_WXWIN_HIERARCHY
139 void OnUpdateWxwinHierarchy( wxUpdateUIEvent& event );
140
141 /// Event handler for ID_CHOOSE_WXWIN_HIERARCHY
142 void OnChooseWxwinHierarchy( wxCommandEvent& event );
143
144 /// Update event handler for ID_CHOOSE_WXWIN_HIERARCHY
145 void OnUpdateChooseWxwinHierarchy( wxUpdateUIEvent& event );
146
147 ////@end ctLocationSettingsDialog event handler declarations
148
149 ////@begin ctLocationSettingsDialog member function declarations
150
151 ////@end ctLocationSettingsDialog member function declarations
152
153 /// Should we show tooltips?
154 static bool ShowToolTips();
155
156 DECLARE_CLASS( ctLocationSettingsDialog )
157 DECLARE_EVENT_TABLE()
158
159 protected:
160
161 // Dialog controls.
162 wxTextCtrl* m_wxWinHierarchy;
163 wxCheckBox* m_wxWinUse;
164 };
165
166 #endif
167 // _SETTINGSDIALOG_H_