summaryrefslogtreecommitdiff
path: root/src
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
parent46dd47b2652d0928bc414b12685a89effe41e9ef (diff)
downloadplus-5adddd3e7245baf51c145f52b3784a6b4af554ef.tar.gz
plus-5adddd3e7245baf51c145f52b3784a6b4af554ef.tar.bz2
plus-5adddd3e7245baf51c145f52b3784a6b4af554ef.tar.xz
plus-5adddd3e7245baf51c145f52b3784a6b4af554ef.zip
improve npcpostdialog class.
Diffstat (limited to 'src')
-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