Logo Search packages:      
Sourcecode: inkscape version File versions

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 <gtkmm.h>
#include <gtk/gtk.h>
#include <iostream>
#include <sstream>
#include "widgets/button.h"
#include "widgets/widget-sizes.h"
#include "widgets/spw-utilities.h"
#include "widgets/spinbutton-events.h"
#include "dialogs/text-edit.h"
#include "ui/widget/style-swatch.h"
#include "prefs-utils.h"
#include "verbs.h"
#include "sp-namedview.h"
#include "desktop.h"
#include "desktop-handles.h"
#include "nodepath.h"
#include "xml/repr.h"
#include "xml/node-event-vector.h"
#include <glibmm/i18n.h>
#include "helper/unit-menu.h"
#include "helper/units.h"
#include "inkscape.h"
#include "conn-avoid-ref.h"
#include "select-toolbar.h"
#include "gradient-toolbar.h"
#include "connector-context.h"
#include "sp-rect.h"
#include "sp-star.h"
#include "sp-spiral.h"
#include "sp-ellipse.h"
#include "sp-text.h"
#include "sp-flowtext.h"
#include "style.h"
#include "selection.h"
#include "document-private.h"
#include "desktop-style.h"
#include "../libnrtype/font-lister.h"
#include "../connection-pool.h"
#include "../inkscape-stock.h"
#include "icon.h"
#include "graphlayout/graphlayout.h"
#include "mod360.h"
#include "toolbox.h"
#include "ink-action.h"
#include "ege-adjustment-action.h"

Go to the source code of this file.

Defines

#define __SP_MAINTOOLBOX_C__
#define MODE_LABEL_WIDTH   70

Typedefs

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

Functions

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)
void cell_data_func (GtkTreeViewColumn *column, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
static void connector_length_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void connector_spacing_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void connector_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 EgeAdjustmentAction * create_adjustment_action (gchar const *name, gchar const *label, gchar const *tooltip, gchar const *path, gchar const *data, gdouble def, GtkWidget *focusTarget, GtkWidget *us, GtkWidget *dataKludge, 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, double factor=1.0)
static void delete_completion (GObject *obj, GtkWidget *entry)
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_graph_layout (void)
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_angle_value_changed2 (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_cap_rounding_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_cap_rounding_value_changed2 (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_defaults (GtkWidget *, GtkWidget *tbl)
static void sp_ddc_defaults2 (GtkWidget *, GtkWidget *dataKludge)
static void sp_ddc_flatness_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_flatness_value_changed2 (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_mass_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_mass_value_changed2 (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_pressure_state_changed (GtkWidget *button, gpointer data)
static void sp_ddc_pressure_state_changed2 (GtkToggleAction *act, gpointer data)
static void sp_ddc_tilt_state_changed (GtkWidget *button, GtkWidget *calligraphy_angle)
static void sp_ddc_tilt_state_changed2 (GtkToggleAction *act, GtkAction *calligraphy_angle)
static void sp_ddc_tremor_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_tremor_value_changed2 (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_velthin_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_velthin_value_changed2 (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_width_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_width_value_changed2 (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_wiggle_value_changed (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_ddc_wiggle_value_changed2 (GtkAdjustment *adj, GtkWidget *tbl)
static void sp_directed_graph_layout_toggled (GtkWidget *widget, GtkObject *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 void sp_nooverlaps_graph_layout_toggled (GtkWidget *widget, GtkObject *tbl)
static GtkWidget * sp_pen_toolbox_new (SPDesktop *desktop)
static GtkWidget * sp_pencil_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, double factor=1.0)
void sp_text_toolbox_anchoring_toggled (GtkRadioButton *button, gpointer data)
gboolean sp_text_toolbox_entry_focus_in (GtkWidget *entry, GdkEventFocus *event, GObject *tbl)
void sp_text_toolbox_family_changed (GtkTreeSelection *selection, GObject *tbl)
void sp_text_toolbox_family_entry_activate (GtkEntry *entry, GObject *tbl)
gboolean sp_text_toolbox_family_keypress (GtkWidget *w, GdkEventKey *event, GObject *tbl)
gboolean sp_text_toolbox_family_list_keypress (GtkWidget *w, GdkEventKey *event, GObject *tbl)
GtkWidget * sp_text_toolbox_new (SPDesktop *desktop)
GtkWidget * sp_text_toolbox_new (SPDesktop *desktop)
void sp_text_toolbox_orientation_toggled (GtkRadioButton *button, gpointer data)
gboolean sp_text_toolbox_popdown_focus_out (GtkWidget *popdown, GdkEventFocus *event, GObject *tbl)
void sp_text_toolbox_selection_changed (Inkscape::Selection *selection, GObject *tbl)
void sp_text_toolbox_selection_modified (Inkscape::Selection *selection, guint flags, GObject *tbl)
void sp_text_toolbox_size_changed (GtkComboBox *cbox, GObject *tbl)
gboolean sp_text_toolbox_size_keypress (GtkWidget *w, GdkEventKey *event, gpointer data)
void sp_text_toolbox_style_toggled (GtkToggleButton *button, gpointer data)
void sp_text_toolbox_subselection_changed (gpointer dragger, GObject *tbl)
void sp_text_toolbox_text_popdown_clicked (GtkButton *button, GObject *tbl)
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, Inkscape::IconSize size, gchar const *pxname, GtkSignalFunc handler, GtkTooltips *tt, gchar const *tip)
GtkWidget * sp_toolbox_button_new_from_verb (GtkWidget *t, Inkscape::IconSize size, SPButtonType type, Inkscape::Verb *verb, Inkscape::UI::View::View *view, GtkTooltips *tt)
GtkWidget * sp_toolbox_button_new_from_verb_with_doubleclick (GtkWidget *t, Inkscape::IconSize 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, Inkscape::IconSize 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_pick_alpha (GtkWidget *button, gpointer tbl)
static void toggle_dropper_set_alpha (GtkWidget *button, gpointer data)
static void toggle_show_handles (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)

Variables

static
Inkscape::XML::NodeEventVector 
arc_tb_repr_events
struct {
   GtkWidget *(*   create_func )(SPDesktop *desktop)
   gchar const *   data_name
   gchar const *   type_name
aux_toolboxes []
static
Inkscape::XML::NodeEventVector 
connector_tb_repr_events
static
Inkscape::XML::NodeEventVector 
rect_tb_repr_events
static
Inkscape::XML::NodeEventVector 
spiral_tb_repr_events
static
Inkscape::XML::NodeEventVector 
star_tb_repr_events
struct {
   gchar const *   data_name
   sp_verb_t   doubleclick_verb
   gchar const *   type_name
   sp_verb_t   verb
tools []
bool visible = false


Generated by  Doxygen 1.6.0   Back to index