summaryrefslogtreecommitdiff
path: root/src/gui/widgets/selldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-22 19:48:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-22 19:48:04 +0300
commitde4548a50ecb4d4700c9899044f50070f7d9a95a (patch)
treed54bc1bdf010b2a08cdf067fcaf64d92d42685b1 /src/gui/widgets/selldialog.h
parentbf3c7384ad1b1fce8beac97f8715eb054158f72e (diff)
downloadmv-de4548a50ecb4d4700c9899044f50070f7d9a95a.tar.gz
mv-de4548a50ecb4d4700c9899044f50070f7d9a95a.tar.bz2
mv-de4548a50ecb4d4700c9899044f50070f7d9a95a.tar.xz
mv-de4548a50ecb4d4700c9899044f50070f7d9a95a.zip
Add egg selection dialog.
Diffstat (limited to 'src/gui/widgets/selldialog.h')
-rw-r--r--src/gui/widgets/selldialog.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/selldialog.h b/src/gui/widgets/selldialog.h
index 8ae2168d0..d147947b5 100644
--- a/src/gui/widgets/selldialog.h
+++ b/src/gui/widgets/selldialog.h
@@ -48,15 +48,8 @@ class SellDialog notfinal : public Window,
public:
/**
* Constructor.
- *
- * @see Window::Window
- */
- SellDialog();
-
- /**
- * Constructor.
*/
- explicit SellDialog(const std::string &nick);
+ explicit SellDialog(const bool isSell);
A_DELETE_COPY(SellDialog)
@@ -111,6 +104,8 @@ class SellDialog notfinal : public Window,
*/
static void closeAll();
+ void postInit();
+
protected:
typedef std::list<SellDialog*> DialogList;
static DialogList instances;
@@ -122,6 +117,9 @@ class SellDialog notfinal : public Window,
virtual void sellAction(const ActionEvent &event) = 0;
+ virtual void initButtons()
+ { }
+
Button *mSellButton;
Button *mQuitButton;
Button *mAddMaxButton;
@@ -137,6 +135,8 @@ class SellDialog notfinal : public Window,
int mPlayerMoney;
int mMaxItems;
int mAmountItems;
+
+ bool mIsSell;
};
#endif // GUI_WIDGETS_SELLDIALOG_H