summaryrefslogtreecommitdiffstats
path: root/src/verbs.h
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2006-04-28 08:48:09 +0000
committerjoncruz <joncruz@users.sourceforge.net>2006-04-28 08:48:09 +0000
commit694afd0e010d4ae3a45ee9dfa6ca4f75063d2d5d (patch)
tree7bbb04120cb5c092a43f87bfa2e0fa75ce82b315 /src/verbs.h
parentsolved Bug 1474325, added italian and czech translation (diff)
downloadinkscape-694afd0e010d4ae3a45ee9dfa6ca4f75063d2d5d.tar.gz
inkscape-694afd0e010d4ae3a45ee9dfa6ca4f75063d2d5d.zip
Adding unit test for verbs.
(bzr r604)
Diffstat (limited to 'src/verbs.h')
-rw-r--r--src/verbs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/verbs.h b/src/verbs.h
index d715466e7..f77085d7a 100644
--- a/src/verbs.h
+++ b/src/verbs.h
@@ -378,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 */