From f93db00a4f76cba17ea918fec5b1a8e8e206215b Mon Sep 17 00:00:00 2001 From: JucaBlues Date: Tue, 5 Aug 2008 10:18:20 +0000 Subject: [PATCH] added class AttrEntry Added 2 entries in glyphs tab (svgfonts dialog). But these fields do not change attributes yet --- src/ui/dialog/svg-fonts-dialog.cpp | 10 ++++++++++ src/ui/dialog/svg-fonts-dialog.h | 1 + 2 files changed, 11 insertions(+) diff --git a/src/ui/dialog/svg-fonts-dialog.cpp b/src/ui/dialog/svg-fonts-dialog.cpp index ac9556e14..9483b2915 100644 --- a/src/ui/dialog/svg-fonts-dialog.cpp +++ b/src/ui/dialog/svg-fonts-dialog.cpp @@ -59,6 +59,14 @@ namespace Inkscape { namespace UI { namespace Dialog { +Gtk::HBox* SvgFontsDialog::AttrEntry(gchar* lbl){ + Gtk::HBox* hbox = Gtk::manage(new Gtk::HBox()); + hbox->add(* Gtk::manage(new Gtk::Label(lbl)) ); + hbox->add(* Gtk::manage(new Gtk::Entry()) ); + hbox->show_all(); + return hbox; +} + /*** SvgFontsDialog ***/ GlyphComboBox::GlyphComboBox(){ @@ -192,6 +200,8 @@ Gtk::VBox* SvgFontsDialog::global_settings_tab(){ Gtk::VBox* SvgFontsDialog::glyphs_tab(){ Gtk::VBox* glyphs_vbox = Gtk::manage(new Gtk::VBox()); + glyphs_vbox->add(*AttrEntry((gchar*) "Name")); + glyphs_vbox->add(*AttrEntry((gchar*) "Unicode")); return glyphs_vbox; } diff --git a/src/ui/dialog/svg-fonts-dialog.h b/src/ui/dialog/svg-fonts-dialog.h index 7bbe17f56..9ce26f80d 100644 --- a/src/ui/dialog/svg-fonts-dialog.h +++ b/src/ui/dialog/svg-fonts-dialog.h @@ -71,6 +71,7 @@ public: void on_setwidth_changed(); private: + Gtk::HBox* AttrEntry(gchar* lbl); Gtk::VBox* global_settings_tab(); Gtk::VBox* kerning_tab(); Gtk::VBox* glyphs_tab(); -- 2.30.2