Code

r11516@tres: ted | 2006-04-26 21:30:18 -0700
[inkscape.git] / src / verbs.h
index acc6d7d17a9fdee7a9f4b7a069ebd5a25f9d12e6..f77085d7a3400827331c7ed96053e89960055668 100644 (file)
@@ -47,6 +47,12 @@ enum {
     SP_VERB_EDIT_COPY,
     SP_VERB_EDIT_PASTE,
     SP_VERB_EDIT_PASTE_STYLE,
+    SP_VERB_EDIT_PASTE_SIZE,
+    SP_VERB_EDIT_PASTE_SIZE_X,
+    SP_VERB_EDIT_PASTE_SIZE_Y,
+    SP_VERB_EDIT_PASTE_SIZE_SEPARATELY,
+    SP_VERB_EDIT_PASTE_SIZE_SEPARATELY_X,
+    SP_VERB_EDIT_PASTE_SIZE_SEPARATELY_Y,
     SP_VERB_EDIT_PASTE_IN_PLACE,
     SP_VERB_EDIT_DELETE,
     SP_VERB_EDIT_DUPLICATE,
@@ -115,6 +121,10 @@ enum {
     SP_VERB_OBJECT_FLOWTEXT_TO_TEXT,
     SP_VERB_OBJECT_FLIP_HORIZONTAL,
     SP_VERB_OBJECT_FLIP_VERTICAL,
+    SP_VERB_OBJECT_SET_MASK,
+    SP_VERB_OBJECT_UNSET_MASK,
+    SP_VERB_OBJECT_SET_CLIPPATH,
+    SP_VERB_OBJECT_UNSET_CLIPPATH,
     /* Tools */
     SP_VERB_CONTEXT_SELECT,
     SP_VERB_CONTEXT_NODE,
@@ -196,12 +206,13 @@ enum {
        SP_VERB_DIALOG_WHITEBOARD_DISCONNECT_FROM_SERVER,
 #endif
     SP_VERB_DIALOG_INPUT,
+    SP_VERB_DIALOG_EXTENSIONEDITOR,
     /* Help */
     SP_VERB_HELP_KEYS,
     SP_VERB_HELP_ABOUT_EXTENSIONS,
     SP_VERB_HELP_MEMORY,
     SP_VERB_HELP_ABOUT,
-    SP_VERB_SHOW_LICENSE,
+    //SP_VERB_SHOW_LICENSE,
     /* Tutorials */
     SP_VERB_TUTORIAL_BASIC,
     SP_VERB_TUTORIAL_SHAPES,
@@ -213,6 +224,10 @@ enum {
     /* Effects */
     SP_VERB_EFFECT_LAST,
     SP_VERB_EFFECT_LAST_PREF,
+    /* Fit Canvas */
+    SP_VERB_FIT_CANVAS_TO_SELECTION,
+    SP_VERB_FIT_CANVAS_TO_DRAWING,
+    SP_VERB_FIT_CANVAS_TO_SELECTION_OR_DRAWING,
     /* Footer */
     SP_VERB_LAST
 };
@@ -294,6 +309,11 @@ public:
     /** \brief Accessor to get the internal variable. */
     gchar const * get_name (void) { return _name; }
 
+    /** \brief Set the name after initialization. */
+    gchar const * set_name (gchar const * name) { _name = name; return _name; }
+    /** \brief Set the tooltip after initialization. */
+    gchar const * set_tip (gchar const * tip) { _tip = tip; return _tip; }
+
 protected:
     SPAction * make_action_helper (Inkscape::UI::View::View * view, SPActionEventVector * vector, void * in_pntr = NULL);
     virtual SPAction * make_action (Inkscape::UI::View::View * view);
@@ -358,6 +378,18 @@ public:
     void delete_view (Inkscape::UI::View::View * view);
 
     void sensitive (SPDocument * in_doc = NULL, bool in_sensitive = true);
+
+// Yes, multiple public, protected and private sections are bad. We'll clean that up later
+protected:
+    /** \brief Returns the size of the internal base verb array.
+        \return The size in elements of the internal base array.
+
+        This is an inline function intended for testing. This should normally not be used.
+        For testing, a subclass that returns this value can be created to verify that the
+        length matches the enum values, etc.
+    */
+    static int _getBaseListSize() {return G_N_ELEMENTS(_base_verbs);}
+
 }; /* Verb class */