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







                                                                  

                               

                    
                     
      














                                  
 





                                                      

      
/*----------------------------------------------------------------
 * 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