]>
Commit | Line | Data |
---|---|---|
d7463f75 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: settingsdialog.h | |
3 | // Purpose: | |
4 | // Author: | |
5 | // Modified by: | |
6 | // Created: | |
7 | // RCS-ID: | |
8 | // Copyright: | |
9 | // Licence: | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _SETTINGSDIALOG_H_ | |
13 | #define _SETTINGSDIALOG_H_ | |
14 | ||
15 | /*! | |
16 | * Includes | |
17 | */ | |
18 | ||
19 | ////@begin includes | |
20 | ////@end includes | |
21 | ||
22 | /*! | |
23 | * Forward declarations | |
24 | */ | |
25 | ||
26 | ////@begin forward declarations | |
27 | class ctGeneralSettingsDialog; | |
28 | class ctLocationSettingsDialog; | |
29 | ////@end forward declarations | |
30 | ||
31 | /*! | |
32 | * Control identifiers | |
33 | */ | |
34 | ||
35 | ////@begin control identifiers | |
36 | #define ID_SETTINGS_DIALOG 10000 | |
37 | #define ID_NOTEBOOK 10001 | |
38 | #define ID_GENERAL_SETTINGS_DIALOG 10005 | |
39 | #define ID_LOAD_LAST_DOCUMENT 10006 | |
40 | #define ID_SHOW_TOOLTIPS 10007 | |
41 | #define ID_LOCATION_SETTINGS_DIALOG 10008 | |
42 | #define ID_WXWIN_HIERARCHY 10010 | |
43 | #define ID_CHOOSE_WXWIN_HIERARCHY 10011 | |
44 | #define ID_USE_WXWIN 10012 | |
45 | ////@end control identifiers | |
46 | ||
47 | /*! | |
48 | * ctSettingsDialog class declaration | |
49 | */ | |
50 | ||
51 | class ctSettingsDialog: public wxDialog | |
52 | { | |
53 | public: | |
54 | /// Constructor | |
55 | ctSettingsDialog( wxWindow* parent, wxWindowID id = -1, | |
56 | const wxString& caption = _("Configuration Settings"), | |
57 | const wxPoint& pos = wxDefaultPosition, | |
58 | const wxSize& size = wxDefaultSize, | |
59 | long style = wxCAPTION|wxSYSTEM_MENU ); | |
60 | ||
61 | /// Creates the controls and sizers | |
62 | void CreateControls(); | |
63 | ||
64 | ////@begin ctSettingsDialog event handler declarations | |
65 | ||
66 | /// Event handler for wxID_OK | |
67 | void OnOk( wxCommandEvent& event ); | |
68 | ||
69 | /// Event handler for wxID_CANCEL | |
70 | void OnCancel( wxCommandEvent& event ); | |
71 | ||
72 | /// Event handler for wxID_HELP | |
73 | void OnHelp( wxCommandEvent& event ); | |
74 | ||
75 | ////@end ctSettingsDialog event handler declarations | |
76 | ||
77 | ////@begin ctSettingsDialog member function declarations | |
78 | ||
79 | ////@end ctSettingsDialog member function declarations | |
80 | ||
81 | /// Should we show tooltips? | |
82 | static bool ShowToolTips(); | |
83 | ||
84 | DECLARE_CLASS( ctSettingsDialog ) | |
85 | DECLARE_EVENT_TABLE() | |
86 | }; | |
87 | ||
88 | /*! | |
89 | * ctGeneralSettingsDialog class declaration | |
90 | */ | |
91 | ||
92 | class ctGeneralSettingsDialog: public wxPanel | |
93 | { | |
94 | public: | |
95 | /// Constructor | |
96 | ctGeneralSettingsDialog( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER|wxTAB_TRAVERSAL ); | |
97 | ||
98 | /// Creates the controls and sizers | |
99 | void CreateControls(); | |
100 | ||
101 | ////@begin ctGeneralSettingsDialog event handler declarations | |
102 | ||
103 | ////@end ctGeneralSettingsDialog event handler declarations | |
104 | ||
105 | ////@begin ctGeneralSettingsDialog member function declarations | |
106 | ||
107 | ////@end ctGeneralSettingsDialog member function declarations | |
108 | ||
109 | /// Should we show tooltips? | |
110 | static bool ShowToolTips(); | |
111 | ||
112 | DECLARE_CLASS( ctGeneralSettingsDialog ) | |
113 | DECLARE_EVENT_TABLE() | |
114 | }; | |
115 | ||
116 | /*! | |
117 | * ctLocationSettingsDialog class declaration | |
118 | */ | |
119 | ||
120 | class ctLocationSettingsDialog: public wxPanel | |
121 | { | |
122 | public: | |
123 | /// Constructor | |
124 | ctLocationSettingsDialog( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER|wxTAB_TRAVERSAL ); | |
125 | ||
126 | /// Creates the controls and sizers | |
127 | void CreateControls(); | |
128 | ||
129 | ////@begin ctLocationSettingsDialog event handler declarations | |
130 | ||
131 | /// Update event handler for ID_WXWIN_HIERARCHY | |
132 | void OnUpdateWxwinHierarchy( wxUpdateUIEvent& event ); | |
133 | ||
134 | /// Event handler for ID_CHOOSE_WXWIN_HIERARCHY | |
135 | void OnChooseWxwinHierarchy( wxCommandEvent& event ); | |
136 | ||
137 | /// Update event handler for ID_CHOOSE_WXWIN_HIERARCHY | |
138 | void OnUpdateChooseWxwinHierarchy( wxUpdateUIEvent& event ); | |
139 | ||
140 | ////@end ctLocationSettingsDialog event handler declarations | |
141 | ||
142 | ////@begin ctLocationSettingsDialog member function declarations | |
143 | ||
144 | ////@end ctLocationSettingsDialog member function declarations | |
145 | ||
146 | /// Should we show tooltips? | |
147 | static bool ShowToolTips(); | |
148 | ||
149 | DECLARE_CLASS( ctLocationSettingsDialog ) | |
150 | DECLARE_EVENT_TABLE() | |
151 | }; | |
152 | ||
153 | #endif | |
154 | // _SETTINGSDIALOG_H_ |