summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-02-27 13:55:09 +0000
committertavmjong-free <tavmjong@free.fr>2017-02-27 13:55:09 +0000
commitc6ec9680ac0320a038c0eb1d3776faad9dfc2af5 (patch)
tree63c98bc42e0476cf916902887e4a199a5109b6ca /src/verbs.cpp
parentFix desktop/document tracking. (diff)
downloadinkscape-c6ec9680ac0320a038c0eb1d3776faad9dfc2af5.tar.gz
inkscape-c6ec9680ac0320a038c0eb1d3776faad9dfc2af5.zip
Add a very simple prototype dialog as an example and test of deriving from Panel.
To be disabled for releases. (bzr r15551)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index fce823408..d67e68392 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -2058,6 +2058,9 @@ void DialogVerb::perform(SPAction *action, void *data)
g_assert(dt->_dlg_mgr != NULL);
switch (reinterpret_cast<std::size_t>(data)) {
+ case SP_VERB_DIALOG_PROTOTYPE:
+ dt->_dlg_mgr->showDialog("Prototype");
+ break;
case SP_VERB_DIALOG_DISPLAY:
//sp_display_dialog();
dt->_dlg_mgr->showDialog("InkscapePreferences");
@@ -2956,6 +2959,8 @@ Verb *Verb::_base_verbs[] = {
N_("Zoom to fit selection in window"), INKSCAPE_ICON("zoom-fit-selection")),
// Dialogs
+ new DialogVerb(SP_VERB_DIALOG_PROTOTYPE, "DialogPrototype", N_("Prototype..."),
+ N_("Prototype Dialog"), INKSCAPE_ICON("gtk-preferences")),
new DialogVerb(SP_VERB_DIALOG_DISPLAY, "DialogPreferences", N_("P_references..."),
N_("Edit global Inkscape preferences"), INKSCAPE_ICON("gtk-preferences")),
new DialogVerb(SP_VERB_DIALOG_NAMEDVIEW, "DialogDocumentProperties", N_("_Document Properties..."),