00001 /* $Id:line_change.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 line_change_H 00014 #define line_change_H 00015 00016 #include <gtkmm.h> 00017 #include <libglademm.h> 00018 00020 00021 class line_change : public Gtk::Dialog 00022 { 00023 public: 00024 line_change(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> refGlade); 00025 virtual ~line_change(); 00026 sigc::signal<void, std::string> signal_apply; 00027 Gtk::Label* line_label; 00028 Gtk::Entry* line_text; 00029 00030 protected: 00031 Glib::RefPtr<Gnome::Glade::Xml> m_refGlade; 00032 virtual void clicked_apply(); 00033 virtual void clicked_cancel(); 00034 Gtk::Button* line_cancel; 00035 Gtk::Button* line_apply; 00036 }; 00037 00038 void init_line_change(); 00039 void line_changer(std::string label, std::string line, sigc::signal<void, std::string> signal_apply); 00040 00041 #endif //line_change_H 00042