aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/BaseImportTab.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-26 16:23:14 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-26 16:23:14 +0100
commit3263bda23b8bccb9958471be064603d958f08253 (patch)
tree390886397e25b27d78993442ed560e19928211de /src/base_tab/BaseImportTab.hpp
parent1c2d2a14ac1b8eab0504f657b02ab10290f92bf6 (diff)
Improve game import in db
Diffstat (limited to 'src/base_tab/BaseImportTab.hpp')
-rw-r--r--src/base_tab/BaseImportTab.hpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/base_tab/BaseImportTab.hpp b/src/base_tab/BaseImportTab.hpp
index a301f9b..a3a19de 100644
--- a/src/base_tab/BaseImportTab.hpp
+++ b/src/base_tab/BaseImportTab.hpp
@@ -1,12 +1,24 @@
+#pragma once
+
#include "ochess.hpp"
#include "GameListManager.hpp"
+#include "game_tab/Game.hpp"
class BaseImportTab : public TabBase_TabImport {
TabInfos *main_tab;
- GameListManager *glm;
+ std::shared_ptr<GameListManager> glm;
+ std::vector<std::shared_ptr<Game>> games_to_import;
+ std::vector<std::shared_ptr<GameBase>> databases_to_import;
+ std::shared_ptr<GameBase> base;
+ std::shared_ptr<GameBase> selected_base;
+ void RefreshPendingImports();
public:
- BaseImportTab(wxFrame *parent, TabInfos *main_tab);
+ BaseImportTab(wxFrame *parent, std::shared_ptr<GameBase> db, TabInfos *main_tab);
void RefreshImportLists();
void OnLoad(wxCommandEvent &event);
+ void OnImportGame(wxCommandEvent &event);
+ void OnImportSelection(wxCommandEvent &event);
+ void OnImportDatabase(wxCommandEvent &event);
+ void Reset(std::shared_ptr<GameBase> base);
}; \ No newline at end of file