#ifndef _wxwidgets_keyentry__hpp__included__ #define _wxwidgets_keyentry__hpp__included__ #include #include #include #include #include #include #include "window.hpp" #include "labelcombobox.hpp" struct keyentry_mod_data { wxCheckBox* pressed; wxCheckBox* unmasked; unsigned tmpflags; }; class wx_key_entry : public wxDialog { public: wx_key_entry(wxWindow* parent); void on_change_setting(wxCommandEvent& e); void on_ok(wxCommandEvent& e); void on_cancel(wxCommandEvent& e); std::string getkey(); private: std::map modifiers; labeledcombobox* mainkey; wxButton* ok; wxButton* cancel; }; #endif