OChess v0.0.2
Programmer's Manual
gui.h
1
2// C++ code generated with wxFormBuilder (version 3.10.1-88b0f50)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
8#pragma once
9
10#include <wx/artprov.h>
11#include <wx/xrc/xmlres.h>
12#include <wx/string.h>
13#include <wx/menu.h>
14#include <wx/gdicmn.h>
15#include <wx/font.h>
16#include <wx/colour.h>
17#include <wx/settings.h>
18#include <wx/statusbr.h>
19#include <wx/aui/auibook.h>
20#include <wx/sizer.h>
21#include <wx/frame.h>
22#include <wx/bitmap.h>
23#include <wx/image.h>
24#include <wx/icon.h>
25#include <wx/statbmp.h>
26#include <wx/stattext.h>
27#include <wx/richtext/richtextctrl.h>
28#include <wx/panel.h>
29#include <wx/notebook.h>
30#include <wx/dialog.h>
31#include <wx/button.h>
32#include <wx/spinctrl.h>
33#include <wx/listctrl.h>
34#include <wx/listbox.h>
35#include <wx/textctrl.h>
36#include <wx/statline.h>
37#include <wx/propgrid/propgrid.h>
38#include <wx/propgrid/advprops.h>
39#include <wx/clrpicker.h>
40#include <wx/checkbox.h>
41#include <wx/splitter.h>
42#include <wx/toolbar.h>
43#include <wx/bmpbuttn.h>
44#include <wx/combobox.h>
45
47
48#define ID_LIVE_ENGINE_DIALOG 1000
49#define LIVE_ENGINE_PAUSE_BUTTON 1001
50#define ID_DIALOG_CANCEL_BUTTON 1002
51#define ID_DIALOG_IMPORT_BUTTON 1003
52#define ENGINE_SAVE_CONF_BUTTON 1004
53#define ENGINE_DELETE_CONF_BUTTON 1005
54#define ZOOM_IN_BTN 1006
55#define ZOOM_OUT_BTN 1007
56#define SWAP_BTN 1008
57#define COMMENT_INPUT_BOX 1009
58#define wxID__ANY 1010
59#define UPDATE_BTN 1011
60#define DELETE_BTN 1012
61#define LIVE_ANALYSIS_GAME_BUTTON 1013
62#define ID_SEARCH_TERMS 1014
63#define ID_APPLY_FILTER_BUTTON 1015
64#define ID_TABGAMES_GAME_LIST 1016
65#define ID_DELETE_BUTTON 1017
66#define ID_IMPORT_GAME_BUTTON 1018
67#define ID_LOAD_BUTTON 1019
68#define ID_IMPORT_SELECTION 1020
69#define ID_IMPORT_DB 1021
70#define ID_SAVE_BUTTON 1022
71
75class MainFrame : public wxFrame
76{
77 private:
78
79 protected:
80 wxMenuBar* menu_bar;
81 wxMenu* menu_file;
82 wxMenu* menu_game;
83 wxMenu* menu_db;
84 wxMenu* menu_engine;
85 wxMenu* menu_help;
86 wxStatusBar* status_bar;
87
88 public:
89 wxAuiNotebook* notebook;
90
91 MainFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("OChess"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
92
93 ~MainFrame();
94
95};
96
100class DialogAbout : public wxDialog
101{
102 private:
103
104 protected:
105 wxNotebook* m_notebook3;
106 wxPanel* info_panel;
107 wxPanel* credits_panel;
108
109 public:
110 wxStaticBitmap* app_icon;
111 wxStaticText* appname_text;
112 wxRichTextCtrl* info_richtext;
113 wxRichTextCtrl* credits_richtext;
114
115 DialogAbout( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 600,400 ), long style = wxDEFAULT_DIALOG_STYLE );
116
117 ~DialogAbout();
118
119};
120
124class DialogLiveEngine : public wxDialog
125{
126 private:
127
128 protected:
129 wxStaticText* current_engine_label;
130 wxStaticText* current_engine;
131 wxButton* engine_stop_button;
132 wxStaticText* multipv_label;
133 wxSpinCtrl* multipv;
134 wxStaticText* threads_label;
135 wxStaticText* threads;
136 wxStaticText* m_staticText13;
137 wxSpinCtrl* depth;
138 wxListCtrl* lines_list;
139
140 public:
141
142 DialogLiveEngine( wxWindow* parent, wxWindowID id = ID_LIVE_ENGINE_DIALOG, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE );
143
145
146};
147
151class DialogAppendGame : public wxDialog
152{
153 private:
154
155 protected:
156 wxStaticText* main_label;
157 wxListBox* game_list;
158 wxButton* cancel_button;
159 wxButton* import_button;
160
161 public:
162
163 DialogAppendGame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 388,263 ), long style = wxDEFAULT_DIALOG_STYLE );
164
166
167};
168
172class TabEngine : public wxPanel
173{
174 private:
175
176 protected:
177 wxStaticText* engine_name_label;
178 wxTextCtrl* engine_name;
179 wxStaticText* engine_location_label;
180 wxTextCtrl* engine_location;
181 wxStaticLine* separator_1;
182 wxStaticText* params_label;
183 wxPropertyGrid* engine_parameters;
184 wxButton* save_button;
185 wxButton* delete_button;
186
187 public:
188
189 TabEngine( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
190
191 ~TabEngine();
192
193};
194
198class PrefsEditor : public wxPanel
199{
200 private:
201
202 protected:
203 wxStaticText* color_margin_label;
204 wxColourPickerCtrl* color_margin;
205 wxStaticText* color_scrollbar_label;
206 wxColourPickerCtrl* color_scrollbar;
207 wxStaticText* color_scrollbarbg_label;
208 wxColourPickerCtrl* color_scrollbarbg;
209 wxStaticText* color_commentbg_label;
210 wxColourPickerCtrl* color_commentbg;
211 wxStaticText* row_size_label;
212 wxSpinCtrl* row_size;
213 wxStaticText* col_size_label;
214 wxSpinCtrl* col_size;
215 wxCheckBox* show_move_icons;
216
217 public:
218
219 PrefsEditor( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
220
221 ~PrefsEditor();
222
223};
224
228class PrefsBoard : public wxPanel
229{
230 private:
231
232 protected:
233 wxSplitterWindow* splitter;
234 wxPanel* board_canvas;
235 wxPanel* options_panel;
236 wxStaticText* piece_theme_label;
237 wxListBox* piece_theme;
238 wxStaticText* square_theme_label;
239 wxListBox* square_theme;
240 wxCheckBox* show_side_badge;
241 wxCheckBox* show_captures;
242 wxCheckBox* black_by_default;
243 wxStaticText* border_radius_label;
244 wxSpinCtrl* corner_radius;
245 wxStaticText* board_size_label;
246 wxSpinCtrl* square_size;
247
248 public:
249
250 PrefsBoard( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 756,751 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
251
252 ~PrefsBoard();
253
254 void splitterOnIdle( wxIdleEvent& )
255 {
256 splitter->SetSashPosition( 350 );
257 splitter->Disconnect( wxEVT_IDLE, wxIdleEventHandler( PrefsBoard::splitterOnIdle ), NULL, this );
258 }
259
260};
261
265class TabBase : public wxPanel
266{
267 private:
268
269 protected:
270 wxNotebook* notebook;
271
272 public:
273
274 TabBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 884,624 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
275
276 ~TabBase();
277
278};
279
283class TabGameLeftPanel : public wxPanel
284{
285 private:
286
287 protected:
288 wxBoxSizer* main_sizer;
289 wxToolBar* game_toolbar;
290 wxBitmapButton* zoomin_button;
291 wxBitmapButton* zoomout_button;
292 wxBitmapButton* swap_button;
293 wxTextCtrl* fen_text_field;
294
295 public:
296
297 TabGameLeftPanel( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 998,410 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
298
300
301};
302
306class TabGameRightPanel : public wxPanel
307{
308 private:
309
310 protected:
311 wxNotebook* notebook;
312 wxPanel* editor_page;
313 wxBoxSizer* editor_page_sizer;
314 wxTextCtrl* opening_label;
315 wxBoxSizer* editor_canvas_sizer;
316 wxStaticLine* m_staticline1;
317 wxStaticText* comment_label;
318 wxTextCtrl* comment_input;
319 wxPanel* nag_panel;
320 wxButton* nag_1;
321 wxButton* nag_2;
322 wxButton* nag_3;
323 wxButton* nag_4;
324 wxButton* nag_5;
325 wxButton* nag_6;
326 wxButton* nag_10;
327 wxButton* nag_18;
328 wxButton* nag_19;
329 wxButton* nag_del;
330 wxPanel* tags_page;
331 wxTextCtrl* tagTextCtrl;
332 wxTextCtrl* valueTextCtrl;
333 wxButton* update_button;
334 wxListCtrl* tags_list;
335 wxButton* delete_button;
336 wxPanel* engine_page;
337 wxStaticText* engine_list_label;
338 wxListBox* engine_list;
339 wxButton* analyze_game_button;
340 wxButton* live_analysis_button;
341
342 public:
343
344 TabGameRightPanel( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,379 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
345
347
348};
349
353class TabBase_TabGames : public wxPanel
354{
355 private:
356
357 protected:
358 wxStaticText* m_staticText28;
359 wxTextCtrl* search_terms;
360 wxButton* apply_filter_button;
361 wxListCtrl* game_list;
362 wxButton* delete_button;
363
364 public:
365
366 TabBase_TabGames( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 559,522 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
367
369
370};
371
375class TabBase_TabImport : public wxPanel
376{
377 private:
378
379 protected:
380 wxTextCtrl* pending_imports;
381 wxStaticText* from_game_label;
382 wxComboBox* opened_game_list;
383 wxButton* import_from_game_button;
384 wxStaticLine* m_staticline4;
385 wxStaticText* m_staticText29;
386 wxComboBox* opened_db_list;
387 wxButton* load_button;
388 wxListCtrl* game_list;
389 wxButton* import_from_db_button;
390 wxButton* m_button16;
391
392 public:
393
394 TabBase_TabImport( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,661 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
395
397
398};
399
403class TabBase_TabManage : public wxPanel
404{
405 private:
406
407 protected:
408 wxTextCtrl* informations;
409 wxButton* save_button;
410
411 public:
412
413 TabBase_TabManage( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
414
416
417};
418
Class DialogAbout.
Definition: gui.h:101
Class DialogAppendGame.
Definition: gui.h:152
Class DialogLiveEngine.
Definition: gui.h:125
Class MainFrame.
Definition: gui.h:76
Class PrefsBoard.
Definition: gui.h:229
Class PrefsEditor.
Definition: gui.h:199
Class TabBase_TabGames.
Definition: gui.h:354
Class TabBase_TabImport.
Definition: gui.h:376
Class TabBase_TabManage.
Definition: gui.h:404
Class TabBase.
Definition: gui.h:266
Class TabEngine.
Definition: gui.h:173
Class TabGameLeftPanel.
Definition: gui.h:284
Class TabGameRightPanel.
Definition: gui.h:307