index a21d6202fab46a1ad9fdb3cf86eafd420cb4240d..5efd561f380fd9092ffb295e9bf5abd0ec02ebf6 100644 (file)
#include <glibmm/i18n.h>
#include <desktop.h>
+#include <verbs.h>
#include "button.h"
class StyleSwatch : public Gtk::HBox
{
public:
- StyleSwatch (SPCSSAttr *attr);
+ StyleSwatch (SPCSSAttr *attr, gchar const *main_tip);
~StyleSwatch();
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];