aboutsummaryrefslogtreecommitdiff
path: root/src/ochess.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-25 11:13:05 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-25 11:13:05 +0100
commit4ffba108e367926f1c254bb1e2f07b6dbace4f32 (patch)
treedbd0cb1795622da335035895c1a03c30ed037eeb /src/ochess.hpp
parent1293b59ed55423671dc204d3cb09822c9c599e55 (diff)
Update the db import game feature
Diffstat (limited to 'src/ochess.hpp')
-rw-r--r--src/ochess.hpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/ochess.hpp b/src/ochess.hpp
index 47e08e4..9b3bd3e 100644
--- a/src/ochess.hpp
+++ b/src/ochess.hpp
@@ -32,19 +32,6 @@
#define CONFIG_OPEN(name) wxConfig *name = new wxConfig("ochess")
#define CONFIG_CLOSE(name) delete name
-/**
- * @brief Main application
- *
- */
-class MyApp : public wxApp {
-public:
- virtual bool OnInit();
-};
-
-wxDECLARE_APP(MyApp);
-
-///@brief Abort ochess with a message
-void Abort(std::string msg);
class Game;
class GameBase;
@@ -69,3 +56,19 @@ public:
virtual std::shared_ptr<Game> GetGame() = 0;
virtual std::shared_ptr<GameBase> GetBase() = 0;
};
+
+
+/**
+ * @brief Main application
+ *
+ */
+class MyApp : public wxApp {
+public:
+ virtual bool OnInit();
+ std::vector<TabInfos *> ListTabInfos();
+};
+
+wxDECLARE_APP(MyApp);
+
+///@brief Abort ochess with a message
+void Abort(std::string msg);