The class which keeps track of the item shortcuts.
More...
#include <itemshortcut.h>
|
| | ItemShortcut () |
| |
| | ~ItemShortcut () |
| |
| void | load () |
| | Load the configuration information.
|
| |
| int | getItem (int index) const |
| | Returns the shortcut item ID specified by the index.
|
| |
| int | getItemCount () const |
| | Returns the amount of shortcut items.
|
| |
| int | getItemSelected () const |
| | Returns the item ID that is currently selected.
|
| |
| void | setItem (int index) |
| | Adds the selected item ID to the items specified by the index.
|
| |
| void | setItems (int index, int itemId) |
| | Adds an item to the items store specified by the index.
|
| |
| void | setItemSelected (int itemId) |
| | Set the item that is selected.
|
| |
| bool | isItemSelected () |
| | A flag to check if the item is selected.
|
| |
| void | removeItem (int index) |
| | Remove a item from the shortcut.
|
| |
| void | useItem (int index) |
| | Try to use the item specified by the index.
|
| |
|
| void | save () |
| | Save the configuration information.
|
| |
The class which keeps track of the item shortcuts.
Definition at line 29 of file itemshortcut.h.
◆ ItemShortcut()
| ItemShortcut::ItemShortcut |
( |
| ) |
|
◆ ~ItemShortcut()
| ItemShortcut::~ItemShortcut |
( |
| ) |
|
◆ getItem()
| int ItemShortcut::getItem |
( |
int |
index | ) |
const |
|
inline |
Returns the shortcut item ID specified by the index.
- Parameters
-
| index | Index of the shortcut item. |
Definition at line 46 of file itemshortcut.h.
◆ getItemCount()
| int ItemShortcut::getItemCount |
( |
| ) |
const |
|
inline |
Returns the amount of shortcut items.
Definition at line 52 of file itemshortcut.h.
◆ getItemSelected()
| int ItemShortcut::getItemSelected |
( |
| ) |
const |
|
inline |
Returns the item ID that is currently selected.
Definition at line 58 of file itemshortcut.h.
◆ isItemSelected()
| bool ItemShortcut::isItemSelected |
( |
| ) |
|
|
inline |
A flag to check if the item is selected.
Definition at line 89 of file itemshortcut.h.
◆ load()
| void ItemShortcut::load |
( |
| ) |
|
◆ removeItem()
| void ItemShortcut::removeItem |
( |
int |
index | ) |
|
|
inline |
◆ save()
| void ItemShortcut::save |
( |
| ) |
|
|
private |
◆ setItem()
| void ItemShortcut::setItem |
( |
int |
index | ) |
|
|
inline |
Adds the selected item ID to the items specified by the index.
- Parameters
-
Definition at line 66 of file itemshortcut.h.
◆ setItems()
| void ItemShortcut::setItems |
( |
int |
index, |
|
|
int |
itemId |
|
) |
| |
|
inline |
Adds an item to the items store specified by the index.
- Parameters
-
| index | Index of the item. |
| itemId | ID of the item. |
Definition at line 75 of file itemshortcut.h.
◆ setItemSelected()
| void ItemShortcut::setItemSelected |
( |
int |
itemId | ) |
|
|
inline |
Set the item that is selected.
- Parameters
-
| itemId | The ID of the item that is to be assigned. |
Definition at line 83 of file itemshortcut.h.
◆ useItem()
| void ItemShortcut::useItem |
( |
int |
index | ) |
|
Try to use the item specified by the index.
- Parameters
-
| index | Index of the item shortcut. |
Definition at line 65 of file itemshortcut.cpp.
◆ mItems
◆ mItemSelected
| int ItemShortcut::mItemSelected = -1 |
|
private |
The documentation for this class was generated from the following files: