From ee416a5f3de03a689247a290077e7fdf451e1a23 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 8 Jan 2005 01:33:53 +0000 Subject: Well improved window container and window widgets a bit, and made a start on support for modal dialogs. Still some issues to work out. Tell me if you experience something unsettling. --- src/gui/inventory.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/gui/inventory.h') diff --git a/src/gui/inventory.h b/src/gui/inventory.h index 21ffe6bc..87a99b07 100644 --- a/src/gui/inventory.h +++ b/src/gui/inventory.h @@ -40,12 +40,11 @@ #define INVENTORY_SIZE 100 struct ITEM_HOLDER { // the holder of a item - int id; // the id of the item - int quantity; // number of items - //int index; // item position + int id; // the id of the item + int quantity; // number of items + //int index; // item position }; - /** * Inventory dialog. * @@ -53,7 +52,14 @@ struct ITEM_HOLDER { // the holder of a item */ class InventoryWindow : public Window { public: - InventoryWindow(gcn::Container *parent); + /** + * Constructor. + */ + InventoryWindow(); + + /** + * Destructor. + */ ~InventoryWindow(); /** @@ -77,7 +83,7 @@ class InventoryWindow : public Window { int changeQuantity(int index, int quantity); /** - * Increase quantity of an item + * Increase quantity of an item. */ int increaseQuantity(int index, int quantity); -- cgit v1.2.3-70-g09d2