Code

r11146@tres: ted | 2006-03-27 22:27:01 -0800
[inkscape.git] / src / extension / effect.cpp
index f88833ec445c9a545726ac362bdf4dca0b6da268..78af878d35d72744a10aac3f4202e66cb998347e 100644 (file)
@@ -42,6 +42,14 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation *
                         // printf("Found local effects menu in %s\n", this->get_name());
                         local_effects_menu = sp_repr_children(child_repr);
                     }
+                    if (!strcmp(child_repr->name(), "menu-name")) {
+                        // printf("Found local effects menu in %s\n", this->get_name());
+                        _verb.set_name(sp_repr_children(child_repr)->content());
+                    }
+                    if (!strcmp(child_repr->name(), "menu-tip")) {
+                        // printf("Found local effects menu in %s\n", this->get_name());
+                        _verb.set_tip(sp_repr_children(child_repr)->content());
+                    }
                 } // children of "effect"
                 break; // there can only be one effect
             } // find "effect"
@@ -181,7 +189,7 @@ Effect::prefs (Inkscape::UI::View::View * doc)
         return true;
     }
 
-    PrefDialog * dialog = new PrefDialog(this->get_name(), controls);
+    PrefDialog * dialog = new PrefDialog(this->get_name(), this->get_help(), controls);
     int response = dialog->run();
     dialog->hide();
 
@@ -253,6 +261,12 @@ Effect::find_effects_list (Inkscape::XML::Node * menustruct)
     return false;
 }
 
+Gtk::VBox *
+Effect::get_info_widget(void)
+{
+    return Extension::get_info_widget();
+}
+
 /** \brief  Create an action for a \c EffectVerb
     \param  view  Which view the action should be created for
     \return The built action.