00001 /* $Id:question.h jjs $ */ 00002 /* 00003 Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl> 00004 Part of the Moros Project http://moros.sourceforge.net/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License. 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY. 00010 00011 See the COPYING file for more details. 00012 */ 00013 #ifndef QUESTION_H 00014 #define QUESTION_H 00015 00016 #include <gtkmm.h> 00017 #include <libglademm.h> 00018 00020 00021 class question : public Gtk::Dialog 00022 { 00023 public: 00024 question(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> refGlade); 00025 virtual ~question(); 00026 sigc::signal<void> signal_yes; 00027 Gtk::Label* question_text; 00028 00029 protected: 00030 Glib::RefPtr<Gnome::Glade::Xml> m_refGlade; 00031 virtual void clicked_no(); 00032 virtual void clicked_yes(); 00033 Gtk::Button* question_no; 00034 Gtk::Button* question_yes; 00035 }; 00036 00037 void init_question(); 00038 void ask_question(std::string question, sigc::signal<void> signal_yes); 00039 00040 #endif //QUESTION_H 00041