Code

Implement cross-architecture print dialog using cairo and PNG backends.
[inkscape.git] / src / ui / widget / style-swatch.h
index a21d6202fab46a1ad9fdb3cf86eafd420cb4240d..5efd561f380fd9092ffb295e9bf5abd0ec02ebf6 100644 (file)
@@ -21,6 +21,7 @@
 #include <glibmm/i18n.h>
 
 #include <desktop.h>
+#include <verbs.h>
 
 #include "button.h"
 
@@ -41,7 +42,7 @@ namespace Widget {
 class StyleSwatch : public Gtk::HBox
 {
 public:
-    StyleSwatch (SPCSSAttr *attr);
+    StyleSwatch (SPCSSAttr *attr, gchar const *main_tip);
 
     ~StyleSwatch();
 
@@ -49,17 +50,27 @@ public:
     void setStyle(SPCSSAttr *attr);
     SPCSSAttr *getStyle();
 
-    void setWatched (Inkscape::XML::Node *watched);
+    void setWatched (Inkscape::XML::Node *watched, Inkscape::XML::Node *secondary);
     void setWatchedTool (const char *path, bool synthesize);
 
+    void setClickVerb(sp_verb_t verb_t);
+    void setDesktop(SPDesktop *desktop);
+    bool on_click(GdkEventButton *event);
+
     char *_tool_path;
 
 protected:
+    SPDesktop *_desktop;
+
+    sp_verb_t _verb_t;
+
     SPCSSAttr *_css;
 
     Inkscape::XML::Node *_watched;
     Inkscape::XML::Node *_watched_tool;
 
+    Gtk::EventBox _swatch;
+
     Gtk::Table _table;
 
     Gtk::Label _label[2];