X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fwidget%2Fpreferences-widget.h;h=b48672d39b128be5c191f23e0cb0afa825fd8331;hb=ee3ad2b5b26e1e7be85a2de966ac7f208d88ff45;hp=361d737a854a6eded84f6b034ec27e6b8779267c;hpb=d8d953490f50942012c33dee60401e0629a4ca13;p=inkscape.git diff --git a/src/ui/widget/preferences-widget.h b/src/ui/widget/preferences-widget.h index 361d737a8..b48672d39 100644 --- a/src/ui/widget/preferences-widget.h +++ b/src/ui/widget/preferences-widget.h @@ -3,8 +3,9 @@ * * Authors: * Marco Scholten + * Bruno Dilly * - * Copyright (C) 2004, 2006 Authors + * Copyright (C) 2004, 2006, 2007 Authors * * Released under GNU GPL. Read the file 'COPYING' for more information. */ @@ -20,6 +21,7 @@ #include #include #include +#include #include #include //#include @@ -88,6 +90,32 @@ protected: void on_changed(); }; +class PrefEntry : public Gtk::Entry +{ +public: + void init(const std::string& prefs_path, const std::string& attr, + bool mask); +protected: + std::string _prefs_path; + std::string _attr; + void on_changed(); +}; + +class PrefEntryButtonHBox : public Gtk::HBox +{ +public: + void init(const std::string& prefs_path, const std::string& attr, + bool mask, gchar* default_string); +protected: + std::string _prefs_path; + std::string _attr; + gchar* _default_string; + Gtk::Button *relatedButton; + Gtk::Entry *relatedEntry; + void onRelatedEntryChangedCallback(); + void onRelatedButtonClickedCallback(); +}; + class DialogPage : public Gtk::Table { public: