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 HERO_OFFER_DIALOG_H
20 #define HERO_OFFER_DIALOG_H
24 #include <sigc++/trackable.h>
30 #include "heroproto.h"
32 #include "decorated.h"
34 //! dialog for accepting/rejecting a hero
35 class HeroOfferDialog: public Decorated
38 HeroOfferDialog(Player *player, HeroProto *hero, City *city, int gold);
41 void set_parent_window(Gtk::Window &parent);
48 //! The smallmap that shows where the Hero is emerging.
51 Gtk::Image *map_image;
52 Gtk::Image *hero_image;
53 Gtk::RadioButton *male_radiobutton;
54 Gtk::Entry *name_entry;
59 void on_male_toggled();
60 void on_map_changed(Glib::RefPtr<Gdk::Pixmap> map);