30#include <glibmm/i18n.h>
31#include <gtkmm/adjustment.h>
33#include <gtkmm/button.h>
34#include <gtkmm/label.h>
67 {0.01, _(
"just a curve")},
69 {1, _(
"one full revolution")},
80 {0.1, _(
"edge is much denser")},
81 {0.5, _(
"edge is denser")},
83 {1.5, _(
"center is denser")},
84 {5, _(
"center is much denser")},
89 {0, _(
"starts from center")},
90 {0.5, _(
"starts mid-way")},
91 {0.9, _(
"starts near edge")},
94 get_widget<Gtk::Button>(
builder,
"reset_btn")
103 auto const adj = btn.get_adjustment();
104 auto const path =
"/tools/shapes/spiral/" +
name;
163 auto const namespaced_name =
"sodipodi:" + value_name;
165 bool modified =
false;
167 if (is<SPSpiral>(
item)) {
185 _t0_item.get_adjustment()->set_value(0.0);
200 if (is<SPSpiral>(
item)) {
206 _mode_item.set_markup(n_selected == 0 ? _(
"<b>New:</b>") : _(
"<b>Change:</b>"));
208 if (n_selected == 1) {
232 _tick_callback = add_tick_callback([
this] (Glib::RefPtr<Gdk::FrameClock>
const &) {
static void done(SPDocument *document, Glib::ustring const &event_description, Glib::ustring const &undo_icon, unsigned int object_modified_tag=0)
static bool getUndoSensitive(SPDocument const *document)
SPItemRange items()
Returns a range of selected SPItems.
double getDouble(Glib::ustring const &pref_path, double def=0.0, Glib::ustring const &unit="")
Retrieve a floating point value.
static Preferences * get()
Access the singleton Preferences object.
void setDouble(Glib::ustring const &pref_path, double value)
Set a floating point value.
The set of selected SPObjects for a given document and layer model.
sigc::connection connectChanged(sigc::slot< void(Selection *)> slot)
Connects a slot to be notified of selection changes.
Interface for refcounted XML nodes.
virtual void synthesizeEvents(NodeObserver &observer)=0
Generate a sequence of events corresponding to the state of this node.
double getAttributeDouble(Util::const_char_ptr key, double default_value=0.0) const
virtual void addObserver(NodeObserver &observer)=0
Add an object that will be notified of the changes to this node.
virtual void removeObserver(NodeObserver &observer)=0
Remove an object from the list of observers.
bool setAttributeSvgDouble(Util::const_char_ptr key, double val)
For attributes where an exponent is allowed.
To do: update description of desktop.
SPDocument * getDocument() const
Inkscape::Selection * getSelection() const
Inkscape::XML::Node * updateRepr(unsigned int flags=SP_OBJECT_WRITE_EXT)
Updates the object's repr based on the object's state.
Inkscape::XML::Node * getRepr()
Returns the XML representation of tree.
Editable view implementation.
TODO: insert short description here.
Macro for icon names used in Inkscape.
static R & anchor(R &r)
Increments the reference count of a anchored object.
static R & release(R &r)
Decrements the reference count of a anchored object.
W & get_widget(const Glib::RefPtr< Gtk::Builder > &builder, const char *id)
W & get_derived_widget(const Glib::RefPtr< Gtk::Builder > &builder, const char *id, Args &&... args)
Glib::RefPtr< Gtk::Builder > create_builder(const char *filename)
Singleton class to access the preferences file in a convenient way.
Glib::RefPtr< Gtk::Builder > builder