From de4548a50ecb4d4700c9899044f50070f7d9a95a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Sep 2014 19:48:04 +0300 Subject: Add egg selection dialog. --- src/gui/widgets/selldialog.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui/widgets/selldialog.h') 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 @@ -46,17 +46,10 @@ class SellDialog notfinal : public Window, private SelectionListener { 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 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 -- cgit v1.2.3-70-g09d2