summaryrefslogtreecommitdiff
path: root/src/gui/setup.h
blob: bb211997ada09045ee07738ebe8604cd9f31fefe (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
/*----------------------------------------------------------------
 * setup.h -- setup dialog module
 *----------------------------------------------------------------
 */

#ifndef tmw_included_setup_h
#define tmw_included_setup_h

#include "gui.h"
#include "../graphic/graphic.h"
#include <allegro.h>
#ifdef WIN32
#include <winalleg.h>
#endif

class Setup {
 public:
  Setup();
  ~Setup();
  void toggleVisible(bool toggle);
  
 private:
  bool visible;
  /* Dialog parts */
  gcn::Container *setupDialog;
  gcn::Label *displayLabel;
  gcn::Button *applyButton;
  gcn::Button *cancelButton;
};

/* The action listener for setup dialog */
class SetupActionListener : public gcn::ActionListener
{
 public:
  void action(const std::string& eventId);
};

#endif