#include <MathHelpers.h>
Inheritance diagram for mcKeyEntry:
Definition at line 225 of file MathHelpers.h.
Public Member Functions | |
mcKeyEntry () | |
Inits the customizable variables of this key entry. | |
mcKeyEntry (const wxString &str, long keycode) | |
mcKeyEntry (const wxString &str) | |
mcKeyEntry (const wxKeyEvent &keyEvent) | |
Constructs a mcKeyEntry structure from a wxKeyEvent structure. | |
virtual | ~mcKeyEntry () |
void | Reset () |
Resets the variables of this key entry. | |
wxString | Encode () const |
Encodes this mcKeyEntry in a wxString which can be used to init another mcKeyEntry object with the InitFlags or InitKeyCode functions (or in the constructor). | |
bool | MatchKey (const mcKeyEntry &ke) const |
Returns TRUE if the given mcKeyEntry matches the key entry defined by this class. | |
bool | MatchKey (const wxKeyEvent &ke) const |
Returns TRUE if the given key event matches the key entry defined by this class. | |
wxKeyEvent | GetEvent () |
Constructs a wxKeyEvent that matches this mcKeyEntry. | |
wxChar | GetKeyCode () |
Returns the keycode stored in this object. | |
int | GetModifiers () |
Returns the modifiers associated with this key entry. | |
void | SetAsSpecialKey () |
Sets this keypress as a "special" keypress (see m_bSpecial). | |
bool | isSpecialKey () |
Returns TRUE if this is set as a special keypress. | |
Protected Member Functions | |
void | InitFlags (const wxString &str) |
Initializes this mcKeyEntry's flags with the given string. | |
void | InitKeyCode (const wxString &str) |
Initializes with the given string (which should contain a number) the main keycode of this class. | |
wxString | GetModifiersFrom (const wxString &def) |
Returns the modifiers contained in the given string. | |
Protected Attributes | |
int | m_nFlags |
The flags which enable/disable the modifiers of this mcKeyEntry. | |
int | m_nKeyCode |
The keycode for this key entry. | |
bool | m_bSpecial |
TRUE if this is a 'special' keypress. |
|
Inits the customizable variables of this key entry.
Definition at line 299 of file MathHelpers.h. References Reset(). |
|
Definition at line 303 of file MathHelpers.h. References InitFlags(), m_nKeyCode, and Reset(). |
|
Definition at line 309 of file MathHelpers.h. References InitFlags(), InitKeyCode(), and Reset(). |
|
Constructs a mcKeyEntry structure from a wxKeyEvent structure.
Definition at line 316 of file MathHelpers.h. References ALT_KEY, CTRL_KEY, m_nFlags, m_nKeyCode, META_KEY, Reset(), and SHIFT_KEY. |
|
Definition at line 330 of file MathHelpers.h. |
|
Encodes this mcKeyEntry in a wxString which can be used to init another mcKeyEntry object with the InitFlags or InitKeyCode functions (or in the constructor).
Definition at line 343 of file MathHelpers.h. References ALT_KEY, CTRL_KEY, m_nFlags, m_nKeyCode, META_KEY, and SHIFT_KEY. |
|
Constructs a wxKeyEvent that matches this mcKeyEntry.
Definition at line 392 of file MathHelpers.h. References ALT_KEY, CTRL_KEY, m_nFlags, m_nKeyCode, META_KEY, and SHIFT_KEY. Referenced by mcKey::GetEvent(). |
|
Returns the keycode stored in this object.
Definition at line 407 of file MathHelpers.h. References m_bSpecial, and m_nKeyCode. Referenced by mcKey::GetKeyCode(). |
|
Returns the modifiers associated with this key entry.
Definition at line 414 of file MathHelpers.h. References m_nFlags. Referenced by mcKey::GetModifiers(). |
|
Returns the modifiers contained in the given string.
Definition at line 280 of file MathHelpers.h. Referenced by InitFlags(), and InitKeyCode(). |
|
Initializes this mcKeyEntry's flags with the given string. The SHIFT_KEY flag is set if the string contains the "s" character, the CTRL_KEY if it contains wxT("c") and META_KEY if it contains "m". Definition at line 257 of file MathHelpers.h. References ALT_KEY, CTRL_KEY, GetModifiersFrom(), m_bSpecial, m_nFlags, META_KEY, and SHIFT_KEY. Referenced by mcKeyEntry(). |
|
Initializes with the given string (which should contain a number) the main keycode of this class.
Definition at line 270 of file MathHelpers.h. References GetModifiersFrom(), and m_nKeyCode. Referenced by mcKeyEntry(). |
|
Returns TRUE if this is set as a special keypress.
Definition at line 427 of file MathHelpers.h. References m_bSpecial. Referenced by mcKey::isSpecialKey(). |
|
Returns TRUE if the given key event matches the key entry defined by this class.
Definition at line 376 of file MathHelpers.h. References ALT_KEY, CTRL_KEY, m_nFlags, m_nKeyCode, META_KEY, and SHIFT_KEY. |
|
Returns TRUE if the given mcKeyEntry matches the key entry defined by this class.
Definition at line 361 of file MathHelpers.h. References m_bSpecial, m_nFlags, and m_nKeyCode. Referenced by mcKey::MatchKey(). |
|
Resets the variables of this key entry. After this call, this key entry won't match any key event. Definition at line 335 of file MathHelpers.h. References m_bSpecial, m_nFlags, and m_nKeyCode. Referenced by mcKeyEntry(). |
|
Sets this keypress as a "special" keypress (see m_bSpecial). This can also be done directly when initializing this object using as key modifier also the wxT("x") character: "x+C" is recognized as a special keypress of "C". Definition at line 422 of file MathHelpers.h. References m_bSpecial. Referenced by mcKey::mcKey(), and mcKey::SetAsSpecialKey(). |
|
TRUE if this is a 'special' keypress. This information has no special meaning for mcKeyEntry but it has for the mcElementGUI functions. See for example, mcFraction::gui_isBeginKey or mcRadical::gui_isBeginKey-> Definition at line 249 of file MathHelpers.h. Referenced by GetKeyCode(), InitFlags(), isSpecialKey(), MatchKey(), Reset(), and SetAsSpecialKey(). |
|
The flags which enable/disable the modifiers of this mcKeyEntry.
Definition at line 239 of file MathHelpers.h. Referenced by Encode(), GetEvent(), GetModifiers(), InitFlags(), MatchKey(), mcKeyEntry(), and Reset(). |
|
The keycode for this key entry. See "wxWidgets keycodes" in the wxWidgets manual for more info. Definition at line 243 of file MathHelpers.h. Referenced by Encode(), GetEvent(), GetKeyCode(), InitKeyCode(), MatchKey(), mcKeyEntry(), and Reset(). |
[ Top ] |