OChess v0.0.2
Programmer's Manual
BaseGameTab.hpp
1
2#pragma once
3
4#include "gamebase/GameBase.hpp"
5#include "gamebase/PGNGameBase.hpp"
6#include "GameListManager.hpp"
7
13 std::shared_ptr<GameBase> base;
14 void OnDelete(wxCommandEvent &event);
15 void OnApplyFilter(wxCommandEvent &event);
16
17public:
18 std::shared_ptr<GameListManager> glm;
20 std::vector<std::uint32_t> deleted;
22 std::unordered_map<long, std::shared_ptr<Game>> edited;
23
24 BaseGameTab(wxFrame *parent, std::shared_ptr<GameBase> base);
25
26 void Reset(std::shared_ptr<GameBase> base);
27 std::vector<std::shared_ptr<Game>> GetEditedGames();
28 std::vector<std::uint32_t> GetDeletedGameIds() {return(deleted);};
29 std::shared_ptr<Game> OpenGame(long gameid, long item);
30
31 std::shared_ptr<Game> GetGame() { return nullptr; }
32 std::shared_ptr<GameBase> GetBase() { return (std::shared_ptr<GameBase>(base)); };
33};
A BaseTab sub-tab to list and search games.
Definition: BaseGameTab.hpp:12
std::vector< std::uint32_t > deleted
Old deleted games id.
Definition: BaseGameTab.hpp:20
std::unordered_map< long, std::shared_ptr< Game > > edited
Old edited game id+object.
Definition: BaseGameTab.hpp:22
Class TabBase_TabGames.
Definition: gui.h:354