From: JucaBlues Date: Tue, 5 Aug 2008 10:18:20 +0000 (+0000) Subject: added class AttrEntry X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f93db00a4f76cba17ea918fec5b1a8e8e206215b;p=inkscape.git added class AttrEntry Added 2 entries in glyphs tab (svgfonts dialog). But these fields do not change attributes yet --- 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();