summaryrefslogtreecommitdiff
path: root/src/gui/stats.h
blob: b7f32f9920bba5bba994bfe6a3dad06a48108e6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _STATS_WINDOW_H
#define _STATS_WINDOW_H

#include "button.h"
#include "window.h"
#include "main.h"
#include <sstream>

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:
    int i;
  /* Stats values  */
  std::stringstream 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.
   */
  ~StatsWindow();
};

#endif /* _STATS_Window_H */