summaryrefslogtreecommitdiff
path: root/src/gui/shortcut/itemshortcut.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shortcut/itemshortcut.h')
-rw-r--r--src/gui/shortcut/itemshortcut.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/shortcut/itemshortcut.h b/src/gui/shortcut/itemshortcut.h
index c62fe3721..a2107207d 100644
--- a/src/gui/shortcut/itemshortcut.h
+++ b/src/gui/shortcut/itemshortcut.h
@@ -30,7 +30,8 @@
#include "localconsts.h"
const unsigned int SHORTCUT_ITEMS = 20;
-const unsigned int SHORTCUT_TABS = 4;
+const unsigned int SHORTCUT_TABS = 5;
+const unsigned int SHORTCUT_AUTO_TAB = 4;
class Item;
@@ -103,6 +104,10 @@ class ItemShortcut final
const int item,
const ItemColor color);
+ void setItemFast(const int index,
+ const int item,
+ const ItemColor color);
+
/**
* Adds an item to the items store specified by the index.
*
@@ -161,6 +166,8 @@ class ItemShortcut final
void swap(const int index1, const int index2);
+ void clear();
+
private:
int mItems[SHORTCUT_ITEMS]; /**< The items. */
ItemColor mItemColors[SHORTCUT_ITEMS]; /**< The item colors. */