src/menu/options_menu.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  *  Wormux is a convivial mass murder game.
00003  *  Copyright (C) 2001-2004 Lawrence Azzoug.
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
00018  ******************************************************************************
00019  * Options menu
00020  *****************************************************************************/
00021 
00022 #ifndef OPTIONS_MENU_H
00023 #define OPTIONS_MENU_H
00024 
00025 #include "menu.h"
00026 #include "../include/base.h"
00027 #include "../graphic/font.h"
00028 
00029 class OptionMenu : public Menu
00030 {
00031   Font * normal_font;
00032 
00033 public:
00034    OptionMenu(); 
00035    ~OptionMenu();
00036 
00037 private:
00038 
00039    /* Graphic options controllers */   
00040    ListBox *lbox_video_mode;
00041    CheckBox *opt_display_wind_particles;
00042    CheckBox *opt_display_energy;
00043    CheckBox *opt_display_name;
00044    CheckBox *full_screen; 
00045    SpinButtonBig *opt_max_fps;
00046 
00047    /* Sound options controllers */
00048    ListBox *lbox_sound_freq;
00049    CheckBox *opt_music;
00050    CheckBox *opt_sound_effects;
00051 
00052    void SaveOptions();
00053    void OnClic(const Point2i &mousePosition, int button);
00054    void Draw(const Point2i &mousePosition);
00055 
00056    void __sig_ok();
00057    void __sig_cancel();
00058 };
00059 
00060 #endif

Generated on Mon Jan 1 13:10:58 2007 for Wormux by  doxygen 1.4.7