Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

toolbox.cpp File Reference

Detailed Description

Controls bars for some of Inkscape's tools (for some tools, they are in their own files)

Definition in file toolbox.cpp.

#include <sigc++/sigc++.h>
#include <string.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <gtk/gtkmenu.h>
#include <gtk/gtksignal.h>
#include <gtk/gtkselection.h>
#include <gtk/gtktable.h>
#include <gtk/gtktooltips.h>
#include <gtk/gtkdnd.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkhandlebox.h>
#include "macros.h"
#include "helper/window.h"
#include "widgets/desktop-widget.h"
#include "widgets/icon.h"
#include "widgets/button.h"
#include "widgets/widget-sizes.h"
#include "widgets/spw-utilities.h"
#include "widgets/spinbutton-events.h"
#include "prefs-utils.h"
#include "inkscape-stock.h"
#include "verbs.h"
#include "file.h"
#include "selection-chemistry.h"
#include "path-chemistry.h"
#include "inkscape-private.h"
#include "document.h"
#include "sp-namedview.h"
#include "inkscape.h"
#include "desktop.h"
#include "desktop-handles.h"
#include "interface.h"
#include "nodepath.h"
#include "xml/repr.h"
#include "xml/node-event-vector.h"
#include "helper/gnome-utils.h"
#include <glibmm/i18n.h>
#include "helper/unit-menu.h"
#include "helper/units.h"
#include "desktop-style.h"
#include "dialogs/object-properties.h"
#include "dialogs/transformation.h"
#include "dialogs/text-edit.h"
#include "dialogs/export.h"
#include "dialogs/dialog-events.h"
#include "select-toolbar.h"
#include "gradient-toolbar.h"
#include "dropper-context.h"
#include "star-context.h"
#include "spiral-context.h"
#include "gradient-context.h"
#include "connector-context.h"
#include "sp-rect.h"
#include "sp-star.h"
#include "sp-spiral.h"
#include "sp-pattern.h"
#include "sp-ellipse.h"
#include "selection.h"
#include "document-private.h"
#include "mod360.h"
#include "toolbox.h"

Go to the source code of this file.


#define __SP_MAINTOOLBOX_C__
#define MODE_LABEL_WIDTH   70


typedef void(* SetupFunction )(GtkWidget *toolbox, SPDesktop *desktop)
typedef void(* UpdateFunction )(SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox)


static void arc_tb_event_attr_changed (Inkscape::XML::Node *repr, gchar const *name, gchar const *old_value, gchar const *new_value, bool is_interactive, gpointer data)
static void aux_toolbox_attached (GtkHandleBox *toolbox, GtkWidget *child)
static void aux_toolbox_detached (GtkHandleBox *toolbox, GtkWidget *child)
void aux_toolbox_space (GtkWidget *tb, gint space)
static void delete_connection (GObject *obj, sigc::connection *connection)
static void rect_tb_event_attr_changed (Inkscape::XML::Node *repr, gchar const *name, gchar const *old_value, gchar const *new_value, bool is_interactive, gpointer data)
static void setup_aux_toolbox (GtkWidget *toolbox, SPDesktop *desktop)
static void setup_commands_toolbox (GtkWidget *toolbox, SPDesktop *desktop)
static void setup_tool_toolbox (GtkWidget *toolbox, SPDesktop *desktop)
void show_aux_toolbox (GtkWidget *toolbox_toplevel)
static GtkWidget * sp_arc_toolbox_new (SPDesktop *desktop)
static void sp_arc_toolbox_selection_changed (Inkscape::Selection *selection, GtkObject *tbl)
static void sp_arctb_defaults (GtkWidget *, GtkObject *obj)
static void sp_arctb_end_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_arctb_open_state_changed (GtkWidget *widget, GtkObject *tbl)
static void sp_arctb_sensitivize (GtkWidget *tbl, double v1, double v2)
static void sp_arctb_start_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_arctb_startend_value_changed (GtkAdjustment *adj, GtkWidget *tbl, gchar const *value_name, gchar const *other_name)
GtkWidget * sp_aux_toolbox_new ()
void sp_aux_toolbox_set_desktop (GtkWidget *toolbox, SPDesktop *desktop)
static GtkWidget * sp_calligraphy_toolbox_new (SPDesktop *desktop)
GtkWidget * sp_commands_toolbox_new ()
void sp_commands_toolbox_set_desktop (GtkWidget *toolbox, SPDesktop *desktop)
static void sp_connector_path_set_avoid (void)
static void sp_connector_path_set_ignore (void)
static GtkWidget * sp_connector_toolbox_new (SPDesktop *desktop)
static void sp_ddc_angle_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_defaults (GtkWidget *, GtkWidget *tbl)
static void sp_ddc_drag_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_flatness_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_mass_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_pressure_state_changed (GtkWidget *button, gpointer data)
static void sp_ddc_tilt_state_changed (GtkWidget *button, GtkWidget *calligraphy_angle)
static void sp_ddc_velthin_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_width_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static GtkWidget * sp_dropper_toolbox_new (SPDesktop *desktop)
static GtkWidget * sp_empty_toolbox_new (SPDesktop *desktop)
void sp_node_path_edit_add (void)
void sp_node_path_edit_break (void)
void sp_node_path_edit_cusp (void)
void sp_node_path_edit_delete (void)
void sp_node_path_edit_delete_segment (void)
void sp_node_path_edit_join (void)
void sp_node_path_edit_join_segment (void)
void sp_node_path_edit_smooth (void)
void sp_node_path_edit_symmetrical (void)
void sp_node_path_edit_tocurve (void)
void sp_node_path_edit_toline (void)
static GtkWidget * sp_node_toolbox_new (SPDesktop *desktop)
static GtkWidget * sp_rect_toolbox_new (SPDesktop *desktop)
static void sp_rect_toolbox_selection_changed (Inkscape::Selection *selection, GtkObject *tbl)
static void sp_rtb_defaults (GtkWidget *widget, GtkObject *obj)
static void sp_rtb_height_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_rtb_rx_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_rtb_ry_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_rtb_sensitivize (GtkWidget *tbl)
static void sp_rtb_value_changed (GtkAdjustment *adj, GtkWidget *tbl, gchar const *value_name, void(*setter)(SPRect *, gdouble))
static void sp_rtb_width_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static GtkWidget * sp_spiral_toolbox_new (SPDesktop *desktop)
static void sp_spiral_toolbox_selection_changed (Inkscape::Selection *selection, GtkObject *tbl)
static void sp_spl_tb_defaults (GtkWidget *widget, GtkObject *obj)
static void sp_spl_tb_expansion_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_spl_tb_revolution_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_spl_tb_t0_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_spl_tb_value_changed (GtkAdjustment *adj, GtkWidget *tbl, gchar const *value_name)
static GtkWidget * sp_star_toolbox_new (SPDesktop *desktop)
static void sp_star_toolbox_selection_changed (Inkscape::Selection *selection, GtkObject *tbl)
static void sp_stb_defaults (GtkWidget *widget, GtkWidget *tbl)
static void sp_stb_magnitude_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_stb_proportion_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_stb_randomized_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_stb_rounded_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_stb_sides_flat_state_changed (GtkWidget *widget, GtkObject *tbl)
GtkWidget * sp_tb_spinbutton (gchar *label, gchar const *tooltip, gchar const *path, gchar const *data, gdouble def, GtkWidget *us, GtkWidget *tbl, gboolean altx, gchar const *altx_mark, gdouble lower, gdouble upper, gdouble step, gdouble page, void(*callback)(GtkAdjustment *, GtkWidget *), gdouble climb=0.1, guint digits=3)
static GtkWidget * sp_text_toolbox_new (SPDesktop *desktop)
GtkWidget * sp_tool_toolbox_new ()
 Main toolbox.
