summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-30 17:47:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-30 18:19:54 +0300
commitbd429077f8985c5ee45a53009d02e2f495b4ad90 (patch)
treeaeaaaba43b24de34af6f332ac200b976b7056371 /src/gui/widgets/itemcontainer.h
parentb0388c5ad0a49f65becdee1120d4df476410dd01 (diff)
downloadmv-bd429077f8985c5ee45a53009d02e2f495b4ad90.tar.gz
mv-bd429077f8985c5ee45a53009d02e2f495b4ad90.tar.bz2
mv-bd429077f8985c5ee45a53009d02e2f495b4ad90.tar.xz
mv-bd429077f8985c5ee45a53009d02e2f495b4ad90.zip
Add strong typed bool enum ShowEmptyRows and use it in itemcontainer.
Diffstat (limited to 'src/gui/widgets/itemcontainer.h')
-rw-r--r--src/gui/widgets/itemcontainer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/itemcontainer.h b/src/gui/widgets/itemcontainer.h
index a8d7c794e..42aeb2684 100644
--- a/src/gui/widgets/itemcontainer.h
+++ b/src/gui/widgets/itemcontainer.h
@@ -28,6 +28,7 @@
#include "listeners/widgetlistener.h"
#include "enums/simpletypes/forcequantity.h"
+#include "enums/simpletypes/showemptyrows.h"
#include "gui/widgets/widget.h"
@@ -59,6 +60,7 @@ class ItemContainer final : public Widget,
*/
ItemContainer(const Widget2 *const widget,
Inventory *const inventory,
+ const ShowEmptyRows showEmptyRows = ShowEmptyRows_false,
const ForceQuantity forceQuantity = ForceQuantity_false);
A_DELETE_COPY(ItemContainer)
@@ -207,6 +209,7 @@ class ItemContainer final : public Widget,
int mPaddingItemY;
SelectionState mSelectionStatus;
ForceQuantity mForceQuantity;
+ ShowEmptyRows mShowEmptyRows;
bool mDescItems;
bool mRedraw;
};