summaryrefslogtreecommitdiff
path: root/src/gui/item_amount.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-19 11:43:41 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-19 11:43:41 +0000
commitd42e9ea834a07c6f60dd5248db6520d1ff423ac4 (patch)
tree7de19d851aecae83bc8467d70c9a718ebff98205 /src/gui/item_amount.h
parent32ca8ca9551070ba1086cd5b6c973620052061ed (diff)
downloadmana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.gz
mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.bz2
mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.xz
mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.zip
Made item amount window a modal dialog and removed support for old map format.
Diffstat (limited to 'src/gui/item_amount.h')
-rw-r--r--src/gui/item_amount.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/gui/item_amount.h b/src/gui/item_amount.h
index 4b889b86..d01f2006 100644
--- a/src/gui/item_amount.h
+++ b/src/gui/item_amount.h
@@ -42,7 +42,7 @@ class ItemAmountWindow : public Window, public gcn::ActionListener
/**
* Constructor.
*/
- ItemAmountWindow();
+ ItemAmountWindow(int usage, Window *parent);
/**
* Destructor.
@@ -55,11 +55,6 @@ class ItemAmountWindow : public Window, public gcn::ActionListener
void action(const std::string& eventId);
/**
- * Has to be called before setVisible(true).
- */
- void ItemAmountWindow::setUsage(int usage);
-
- /**
* Sets default amount value.
*/
void resetAmount();
@@ -68,13 +63,13 @@ class ItemAmountWindow : public Window, public gcn::ActionListener
int amount; /**< Amount of items to be dropped. */
gcn::Label *itemAmountLabel; /**< Item amount caption. */
- /**
+ /**
* Item Amount buttons.
*/
gcn::Button *itemAmountPlusButton;
- gcn::Button *itemAmountMinusButton;
- gcn::Button *itemAmountOkButton;
- gcn::Button *itemAmountCancelButton;
+ gcn::Button *itemAmountMinusButton;
+ gcn::Button *itemAmountOkButton;
+ gcn::Button *itemAmountCancelButton;
};
#endif /* _TMW_ITEM_AMOUNT_WINDOW_H */