summaryrefslogblamecommitdiff
path: root/src/gui/setup.h
blob: 1d8b859fd5d47fa336d6e340d60e30be9114f8ad (plain) (tree)
1
2
3
4
5
6
7
8







                                                                  




















                                  
 





                                                      

      
/*----------------------------------------------------------------
 * setup.h -- setup dialog module
 *----------------------------------------------------------------
 */

#ifndef tmw_included_setup_h
#define tmw_included_setup_h

#include <allegro.h>
#ifdef WIN32
#include <winallegro.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