summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db1ea68)
raw | patch | inline | side by side (parent: db1ea68)
author | gouldtj <gouldtj@users.sourceforge.net> | |
Thu, 1 Mar 2007 07:13:43 +0000 (07:13 +0000) | ||
committer | gouldtj <gouldtj@users.sourceforge.net> | |
Thu, 1 Mar 2007 07:13:43 +0000 (07:13 +0000) |
Basic construction in place to --verb-list
src/main.cpp | patch | blob | history | |
src/verbs.cpp | patch | blob | history | |
src/verbs.h | patch | blob | history |
diff --git a/src/main.cpp b/src/main.cpp
index c62bed422fc38a7dd75a5275caab1e0678619918..50aaf99a7cbfe47fd7cb25fbab11721efba34f3c 100644 (file)
--- a/src/main.cpp
+++ b/src/main.cpp
SP_ARG_QUERY_ID,
SP_ARG_VERSION,
SP_ARG_VACUUM_DEFS,
+ SP_ARG_VERB_LIST,
SP_ARG_LAST
};
N_("Remove unused definitions from the defs section(s) of the document"),
NULL},
+ {"verb-list", 0,
+ POPT_ARG_NONE, NULL, SP_ARG_VERB_LIST,
+ N_("List the IDs of all the verbs in Inkscape"),
+ NULL},
+
POPT_AUTOHELP POPT_TABLEEND
};
exit(0);
break;
}
+ case SP_ARG_VERB_LIST: {
+ Inkscape::Verb::list();
+ exit(0);
+ break;
+ }
default: {
break;
}
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 401390fba04f8b9ab80679037a1267b9d1a4cb77..36884f37b047403a9b20c6e60ac600549e4cb4a8 100644 (file)
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
};
+void
+Verb::list (void) {
+ printf("Listing Verbs\n");
+
+};
+
} /* namespace Inkscape */
/*
diff --git a/src/verbs.h b/src/verbs.h
index 4143c6fd722ee29f294049c4e5742e0c7bce42a6..9fd9689e26e86a92f22c424a702d957a21bc4a71 100644 (file)
--- a/src/verbs.h
+++ b/src/verbs.h
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);}
+ static int _getBaseListSize(void) {return G_N_ELEMENTS(_base_verbs);}
+public:
+ static void list (void);
}; /* Verb class */