1 // Copyright (C) 2007 Ole Laursen
2 // Copyright (C) 2007, 2008, 2009 Ben Asselstine
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 3 of the License, or
7 // (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Library General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 #ifndef RUIN_EDITOR_DIALOG_H
20 #define RUIN_EDITOR_DIALOG_H
23 #include <sigc++/trackable.h>
28 class CreateScenarioRandomize;
31 //! Scenario editor. Edits Ruin objects.
32 class RuinEditorDialog: public sigc::trackable
35 RuinEditorDialog(Ruin *ruin, CreateScenarioRandomize *randomize);
38 void set_parent_window(Gtk::Window &parent);
44 Gtk::Entry *name_entry;
45 Gtk::Entry *description_entry;
46 Gtk::SpinButton *type_entry;
47 Gtk::Button *keeper_button;
48 Gtk::Button *randomize_name_button;
49 Gtk::Button *clear_keeper_button;
50 Gtk::Button *randomize_keeper_button;
51 Gtk::CheckButton *sage_button;
52 Gtk::CheckButton *hidden_button;
53 Gtk::ComboBoxText *player_combobox;
54 Gtk::HBox *new_reward_hbox;
55 Gtk::RadioButton *new_reward_radiobutton;
56 Gtk::RadioButton *random_reward_radiobutton;
57 Gtk::Button *reward_button;
58 Gtk::Button *clear_reward_button;
59 Gtk::Button *randomize_reward_button;
60 Gtk::Button *reward_list_button;
64 CreateScenarioRandomize *d_randomizer;
66 void set_keeper_name();
67 void set_reward_name();
69 void on_keeper_clicked();
70 void on_clear_keeper_clicked();
71 void on_hidden_toggled();
72 void on_randomize_name_clicked();
73 void on_randomize_keeper_clicked();
74 void on_new_reward_toggled();
75 void on_random_reward_toggled();
76 void on_clear_reward_clicked();
77 void on_randomize_reward_clicked();
78 void on_reward_list_clicked();
79 void on_reward_clicked();