Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (19 sloc) 495 Bytes
#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__