index 64bd2a50c6f4c0d22cdad2ea647995fdd672b72b..cd67abfc563e708adc3faf17efb2cfd2613fb1d9 100644 (file)
#include <desktop.h>
#include "button.h"
+#include "rotateable.h"
class SPUnit;
SS_STROKE
};
+class SelectedStyle;
+
+class RotateableSwatch: public Rotateable
+{
+public:
+ RotateableSwatch(guint mode);
+ ~RotateableSwatch();
+
+ guint fillstroke;
+
+ SelectedStyle *parent;
+
+ guint32 startcolor;
+ bool startcolor_set;
+
+ gchar *undokey;
+
+ GdkCursor *cr;
+ bool cr_set;
+
+ double color_adjust (float *hsl, double by, guint32 cc, guint state);
+ virtual void do_motion (double by, guint state);
+ virtual void do_release (double by, guint state);
+};
+
class SelectedStyle : public Gtk::HBox
{
public:
~SelectedStyle();
void setDesktop(SPDesktop *desktop);
+ SPDesktop *getDesktop() {return _desktop;}
void update();
+ guint32 _lastselected[2];
+ guint32 _thisselected[2];
+
+ guint _mode[2];
+
protected:
SPDesktop *_desktop;
Gtk::Label _stroke_label;
Gtk::Label _opacity_label;
- Gtk::EventBox _fill_place;
- Gtk::EventBox _stroke_place;
+ RotateableSwatch _fill_place;
+ RotateableSwatch _stroke_place;
Gtk::EventBox _fill_flag_place;
Gtk::EventBox _stroke_flag_place;
Gtk::EventBox _stroke_width_place;
Gtk::Label _stroke_width;
- guint32 _lastselected[2];
- guint32 _thisselected[2];
Glib::ustring _paintserver_id[2];
- guint _mode[2];
-
sigc::connection *selection_changed_connection;
sigc::connection *selection_modified_connection;
sigc::connection *subselection_changed_connection;