From: JucaBlues Date: Wed, 25 Jun 2008 02:53:34 +0000 (+0000) Subject: adding a dialog for SVG Fonts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ab77eca6f2922852bbefbf56bb4e5279f6b13a5e;p=inkscape.git adding a dialog for SVG Fonts --- diff --git a/src/menus-skeleton.h b/src/menus-skeleton.h index c712b52a9..51573f7d3 100644 --- a/src/menus-skeleton.h +++ b/src/menus-skeleton.h @@ -162,6 +162,8 @@ static char const menus_skeleton[] = " \n" " \n" " \n" +" \n" +" \n" " \n" " \n" " \n" diff --git a/src/ui/dialog/Makefile_insert b/src/ui/dialog/Makefile_insert index 9d9bce605..e300fe5b3 100644 --- a/src/ui/dialog/Makefile_insert +++ b/src/ui/dialog/Makefile_insert @@ -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 \ diff --git a/src/ui/dialog/dialog-manager.cpp b/src/ui/dialog/dialog-manager.cpp index 15ebcef5a..a2b839607 100644 --- a/src/ui/dialog/dialog-manager.cpp +++ b/src/ui/dialog/dialog-manager.cpp @@ -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); registerFactory("Messages", &create); registerFactory("Script", &create); +#ifdef ENABLE_SVG_FONTS + registerFactory("SvgFontsDialog", &create); +#endif registerFactory("Swatches", &create); registerFactory("TextProperties", &create); registerFactory("TileDialog", &create); @@ -133,6 +137,9 @@ DialogManager::DialogManager() { registerFactory("Memory", &create); registerFactory("Messages", &create); registerFactory("Script", &create); +#ifdef ENABLE_SVG_FONTS + registerFactory("SvgFontsDialog", &create); +#endif registerFactory("Swatches", &create); registerFactory("TextProperties", &create); registerFactory("TileDialog", &create); diff --git a/src/verbs.cpp b/src/verbs.cpp index da3c7c182..494181e55 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -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"), diff --git a/src/verbs.h b/src/verbs.h index 657716bc3..bb3cd3a3b 100644 --- a/src/verbs.h +++ b/src/verbs.h @@ -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,