Used by each tab of the GUI to attach additional informations and features.
More...
#include <ochess.hpp>
|
| enum | Type { GAME
, BASE
, ENGINE
, NONE
} |
| | Which type of tab is it?
|
| |
|
typedef enum TabInfos::Type | Type |
| | Which type of tab is it?
|
| |
|
|
| TabInfos (Type type_) |
| |
|
void | Link (TabInfos *tab) |
| |
|
virtual void | Refresh () |
| |
| virtual void | OnLink () |
| | Callback that is called when the current tab is linked to another one. More...
|
| |
| virtual void | ApplyPreferences () |
| | Can be called to load preferences that have been modify in the application settings. More...
|
| |
|
virtual std::shared_ptr< Game > | GetGame ()=0 |
| |
|
virtual std::shared_ptr< GameBase > | GetBase ()=0 |
| |
|
virtual std::uint32_t | GetEngineId () |
| |
|
|
Type | type |
| |
|
long | id |
| | Each tab has an associated unique id.
|
| |
|
long | linked_id |
| | Specify to which tab id this tab is linked (e.g: database to linked to on of its opened game tab)
|
| |
|
bool | is_linked |
| | Set to true if this tab is attach to another one (c.f linked_id)
|
| |
|
bool | is_dirty |
| | True if current tab is dirty.
|
| |
|
|
static long | tab_count = 0 |
| | Keep track of the number of opened tabs.
|
| |
Used by each tab of the GUI to attach additional informations and features.
◆ ApplyPreferences()
| virtual void TabInfos::ApplyPreferences |
( |
| ) |
|
|
inlinevirtual |
Can be called to load preferences that have been modify in the application settings.
Reimplemented in EngineTab, and GameTab.
◆ OnLink()
| virtual void TabInfos::OnLink |
( |
| ) |
|
|
inlinevirtual |
Callback that is called when the current tab is linked to another one.
Reimplemented in GameTab.
The documentation for this class was generated from the following files:
- /home/loic/Documents/Git/ochess/src/ochess.hpp
- /home/loic/Documents/Git/ochess/src/ochess.cpp