|
ToolMap
|
Store shortcuts for attribution in memory. More...
#include <tmshortcutmemory.h>
Public Member Functions | |
| void | AddShortcutMemory (int iLayerType, int iKey, const wxString &description, long lShortcutValue) |
| Add a shortcut to the memory. | |
| void | Clear () |
| Clear all shortcuts from memory. | |
| int | GetShortcut (int iKey, int &iLayerType, wxString &description, wxArrayLong &shortcutvalues) |
| Get shortcut by key. | |
| int | GetCount () |
Store shortcuts for attribution in memory.
Shortcuts are stored in :
| void tmShortcutMemory::AddShortcutMemory | ( | int | iLayerType, |
| int | iKey, | ||
| const wxString & | description, | ||
| long | lShortcutValue ) |
Add a shortcut to the memory.
This function store in memory all the active shortcuts.
| iLayerType | the type of the layer, valid values are : 0, 1, 2 see PRJDEF_LAYERS_TYPE |
| iKey | the active shortcut key, between 1-12 |
| description | The shortcut description. |
| lShortcutValue | the value of the shortcut |
| void tmShortcutMemory::Clear | ( | ) |
Clear all shortcuts from memory.
| int tmShortcutMemory::GetShortcut | ( | int | iKey, |
| int & | iLayerType, | ||
| wxString & | description, | ||
| wxArrayLong & | shortcutvalues ) |
Get shortcut by key.
| iKey | The key (1-12) for which we are searching the shortcut |
| iLayerType | The layer type to which the shortcut apply |
| description | The description of the shortcut |
| shortcutvalues | An array of all values for the shortcut |