diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2015-06-22 14:13:38 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2015-06-22 14:13:38 +0000 |
| commit | 00a70f10f4c5c273a783f87f61e9d98b9d79deca (patch) | |
| tree | fef6df9bffc2ef710e1b5f78680fee128eebd0d1 /src/ui/widget/font-variants.h | |
| parent | Enable rendering of 'font-feature-settings' and 'font-variant-east-asian'. (diff) | |
| download | inkscape-00a70f10f4c5c273a783f87f61e9d98b9d79deca.tar.gz inkscape-00a70f10f4c5c273a783f87f61e9d98b9d79deca.zip | |
Add simple GUI for 'font-feature-settings'.
(bzr r14208)
Diffstat (limited to '')
| -rw-r--r-- | src/ui/widget/font-variants.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ui/widget/font-variants.h b/src/ui/widget/font-variants.h index e6a9dd68b..ca41c050b 100644 --- a/src/ui/widget/font-variants.h +++ b/src/ui/widget/font-variants.h @@ -13,6 +13,7 @@ #include <gtkmm/expander.h> #include <gtkmm/checkbutton.h> #include <gtkmm/radiobutton.h> +#include <gtkmm/entry.h> class SPDesktop; class SPObject; @@ -81,6 +82,11 @@ protected: Gtk::CheckButton _numeric_ordinal; Gtk::CheckButton _numeric_slashed_zero; + Gtk::Expander _feature_frame; + Gtk::VBox _feature_vbox; + Gtk::Entry _feature_entry; + Gtk::Label _feature_label; + private: void ligatures_init(); void ligatures_callback(); @@ -94,6 +100,9 @@ private: void numeric_init(); void numeric_callback(); + void feature_init(); + void feature_callback(); + // To determine if we need to write out property (may not be necessary) unsigned _ligatures_all; unsigned _position_all; @@ -109,6 +118,7 @@ private: bool _position_changed; bool _caps_changed; bool _numeric_changed; + bool _feature_changed; sigc::signal<void> _changed_signal; @@ -117,7 +127,7 @@ public: /** * Update GUI based on query results. */ - void update( SPStyle const *query ); + void update( SPStyle const *query, bool different_features ); /** * Fill SPCSSAttr based on settings of buttons. |
