mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-07 02:26:29 +02:00
26 lines
No EOL
878 B
C++
26 lines
No EOL
878 B
C++
#pragma once
|
|
|
|
#include "ochess.hpp"
|
|
#include "GameListManager.hpp"
|
|
#include "game_tab/Game.hpp"
|
|
|
|
class BaseImportTab : public TabBase_TabImport {
|
|
TabInfos *main_tab;
|
|
std::shared_ptr<GameListManager> glm;
|
|
std::vector<std::shared_ptr<Game>> games_to_import;
|
|
std::vector<std::shared_ptr<GameBase>> databases_to_import;
|
|
std::unordered_map<long, std::shared_ptr<Game>> selected_games_to_import;
|
|
std::shared_ptr<GameBase> base;
|
|
std::shared_ptr<GameBase> selected_base;
|
|
|
|
void RefreshPendingImports();
|
|
public:
|
|
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);
|
|
|
|
}; |