mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-18 03:42:02 +00:00
44 lines
992 B
C++
44 lines
992 B
C++
![]() |
#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);
|
||
|
}
|
||
|
};
|