summaryrefslogtreecommitdiff
path: root/src/gui/windows/selldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-22 14:04:40 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-22 14:04:40 +0300
commitd34decaf8b2b4cbffca970e9059e1a2b4f463055 (patch)
tree047edf620410b2a85ea54ba0f2c5670290317e52 /src/gui/windows/selldialog.h
parentf7e32db400bcfdd1b5f3c30d817ceeae5e1dc573 (diff)
downloadmanaverse-d34decaf8b2b4cbffca970e9059e1a2b4f463055.tar.gz
manaverse-d34decaf8b2b4cbffca970e9059e1a2b4f463055.tar.bz2
manaverse-d34decaf8b2b4cbffca970e9059e1a2b4f463055.tar.xz
manaverse-d34decaf8b2b4cbffca970e9059e1a2b4f463055.zip
Move npc sell code from SellDialog into NpcSellDialog.
Diffstat (limited to 'src/gui/windows/selldialog.h')
-rw-r--r--src/gui/windows/selldialog.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/windows/selldialog.h b/src/gui/windows/selldialog.h
index 0cfffbf38..81aaabbb2 100644
--- a/src/gui/windows/selldialog.h
+++ b/src/gui/windows/selldialog.h
@@ -41,9 +41,9 @@ class Slider;
*
* \ingroup Interface
*/
-class SellDialog final : public Window,
- private ActionListener,
- private SelectionListener
+class SellDialog notfinal : public Window,
+ public ActionListener,
+ private SelectionListener
{
public:
/**
@@ -113,7 +113,7 @@ class SellDialog final : public Window,
*/
static void closeAll();
- private:
+ protected:
typedef std::list<SellDialog*> DialogList;
static DialogList instances;
@@ -122,6 +122,9 @@ class SellDialog final : public Window,
*/
void updateButtonsAndLabels();
+ virtual void sellAction(const ActionEvent &event A_UNUSED)
+ { }
+
std::string mNick;
Button *mSellButton;