summaryrefslogtreecommitdiff
path: root/src/gui/stats.h
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-28 11:29:01 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-28 11:29:01 +0000
commit51777892f80d950757a27591dca861cc41f7a8fa (patch)
tree796fc0d7dc2c8c36ea0dfb3d009d8b83884e7772 /src/gui/stats.h
parentf8a90f4964ad694e1d6166f82b51897629df487c (diff)
downloadmana-client-51777892f80d950757a27591dca861cc41f7a8fa.tar.gz
mana-client-51777892f80d950757a27591dca861cc41f7a8fa.tar.bz2
mana-client-51777892f80d950757a27591dca861cc41f7a8fa.tar.xz
mana-client-51777892f80d950757a27591dca861cc41f7a8fa.zip
Added new gui for stats window
Diffstat (limited to 'src/gui/stats.h')
-rw-r--r--src/gui/stats.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/gui/stats.h b/src/gui/stats.h
new file mode 100644
index 00000000..9f716ef4
--- /dev/null
+++ b/src/gui/stats.h
@@ -0,0 +1,44 @@
+#ifndef _STATS_WINDOW_H
+#define _STATS_WINDOW_H
+
+#include "button.h"
+#include "window.h"
+#include "main.h"
+
+class StatsWindow : public Window, public gcn::ActionListener {
+ public:
+ /*
+ * Create the Stats window
+ */
+ static StatsWindow *create_statswindow();
+
+ /*
+ * Metod called when receiving actions from widget.
+ */
+ void action(const std::string& eventId);
+
+ private:
+ /* Stats values */
+ std::string statsStr[5];
+
+ /* Stats captions */
+ gcn::Label *statsLabel[5];
+
+ /* Stats buttons */
+ Button *statsButton[5];
+
+ /* Stats window ptr */
+ static StatsWindow *ptr;
+
+ /*
+ * Constructor.
+ */
+ StatsWindow(gcn::Container *parent);
+
+ /*
+ * Destructor.
+ */
+ virtual ~StatsWindow();
+};
+
+#endif /* _STATS_Window_H */