diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-22 19:48:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-22 19:48:04 +0300 |
commit | de4548a50ecb4d4700c9899044f50070f7d9a95a (patch) | |
tree | d54bc1bdf010b2a08cdf067fcaf64d92d42685b1 /src/gui/widgets/selldialog.h | |
parent | bf3c7384ad1b1fce8beac97f8715eb054158f72e (diff) | |
download | manaplus-de4548a50ecb4d4700c9899044f50070f7d9a95a.tar.gz manaplus-de4548a50ecb4d4700c9899044f50070f7d9a95a.tar.bz2 manaplus-de4548a50ecb4d4700c9899044f50070f7d9a95a.tar.xz manaplus-de4548a50ecb4d4700c9899044f50070f7d9a95a.zip |
Add egg selection dialog.
Diffstat (limited to 'src/gui/widgets/selldialog.h')
-rw-r--r-- | src/gui/widgets/selldialog.h | 16 |
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 |