aboutsummaryrefslogtreecommitdiff
path: root/src/preferences/EditorPrefs.hpp
blob: 9a8ca0db2461645163495e3f6c1755650750910a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#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 PrefsEditor {

public:
  EditorPrefsPanel(wxWindow *parent) : PrefsEditor(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);
  }
};