lsnes/platform/wxwidgets/keyentry.hpp

36 lines
714 B
C++
Raw Normal View History

#ifndef _wxwidgets_keyentry__hpp__included__
#define _wxwidgets_keyentry__hpp__included__
#include <wx/wx.h>
#include <wx/event.h>
#include <wx/control.h>
#include <wx/combobox.h>
#include <vector>
#include <string>
#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<std::string, keyentry_mod_data> modifiers;
labeledcombobox* mainkey;
wxButton* ok;
wxButton* cancel;
};
#endif