OChess v0.0.2
Programmer's Manual
MainWindow Class Reference

Main GUI window of OChess. More...

#include <MainWindow.hpp>

Inheritance diagram for MainWindow:
MainFrame

Public Member Functions

 MainWindow ()
 -------— MainWindow -------— More...
 
TabInfosNewGame (std::shared_ptr< Game > game)
 
void ApplyPreferences ()
 Apply preferences to MainWindow and all the opened tabs.
 
- Public Member Functions inherited from MainFrame
 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)
 

Private Member Functions

void OnClose (wxCloseEvent &e)
 
void NewGame (bool useFen)
 
void OnPageChange (wxAuiNotebookEvent &event)
 
void OnRefreshTabTitle (wxCommandEvent &event)
 
void OpenSettings ()
 
void NewEngine ()
 Setting up a new chess engine (select executable and open engine tab)
 
void OnCloseTabEvent (wxCommandEvent &event)
 
void OnRefreshEngineList (wxCommandEvent &event)
 
void OnMenuItemClick (wxCommandEvent &event)
 
void OnAuiNotebookPageClosed (wxAuiNotebookEvent &event)
 
void OnAuiNotebookPageCheck (wxAuiNotebookEvent &event)
 
void OnCloseTabLinkedTo (wxCommandEvent &event)
 
void AddPage (wxWindow *window, TabInfos *infos)
 
void ShowAbout ()
 

Private Attributes

wxPreferencesEditor * prefsEditor
 Preference popup window.
 
wxMenu * manageMenu
 Menu to manage existing chess engines.
 
int engine_count
 Store the number of available chess engines (to create entries in the menus)
 

Additional Inherited Members

- Public Attributes inherited from MainFrame
wxAuiNotebook * notebook
 
- Protected Attributes inherited from MainFrame
wxMenuBar * menu_bar
 
wxMenu * menu_file
 
wxMenu * menu_game
 
wxMenu * menu_db
 
wxMenu * menu_engine
 
wxMenu * menu_help
 
wxStatusBar * status_bar
 

Detailed Description

Main GUI window of OChess.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( )

-------— MainWindow -------—

File menu


The documentation for this class was generated from the following files: