1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
/*!
@file
@author Albert Semenov
@date 08/2010
*/
#ifndef _c51113dc_3e4d_4f5c_8ef4_7521ea4edfb3_
#define _c51113dc_3e4d_4f5c_8ef4_7521ea4edfb3_
#include <MyGUI.h>
namespace tools
{
class MYGUI_EXPORT_DLL HotKeyCommand
{
public:
HotKeyCommand() :
mPressed(true),
mShift(false),
mControl(false),
mKey(MyGUI::KeyCode::None)
{
}
bool getPressed() const
{
return mPressed;
}
void setPressed(bool _value)
{
mPressed = _value;
}
bool getShift() const
{
return mShift;
}
void setShift(bool _value)
{
mShift = _value;
}
bool getControl() const
{
return mControl;
}
void setControl(bool _value)
{
mControl = _value;
}
MyGUI::KeyCode getKey() const
{
return mKey;
}
void setKey(MyGUI::KeyCode _value)
{
mKey = _value;
}
const MyGUI::UString& getCommand() const
{
return mCommand;
}
void setCommand(const MyGUI::UString& _value)
{
mCommand = _value;
}
private:
bool mPressed;
bool mShift;
bool mControl;
MyGUI::KeyCode mKey;
MyGUI::UString mCommand;
};
}
#endif
|