X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fwidget%2Fpreferences-widget.h;h=2df0b993727c5ae31adefc0fd04e3203822314a0;hb=17eb9e57e1550f744916bf486947162aa523bdda;hp=f754cde1b1c491c3181d8595a5fc3f4d6679ebeb;hpb=707e434808fb1cacc3c7b7ecb37683e9c0d8ddd8;p=inkscape.git diff --git a/src/ui/widget/preferences-widget.h b/src/ui/widget/preferences-widget.h index f754cde1b..2df0b9937 100644 --- a/src/ui/widget/preferences-widget.h +++ b/src/ui/widget/preferences-widget.h @@ -28,6 +28,7 @@ //#include #include "ui/widget/color-picker.h" +#include "ui/widget/unit-menu.h" namespace Inkscape { namespace UI { @@ -145,6 +146,15 @@ protected: virtual void on_changed (guint32 rgba); }; +class PrefUnit : public UnitMenu +{ +public: + void init(const std::string& prefs_path, const std::string& attr); +protected: + std::string _prefs_path; + std::string _attr; + void on_changed(); +}; class DialogPage : public Gtk::Table {