Permalink
Cannot retrieve contributors at this time
Fetching contributors…

#ifndef __SHORTCUTCTRL_H__ | |
#define __SHORTCUTCTRL_H__ | |
#include "wx/wxprec.h" | |
#ifndef WX_PRECOMP | |
#include <wx/wx.h> | |
#endif | |
#include "key_hook.h" | |
class ShortcutCtrl : public KeyHookable<wxTextCtrl> { | |
public: | |
ShortcutCtrl(wxWindow* parent, wxWindowID id=wxID_ANY); | |
void Clear(); | |
bool IsEmpty() const; | |
void SetKey(const wxString& binding); | |
const wxString& GetBinding() const; | |
virtual bool OnPreKeyDown(wxKeyEvent& event); | |
private: | |
wxString m_binding; | |
}; | |
#endif // __SHORTCUTCTRL_H__ |