void sp_tool_toolbox_set_desktop (GtkWidget *toolbox, SPDesktop *desktop)
void sp_toolbox_add_label (GtkWidget *tbl, gchar const *title, bool wide)
static GtkWidget * sp_toolbox_button_new (GtkWidget *t, GtkIconSize size, gchar const *pxname, GtkSignalFunc handler, GtkTooltips *tt, gchar const *tip)
GtkWidget * sp_toolbox_button_new_from_verb (GtkWidget *t, GtkIconSize size, SPButtonType type, Inkscape::Verb *verb, Inkscape::UI::View::View *view, GtkTooltips *tt)
GtkWidget * sp_toolbox_button_new_from_verb_with_doubleclick (GtkWidget *t, GtkIconSize size, SPButtonType type, Inkscape::Verb *verb, Inkscape::Verb *doubleclick_verb, Inkscape::UI::View::View *view, GtkTooltips *tt)
GtkWidget * sp_toolbox_button_normal_new_from_verb (GtkWidget *t, GtkIconSize size, Inkscape::Verb *verb, Inkscape::UI::View::View *view, GtkTooltips *tt)
static GtkWidget * sp_zoom_toolbox_new (SPDesktop *desktop)
static void spiral_tb_event_attr_changed (Inkscape::XML::Node *repr, gchar const *name, gchar const *old_value, gchar const *new_value, bool is_interactive, gpointer data)
static void star_tb_event_attr_changed (Inkscape::XML::Node *repr, gchar const *name, gchar const *old_value, gchar const *new_value, bool is_interactive, gpointer data)
static void toggle_dropper_color_pick (GtkWidget *button, gpointer data)
static void toolbox_set_desktop (GtkWidget *toolbox, SPDesktop *desktop, SetupFunction setup_func, UpdateFunction update_func, sigc::connection *)
static void update_aux_toolbox (SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox)
static void update_commands_toolbox (SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox)
static void update_tool_toolbox (SPDesktop *desktop, SPEventContext *eventcontext, GtkWidget *toolbox)


struct {
   GtkWidget *(*   create_func )(SPDesktop *desktop)
   gchar const *   data_name
   gchar const *   type_name
aux_toolboxes []
struct {
   gchar const *   data_name
   sp_verb_t   doubleclick_verb
   gchar const *   type_name
   sp_verb_t   verb
tools []

Generated by  Doxygen 1.6.0   Back to index