summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e3d8c32)
raw | patch | inline | side by side (parent: e3d8c32)
author | nicholasbishop <nicholasbishop@users.sourceforge.net> | |
Wed, 17 Oct 2007 06:50:06 +0000 (06:50 +0000) | ||
committer | nicholasbishop <nicholasbishop@users.sourceforge.net> | |
Wed, 17 Oct 2007 06:50:06 +0000 (06:50 +0000) |
src/ui/dialog/filter-effects-dialog.cpp | patch | blob | history | |
src/ui/dialog/filter-effects-dialog.h | patch | blob | history |
index 583591d8ec93ce5ee7907faaecf6f3a2e553d352..80f6428527bc79280b0ad1ea953f372c3c4f5377 100644 (file)
sigc::mem_fun(*this, &FilterModifier::filter_list_button_release));
_menu = create_popup_menu(*this, sigc::mem_fun(*this, &FilterModifier::duplicate_filter),
sigc::mem_fun(*this, &FilterModifier::remove_filter));
+ _menu->items().push_back(Gtk::Menu_Helpers::MenuElem(
+ _("R_ename"), sigc::mem_fun(*this, &FilterModifier::rename_filter)));
_menu->accelerate(*this);
_list.get_selection()->signal_changed().connect(sigc::mem_fun(*this, &FilterModifier::on_filter_selection_changed));
}
}
+void FilterEffectsDialog::FilterModifier::rename_filter()
+{
+ _list.set_cursor(_model->get_path(_list.get_selection()->get_selected()), *_list.get_column(1), true);
+}
+
FilterEffectsDialog::CellRendererConnection::CellRendererConnection()
: Glib::ObjectBase(typeid(CellRendererConnection)),
_primitive(*this, "primitive", 0)
index cb543775b7f4905eb946fcf24aefc3d696aa87a1..d1a5039e3ed708a7cb8703279a7af2962e5497fe 100644 (file)
void add_filter();
void remove_filter();
void duplicate_filter();
+ void rename_filter();
sigc::connection _doc_replaced;
sigc::connection _resource_changed;