summaryrefslogtreecommitdiff
path: root/src/gui/setup.h
blob: 5c92f1361a374b26890eaad365cf716c96e4a058 (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 <allegro.h>
#ifdef WIN32
#include <winalleg.h>
#endif
#include "gui.h"
#include "../graphic/graphic.h"

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