24#define SHORTCUT_ITEMS 12
76 {
mItems[index] = itemId; }
The class which keeps track of the item shortcuts.
int getItemCount() const
Returns the amount of shortcut items.
void useItem(int index)
Try to use the item specified by the index.
int getItem(int index) const
Returns the shortcut item ID specified by the index.
void setItems(int index, int itemId)
Adds an item to the items store specified by the index.
void setItem(int index)
Adds the selected item ID to the items specified by the index.
void load()
Load the configuration information.
void removeItem(int index)
Remove a item from the shortcut.
int mItems[SHORTCUT_ITEMS]
The items stored.
int getItemSelected() const
Returns the item ID that is currently selected.
void save()
Save the configuration information.
int mItemSelected
The item held by cursor.
bool isItemSelected()
A flag to check if the item is selected.
void setItemSelected(int itemId)
Set the item that is selected.
ItemShortcut * itemShortcut