]>
Commit | Line | Data |
---|---|---|
d7463f75 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: settingsdialog.h | |
d9ab621e WS |
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: | |
d7463f75 JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _SETTINGSDIALOG_H_ | |
13 | #define _SETTINGSDIALOG_H_ | |
14 | ||
71ada1a5 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
f8105809 JS |
16 | #pragma interface "settingsdialog.cpp" |
17 | #endif | |
18 | ||
d7463f75 JS |
19 | /*! |
20 | * Includes | |
21 | */ | |
22 | ||
23 | ////@begin includes | |
24 | ////@end includes | |
25 | ||
26 | /*! | |
27 | * Forward declarations | |
28 | */ | |
29 | ||
30 | ////@begin forward declarations | |
31 | class ctGeneralSettingsDialog; | |
32 | class ctLocationSettingsDialog; | |
33 | ////@end forward declarations | |
34 | ||
35 | /*! | |
36 | * Control identifiers | |
37 | */ | |
38 | ||
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 | |
afc51590 | 45 | #define ID_DEFAULT_FILE_KIND 10003 |
d7463f75 JS |
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 | |
51 | ||
52 | /*! | |
53 | * ctSettingsDialog class declaration | |
54 | */ | |
55 | ||
56 | class ctSettingsDialog: public wxDialog | |
57 | { | |
58 | public: | |
59 | /// Constructor | |
d9ab621e | 60 | ctSettingsDialog( wxWindow* parent ); |
d7463f75 JS |
61 | |
62 | /// Creates the controls and sizers | |
63 | void CreateControls(); | |
64 | ||
65 | ////@begin ctSettingsDialog event handler declarations | |
66 | ||
67 | /// Event handler for wxID_OK | |
68 | void OnOk( wxCommandEvent& event ); | |
69 | ||
70 | /// Event handler for wxID_CANCEL | |
71 | void OnCancel( wxCommandEvent& event ); | |
72 | ||
73 | /// Event handler for wxID_HELP | |
74 | void OnHelp( wxCommandEvent& event ); | |
75 | ||
76 | ////@end ctSettingsDialog event handler declarations | |
77 | ||
78 | ////@begin ctSettingsDialog member function declarations | |
79 | ||
80 | ////@end ctSettingsDialog member function declarations | |
81 | ||
82 | /// Should we show tooltips? | |
83 | static bool ShowToolTips(); | |
84 | ||
85 | DECLARE_CLASS( ctSettingsDialog ) | |
86 | DECLARE_EVENT_TABLE() | |
d9ab621e WS |
87 | |
88 | protected: | |
89 | ||
90 | // Dialog controls. | |
91 | wxNotebook* m_notebook; | |
d7463f75 JS |
92 | }; |
93 | ||
94 | /*! | |
95 | * ctGeneralSettingsDialog class declaration | |
96 | */ | |
97 | ||
98 | class ctGeneralSettingsDialog: public wxPanel | |
99 | { | |
100 | public: | |
101 | /// Constructor | |
4fe30bce | 102 | ctGeneralSettingsDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER|wxTAB_TRAVERSAL ); |
d7463f75 JS |
103 | |
104 | /// Creates the controls and sizers | |
105 | void CreateControls(); | |
106 | ||
107 | ////@begin ctGeneralSettingsDialog event handler declarations | |
108 | ||
109 | ////@end ctGeneralSettingsDialog event handler declarations | |
110 | ||
111 | ////@begin ctGeneralSettingsDialog member function declarations | |
112 | ||
113 | ////@end ctGeneralSettingsDialog member function declarations | |
114 | ||
115 | /// Should we show tooltips? | |
116 | static bool ShowToolTips(); | |
117 | ||
118 | DECLARE_CLASS( ctGeneralSettingsDialog ) | |
119 | DECLARE_EVENT_TABLE() | |
120 | }; | |
121 | ||
122 | /*! | |
123 | * ctLocationSettingsDialog class declaration | |
124 | */ | |
125 | ||
126 | class ctLocationSettingsDialog: public wxPanel | |
127 | { | |
128 | public: | |
129 | /// Constructor | |
4fe30bce | 130 | ctLocationSettingsDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER|wxTAB_TRAVERSAL ); |
d7463f75 JS |
131 | |
132 | /// Creates the controls and sizers | |
133 | void CreateControls(); | |
134 | ||
135 | ////@begin ctLocationSettingsDialog event handler declarations | |
136 | ||
137 | /// Update event handler for ID_WXWIN_HIERARCHY | |
138 | void OnUpdateWxwinHierarchy( wxUpdateUIEvent& event ); | |
139 | ||
140 | /// Event handler for ID_CHOOSE_WXWIN_HIERARCHY | |
141 | void OnChooseWxwinHierarchy( wxCommandEvent& event ); | |
142 | ||
143 | /// Update event handler for ID_CHOOSE_WXWIN_HIERARCHY | |
144 | void OnUpdateChooseWxwinHierarchy( wxUpdateUIEvent& event ); | |
145 | ||
146 | ////@end ctLocationSettingsDialog event handler declarations | |
147 | ||
148 | ////@begin ctLocationSettingsDialog member function declarations | |
149 | ||
150 | ////@end ctLocationSettingsDialog member function declarations | |
151 | ||
152 | /// Should we show tooltips? | |
153 | static bool ShowToolTips(); | |
154 | ||
155 | DECLARE_CLASS( ctLocationSettingsDialog ) | |
156 | DECLARE_EVENT_TABLE() | |
d9ab621e WS |
157 | |
158 | protected: | |
159 | ||
160 | // Dialog controls. | |
161 | wxTextCtrl* m_wxWinHierarchy; | |
162 | wxCheckBox* m_wxWinUse; | |
d7463f75 JS |
163 | }; |
164 | ||
165 | #endif | |
166 | // _SETTINGSDIALOG_H_ |