diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-17 12:42:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-17 12:42:26 +0300 |
commit | 5adddd3e7245baf51c145f52b3784a6b4af554ef (patch) | |
tree | c8fc9cdc9acdfd333e8554d308b24c4674dc118e | |
parent | 46dd47b2652d0928bc414b12685a89effe41e9ef (diff) | |
download | mv-5adddd3e7245baf51c145f52b3784a6b4af554ef.tar.gz mv-5adddd3e7245baf51c145f52b3784a6b4af554ef.tar.bz2 mv-5adddd3e7245baf51c145f52b3784a6b4af554ef.tar.xz mv-5adddd3e7245baf51c145f52b3784a6b4af554ef.zip |
improve npcpostdialog class.
-rw-r--r-- | src/gui/npcpostdialog.h | 57 |
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 |