summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 759784e)
raw | patch | inline | side by side (parent: 759784e)
author | gouldtj <gouldtj@users.sourceforge.net> | |
Thu, 1 Mar 2007 07:13:50 +0000 (07:13 +0000) | ||
committer | gouldtj <gouldtj@users.sourceforge.net> | |
Thu, 1 Mar 2007 07:13:50 +0000 (07:13 +0000) |
Filling in the list function to list all the verbs for the command line
option --verb-list
option --verb-list
src/verbs.cpp | patch | blob | history |
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 36884f37b047403a9b20c6e60ac600549e4cb4a8..1627f42bf261955ab32f0e63f394621d55c89f7e 100644 (file)
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
void
Verb::list (void) {
- printf("Listing Verbs\n");
+ // Go through the dynamic verb table
+ for (VerbTable::iterator iter = _verbs.begin(); iter != _verbs.end(); iter++) {
+ Verb * verb = iter->second;
+ if (verb->get_code() == SP_VERB_INVALID ||
+ verb->get_code() == SP_VERB_NONE ||
+ verb->get_code() == SP_VERB_LAST) {
+ continue;
+ }
+
+ printf("\"%s\", \"%s\"\n", verb->get_id(), verb->get_name());
+ }
+ return;
};
} /* namespace Inkscape */