Move the wxwidgets stuff to one directory
[lsnes.git] / platform / wxwidgets / keyentry.hpp
blob3b680b7bd9b3699c80f4a58b6f9133a9b58cffe8
1 #ifndef _wxwidgets_keyentry__hpp__included__
2 #define _wxwidgets_keyentry__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>
10 #include "window.hpp"
11 #include "labelcombobox.hpp"
13 struct keyentry_mod_data
15 wxCheckBox* pressed;
16 wxCheckBox* unmasked;
17 unsigned tmpflags;
20 class wx_key_entry : public wxDialog
22 public:
23 wx_key_entry(wxWindow* parent);
24 void on_change_setting(wxCommandEvent& e);
25 void on_ok(wxCommandEvent& e);
26 void on_cancel(wxCommandEvent& e);
27 std::string getkey();
28 private:
29 std::map<std::string, keyentry_mod_data> modifiers;
30 labeledcombobox* mainkey;
31 wxButton* ok;
32 wxButton* cancel;
35 #endif