summaryrefslogtreecommitdiff
path: root/src/gui/itemamount.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemamount.h')
-rw-r--r--src/gui/itemamount.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/gui/itemamount.h b/src/gui/itemamount.h
index 94ca8dc2..33d6d816 100644
--- a/src/gui/itemamount.h
+++ b/src/gui/itemamount.h
@@ -45,12 +45,6 @@ class ItemAmountWindow : public Window, public gcn::ActionListener
};
/**
- * Constructor.
- */
- ItemAmountWindow(Usage usage, Window *parent, Item *item,
- int maxRange = 0);
-
- /**
* Called when receiving actions from widget.
*/
void action(const gcn::ActionEvent &event);
@@ -65,7 +59,18 @@ class ItemAmountWindow : public Window, public gcn::ActionListener
*/
void close();
+ /**
+ * Creates the dialog, or bypass it if there aren't enough items.
+ */
+ static void showWindow(Usage usage, Window *parent, Item *item,
+ int maxRange = 0);
+
private:
+ static void finish(Item *item, int amount, Usage usage);
+
+ ItemAmountWindow(Usage usage, Window *parent, Item *item,
+ int maxRange = 0);
+
gcn::Label *mItemAmountLabel; /**< Item amount caption. */
Item *mItem;