spiral-toolbar.cpp revision 0de73848362e95b081e5fa85f910d6481094b2b9
1494N/A#ifdef HAVE_CONFIG_H
1494N/A#include "spiral-toolbar.h"
1494N/A#include "document-undo.h"
1494N/A#include "widgets/ege-adjustment-action.h"
1494N/A#include "widgets/ege-output-action.h"
1494N/A#include "widgets/ink-action.h"
1494N/A#include "preferences.h"
1494N/A#include "selection.h"
1494N/A#include "sp-spiral.h"
1494N/A#include "ui/icon-names.h"
1494N/A#include "ui/uxmanager.h"
1494N/A#include "widgets/spinbutton-events.h"
1494N/A#include "xml/node-event-vector.h"
1494N/Astatic void sp_spl_tb_value_changed(GtkAdjustment *adj, GObject *tbl, Glib::ustring const &value_name)
1494N/Astatic void sp_spiral_toolbox_selection_changed(Inkscape::Selection *selection, GObject *tbl)
1494N/A int n_selected = 0;
1494N/A if (n_selected == 0) {
1494N/Avoid sp_spiral_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GObject* holder)
1494N/A EgeOutputAction* act = ege_output_action_new( "SpiralStateAction", _("<b>New:</b>"), "", 0 );
1494N/A gchar const* labels[] = {_("circle"), _("edge is much denser"), _("edge is denser"), _("even"), _("center is denser"), _("center is much denser"), 0};
1494N/A _("Divergence"), _("Divergence:"), _("How much denser/sparser are outer revolutions; 1 = uniform"),
1494N/A gchar const* labels[] = {_("starts from center"), _("starts mid-way"), _("starts near edge")};
1494N/A _("Inner radius"), _("Inner radius:"), _("Radius of the innermost revolution (relative to the spiral size)"),
1494N/A _("Reset shape parameters to defaults (use Inkscape Preferences > Tools to change defaults)"),
1494N/A g_signal_connect_after( G_OBJECT(inky), "activate", G_CALLBACK(sp_spl_tb_defaults), holder );
1494N/A desktop->getSelection()->connectChanged(sigc::bind(sigc::ptr_fun(sp_spiral_toolbox_selection_changed), holder))