1 // Copyright (C) 2007, 2008, 2009 Ben Asselstine
3 // This program is free software; you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation; either version 3 of the License, or
6 // (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU Library General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 #ifndef GAME_OPTIONS_DIALOG_H
19 #define GAME_OPTIONS_DIALOG_H
23 #include <sigc++/trackable.h>
25 #include <sigc++/signal.h>
28 #include "game-parameters.h"
30 #include "decorated.h"
31 // dialog for setting game options before the game starts
32 class GameOptionsDialog: public Decorated
35 GameOptionsDialog(bool readonly);
38 void set_parent_window(Gtk::Window &parent);
43 sigc::signal<void> difficulty_option_changed;
47 Gtk::Table *difficultoptionstable;
48 Gtk::Table *notdifficultoptionstable;
49 Gtk::ComboBox *quests_combobox;
50 Gtk::CheckButton *view_enemies_checkbutton;
51 Gtk::CheckButton *view_production_checkbutton;
52 Gtk::CheckButton *hidden_map_checkbutton;
53 Gtk::ComboBox *neutral_cities_combobox;
54 Gtk::ComboBox *razing_cities_combobox;
55 Gtk::CheckButton *diplomacy_checkbutton;
56 Gtk::CheckButton *intense_combat_checkbutton;
57 Gtk::CheckButton *military_advisor_checkbutton;
58 Gtk::CheckButton *random_turns_checkbutton;
59 Gtk::ComboBox *quick_start_combobox;
60 Gtk::CheckButton *cusp_of_war_checkbutton;
61 void fill_in_options();
62 void on_view_enemies_checkbutton_clicked();
63 void on_view_production_checkbutton_clicked();
64 void on_quests_combobox_changed();
65 void on_hidden_map_checkbutton_clicked();
66 void on_neutral_cities_combobox_changed();
67 void on_razing_cities_combobox_changed();
68 void on_diplomacy_checkbutton_clicked();
69 void on_cusp_of_war_checkbutton_clicked();
70 void on_random_turns_checkbutton_clicked();
71 void on_quick_start_combobox_changed();
72 void on_intense_combat_checkbutton_clicked();
73 void on_military_advisor_checkbutton_clicked();