Code

search and reset buttons added to ocal related features. fixed signals in import...
[inkscape.git] / src / ui / widget / preferences-widget.h
index 4ed0a35aa7f3287422cd9b72c4d96ea3fa10cc38..b48672d39b128be5c191f23e0cb0afa825fd8331 100644 (file)
@@ -21,6 +21,7 @@
 #include <gtkmm/tooltips.h>
 #include <gtkmm/treeview.h>
 #include <gtkmm/radiobutton.h>
+#include <gtkmm/box.h>
 #include <gtkmm/frame.h>
 #include <sigc++/sigc++.h>
 //#include <glibmm/i18n.h>
@@ -100,6 +101,21 @@ protected:
     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: