aboutsummaryrefslogtreecommitdiff
path: root/src/preferences/EditorPrefs.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-23 19:41:50 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-23 19:41:50 +0100
commit5a43d62920f82bac38490ac92dd9a49edd1d44de (patch)
tree291fa23e50c16d2d4a6f5e04a4944eebb233388c /src/preferences/EditorPrefs.hpp
parenta3c24f27f081e49b9a814aba61d298f1d0a5d0fa (diff)
Debug and improve preferences editor
Diffstat (limited to 'src/preferences/EditorPrefs.hpp')
-rw-r--r--src/preferences/EditorPrefs.hpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/preferences/EditorPrefs.hpp b/src/preferences/EditorPrefs.hpp
new file mode 100644
index 0000000..dab05ca
--- /dev/null
+++ b/src/preferences/EditorPrefs.hpp
@@ -0,0 +1,44 @@
+#include "EditorPrefsPanelBF.h"
+#include "game_tab/board/BoardCanvas.hpp"
+#include "ochess.hpp"
+#include <wx/combobox.h>
+#include <wx/dir.h>
+#include <wx/filename.h>
+#include <wx/preferences.h>
+#include <wx/spinctrl.h>
+#include <wx/stdpaths.h>
+
+class EditorPrefsPanel : public EditorPrefsPanelBF {
+
+public:
+ EditorPrefsPanel(wxWindow *parent) : EditorPrefsPanelBF(parent) {
+
+ // Bind(wxEVT_SPINCTRL, &BoardPrefsPanel::OnConfChange, this, wxID_ANY);
+ }
+ void OnConfChange(wxCommandEvent &event) {
+ }
+
+ virtual bool TransferDataToWindow() {
+ return true;
+ }
+
+ void ApplyPreferences() {
+
+ }
+
+ virtual bool TransferDataFromWindow() {
+
+ return (true);
+ }
+};
+
+class EditorPrefs : public wxPreferencesPage {
+public:
+ virtual wxString GetName() const { return "Editor"; }
+ virtual wxBitmap GetLargeIcon() {
+ return wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR);
+ }
+ virtual wxWindow *CreateWindow(wxWindow *parent) {
+ return new EditorPrefsPanel(parent);
+ }
+}; \ No newline at end of file