Code

adding a dialog for SVG Fonts
authorJucaBlues <JucaBlues@users.sourceforge.net>
Wed, 25 Jun 2008 02:53:34 +0000 (02:53 +0000)
committerJucaBlues <JucaBlues@users.sourceforge.net>
Wed, 25 Jun 2008 02:53:34 +0000 (02:53 +0000)
src/menus-skeleton.h
src/ui/dialog/Makefile_insert
src/ui/dialog/dialog-manager.cpp
src/verbs.cpp
src/verbs.h

index c712b52a9fe79783a71f9db08d2d20ce50264dcb..51573f7d3575154eca6935f427755b1e8db3bf2d 100644 (file)
@@ -162,6 +162,8 @@ static char const menus_skeleton[] =
 "       <verb verb-id=\"DialogFilterEffects\" />\n"
 "       <verb verb-id=\"RemoveFilter\" />\n"
 "       <separator/>\n"
+"       <verb verb-id=\"DialogSVGFonts\" />\n"
+"       <separator/>\n"
 "       <verb verb-id=\"SelectionGroup\" />\n"
 "       <verb verb-id=\"SelectionUnGroup\" />\n"
 "       <separator/>\n"
index 9d9bce6057648d62c48436bdbdb73ee25d06808d..e300fe5b3eb8e9e90ea95a25b173627bd0465d09 100644 (file)
@@ -52,6 +52,8 @@ ui_dialog_libuidialog_a_SOURCES =             \
        ui/dialog/print.h                       \
        ui/dialog/scriptdialog.cpp              \
        ui/dialog/scriptdialog.h                \
+       ui/dialog/svg-fonts-dialog.cpp  \
+       ui/dialog/svg-fonts-dialog.h            \
        ui/dialog/text-properties.cpp           \
        ui/dialog/text-properties.h             \
        ui/dialog/tracedialog.cpp               \
index 15ebcef5ac133824f50c35381345a001e88d2de0..a2b839607e7fb2f81a08564ccef970e5189dcf13 100644 (file)
@@ -33,6 +33,7 @@
 #include "ui/dialog/memory.h"
 #include "ui/dialog/messages.h"
 #include "ui/dialog/scriptdialog.h"
+#include "ui/dialog/svg-fonts-dialog.h"
 #include "ui/dialog/text-properties.h"
 #include "ui/dialog/tracedialog.h"
 #include "ui/dialog/transformation.h"
@@ -105,6 +106,9 @@ DialogManager::DialogManager() {
         registerFactory("Memory",              &create<Memory,               FloatingBehavior>);
         registerFactory("Messages",            &create<Messages,             FloatingBehavior>);
         registerFactory("Script",              &create<ScriptDialog,         FloatingBehavior>);
+#ifdef ENABLE_SVG_FONTS
+        registerFactory("SvgFontsDialog",      &create<SvgFontsDialog,       FloatingBehavior>);
+#endif
         registerFactory("Swatches",            &create<SwatchesPanel,        FloatingBehavior>);
         registerFactory("TextProperties",      &create<TextProperties,       FloatingBehavior>);
         registerFactory("TileDialog",          &create<TileDialog,           FloatingBehavior>);
@@ -133,6 +137,9 @@ DialogManager::DialogManager() {
         registerFactory("Memory",              &create<Memory,               DockBehavior>);
         registerFactory("Messages",            &create<Messages,             DockBehavior>);
         registerFactory("Script",              &create<ScriptDialog,         DockBehavior>);
+#ifdef ENABLE_SVG_FONTS
+        registerFactory("SvgFontsDialog",      &create<SvgFontsDialog,       DockBehavior>);
+#endif
         registerFactory("Swatches",            &create<SwatchesPanel,        DockBehavior>);
         registerFactory("TextProperties",      &create<TextProperties,       DockBehavior>);
         registerFactory("TileDialog",          &create<TileDialog,           DockBehavior>);
index da3c7c1820cf7d1b4c69734a719549abf451bfba..494181e555e5536700740f2c4fa713efe8cec17e 100644 (file)
@@ -1816,6 +1816,9 @@ DialogVerb::perform(SPAction *action, void *data, void */*pdata*/)
         case SP_VERB_DIALOG_FILTER_EFFECTS:
             dt->_dlg_mgr->showDialog("FilterEffectsDialog");
             break;
+        case SP_VERB_DIALOG_SVG_FONTS:
+            dt->_dlg_mgr->showDialog("SvgFontsDialog");
+            break;
         default:
             break;
     }
@@ -2632,6 +2635,8 @@ Verb *Verb::_base_verbs[] = {
                    N_("Manage path effects"), NULL),
     new DialogVerb(SP_VERB_DIALOG_FILTER_EFFECTS, "DialogFilterEffects", N_("Filter Effects..."),
                    N_("Manage SVG filter effects"), NULL),
+    new DialogVerb(SP_VERB_DIALOG_SVG_FONTS, "DialogSVGFonts", N_("SVG Fonts..."),
+                   N_("Manage SVG fonts"), NULL),
 
     /* Help */
     new HelpVerb(SP_VERB_HELP_ABOUT_EXTENSIONS, "HelpAboutExtensions", N_("About E_xtensions"),
index 657716bc3e3471757224ceff2eff7117766598f0..bb3cd3a3bf14f6b276501bd4f7dd6f1290dcbed6 100644 (file)
@@ -241,6 +241,7 @@ enum {
     SP_VERB_DIALOG_LAYERS,
     SP_VERB_DIALOG_LIVE_PATH_EFFECT,
     SP_VERB_DIALOG_FILTER_EFFECTS,
+    SP_VERB_DIALOG_SVG_FONTS,
     /* Help */
     SP_VERB_HELP_ABOUT_EXTENSIONS,
     SP_VERB_HELP_MEMORY,