summaryrefslogblamecommitdiff
path: root/src/gui/setup.h
blob: 5c92f1361a374b26890eaad365cf716c96e4a058 (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 <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