SpectMorph
|
00001 /* 00002 * Copyright (C) 2011 Stefan Westerfeld 00003 * 00004 * This library is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Lesser General Public License as published by the 00006 * Free Software Foundation; either version 3 of the License, or (at your 00007 * option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, but WITHOUT 00010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 00012 * for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef SPECTMORPH_RENAME_OPERATOR_DIALOG_HH 00019 #define SPECTMORPH_RENAME_OPERATOR_DIALOG_HH 00020 00021 #include <gtkmm.h> 00022 #include "smmorphoperator.hh" 00023 00024 namespace SpectMorph 00025 { 00026 00027 class RenameOperatorDialog : public Gtk::Dialog 00028 { 00029 protected: 00030 Gtk::Label old_label; 00031 Gtk::Label old_name_label; 00032 Gtk::Label new_label; 00033 Gtk::Entry new_name_entry; 00034 Gtk::Table table; 00035 00036 Gtk::Button *ok_button; 00037 00038 MorphOperator *op; 00039 00040 void on_name_changed(); 00041 void on_activate(); 00042 00043 public: 00044 RenameOperatorDialog (MorphOperator *op); 00045 00046 std::string new_name(); 00047 }; 00048 00049 } 00050 00051 #endif