Move the wxwidgets stuff to one directory
[lsnes.git] / platform / wxwidgets / axeseditor.hpp
blob1223f7d7e634258ca2be94c8932eb03801f48fc1
1 #ifndef _wxwidgets_axeseditor__hpp__included__
2 #define _wxwidgets_axeseditor__hpp__included__
4 #include <wx/wx.h>
5 #include <wx/event.h>
6 #include <wx/control.h>
7 #include <wx/combobox.h>
8 #include <vector>
9 #include <string>
11 class wx_axes_editor_axis
13 public:
14 wx_axes_editor_axis(wxSizer* sizer, wxWindow* window, const std::string& name);
15 bool is_ok();
16 void apply();
17 private:
18 std::string a_name;
19 wxComboBox* a_type;
20 wxTextCtrl* a_low;
21 wxTextCtrl* a_mid;
22 wxTextCtrl* a_high;
23 wxTextCtrl* a_tolerance;
26 class wx_axes_editor : public wxDialog
28 public:
29 wx_axes_editor(wxWindow* parent);
30 ~wx_axes_editor();
31 bool ShouldPreventAppExit() const;
32 void on_value_change(wxCommandEvent& e);
33 void on_cancel(wxCommandEvent& e);
34 void on_ok(wxCommandEvent& e);
35 private:
36 std::vector<wx_axes_editor_axis*> axes;
37 wxButton* okbutton;
38 wxButton* cancel;
41 #endif