summaryrefslogtreecommitdiff
path: root/src/gui/npcpostdialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-17 12:42:26 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-17 12:42:26 +0300
commit5adddd3e7245baf51c145f52b3784a6b4af554ef (patch)
treec8fc9cdc9acdfd333e8554d308b24c4674dc118e /src/gui/npcpostdialog.h
parent46dd47b2652d0928bc414b12685a89effe41e9ef (diff)
downloadmanaverse-5adddd3e7245baf51c145f52b3784a6b4af554ef.tar.gz
manaverse-5adddd3e7245baf51c145f52b3784a6b4af554ef.tar.bz2
manaverse-5adddd3e7245baf51c145f52b3784a6b4af554ef.tar.xz
manaverse-5adddd3e7245baf51c145f52b3784a6b4af554ef.zip
improve npcpostdialog class.
Diffstat (limited to 'src/gui/npcpostdialog.h')
-rw-r--r--src/gui/npcpostdialog.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/src/gui/npcpostdialog.h b/src/gui/npcpostdialog.h
index 261e6e482..0340de324 100644
--- a/src/gui/npcpostdialog.h
+++ b/src/gui/npcpostdialog.h
@@ -30,44 +30,45 @@
class TextBox;
class TextField;
-class NpcPostDialog final : public Window, public gcn::ActionListener
+class NpcPostDialog final : public Window,
+ public gcn::ActionListener
{
-public:
- /**
- * Constructor
- */
- explicit NpcPostDialog(const int npcId);
+ public:
+ /**
+ * Constructor
+ */
+ explicit NpcPostDialog(const int npcId);
- A_DELETE_COPY(NpcPostDialog)
+ A_DELETE_COPY(NpcPostDialog)
- ~NpcPostDialog();
+ ~NpcPostDialog();
- /**
- * Called when receiving actions from the widgets.
- */
- void action(const gcn::ActionEvent &event) override;
+ /**
+ * Called when receiving actions from the widgets.
+ */
+ void action(const gcn::ActionEvent &event) override;
- void setVisible(bool visible);
+ void setVisible(bool visible) override;
- /**
- * Returns true if any instances exist.
- */
- static bool isActive() A_WARN_UNUSED
- { return !instances.empty(); }
+ /**
+ * Returns true if any instances exist.
+ */
+ static bool isActive() A_WARN_UNUSED
+ { return !instances.empty(); }
- /**
- * Closes all instances.
- */
- static void closeAll();
+ /**
+ * Closes all instances.
+ */
+ static void closeAll();
-private:
- typedef std::list<NpcPostDialog*> DialogList;
- static DialogList instances;
+ private:
+ typedef std::list<NpcPostDialog*> DialogList;
+ static DialogList instances;
- int mNpcId;
+ int mNpcId;
- TextBox *mText;
- TextField *mSender;
+ TextBox *mText;
+ TextField *mSender;
};
#endif