From 5a43d62920f82bac38490ac92dd9a49edd1d44de Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 23 Feb 2022 19:41:50 +0100 Subject: Debug and improve preferences editor --- src/preferences/EditorPrefs.hpp | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/preferences/EditorPrefs.hpp (limited to 'src/preferences/EditorPrefs.hpp') 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 +#include +#include +#include +#include +#include + +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 -- cgit v1.2.3