From c86404990230acd7f971883a86ef28a25effd702 Mon Sep 17 00:00:00 2001 From: JucaBlues Date: Tue, 5 Aug 2008 11:01:14 +0000 Subject: [PATCH] more mockup on svgfonts dialog --- src/ui/dialog/svg-fonts-dialog.cpp | 26 +++++++++++++++++++++++++- src/ui/dialog/svg-fonts-dialog.h | 2 ++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/ui/dialog/svg-fonts-dialog.cpp b/src/ui/dialog/svg-fonts-dialog.cpp index 9483b2915..ccbe45046 100644 --- a/src/ui/dialog/svg-fonts-dialog.cpp +++ b/src/ui/dialog/svg-fonts-dialog.cpp @@ -67,6 +67,23 @@ Gtk::HBox* SvgFontsDialog::AttrEntry(gchar* lbl){ return hbox; } +Gtk::HBox* SvgFontsDialog::AttrCombo(gchar* lbl){ + Gtk::HBox* hbox = Gtk::manage(new Gtk::HBox()); + hbox->add(* Gtk::manage(new Gtk::Label(lbl)) ); + hbox->add(* Gtk::manage(new Gtk::ComboBox()) ); + hbox->show_all(); + return hbox; +} + +/* +Gtk::HBox* SvgFontsDialog::AttrSpin(gchar* lbl){ + Gtk::HBox* hbox = Gtk::manage(new Gtk::HBox()); + hbox->add(* Gtk::manage(new Gtk::Label(lbl)) ); + hbox->add(* Gtk::manage(new Gtk::SpinBox()) ); + hbox->show_all(); + return hbox; +}*/ + /*** SvgFontsDialog ***/ GlyphComboBox::GlyphComboBox(){ @@ -185,6 +202,11 @@ SPFont* SvgFontsDialog::get_selected_spfont() Gtk::VBox* SvgFontsDialog::global_settings_tab(){ Gtk::VBox* global_vbox = Gtk::manage(new Gtk::VBox()); + global_vbox->add(*AttrEntry((gchar*) "Family Name")); + global_vbox->add(*AttrCombo((gchar*) "Style")); + global_vbox->add(*AttrCombo((gchar*) "Variant")); + global_vbox->add(*AttrCombo((gchar*) "Weight")); + //Set Width (horiz_adv_x): Gtk::HBox* setwidth_hbox = Gtk::manage(new Gtk::HBox()); setwidth_hbox->add(*Gtk::manage(new Gtk::Label(_("Set width:")))); @@ -200,8 +222,10 @@ 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*) "Glyph Name")); glyphs_vbox->add(*AttrEntry((gchar*) "Unicode")); + //glyphs_vbox->add(*AttrSpin((gchar*) "Horizontal Advance")); + //glyphs_vbox->add(*AttrCombo((gchar*) "Missing Glyph")); return glyphs_vbox; } diff --git a/src/ui/dialog/svg-fonts-dialog.h b/src/ui/dialog/svg-fonts-dialog.h index 9ce26f80d..d478f8d8d 100644 --- a/src/ui/dialog/svg-fonts-dialog.h +++ b/src/ui/dialog/svg-fonts-dialog.h @@ -72,6 +72,8 @@ public: private: Gtk::HBox* AttrEntry(gchar* lbl); + Gtk::HBox* AttrCombo(gchar* lbl); +// Gtk::HBox* AttrSpin(gchar* lbl); Gtk::VBox* global_settings_tab(); Gtk::VBox* kerning_tab(); Gtk::VBox* glyphs_tab(); -- 2.30.2