star-context.cpp revision 274f6d25a9facdc5bfbe8b4df42e6173e4328775
3263N/A#define __SP_STAR_CONTEXT_C__
3263N/A#ifdef HAVE_CONFIG_H
3263N/A#include "display/sp-canvas.h"
3263N/A#include "document.h"
3263N/A#include "sp-namedview.h"
3263N/A#include "selection.h"
#include "desktop-handles.h"
#include "desktop-affine.h"
#include "snap.h"
#include "desktop.h"
#include "desktop-style.h"
#include "message-context.h"
#include "pixmaps/cursor-star.xpm"
#include "sp-metrics.h"
#include "prefs-utils.h"
#include "xml/node-event-vector.h"
#include "object-edit.h"
#include "context-fns.h"
#include "star-context.h"
sp_star_context_get_type (void)
if (!type) {
sizeof (SPStarContextClass),
sizeof (SPStarContext),
return type;
if (item) {
if (shape_repr) {
if (item) {
if (shape_repr) {
sc->sel_changed_connection = selection->connectChanged(sigc::bind(sigc::ptr_fun(&sp_star_context_selection_changed), (gpointer)sc));
event_context->tolerance = prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100);
case GDK_BUTTON_PRESS:
case GDK_MOTION_NOTIFY:
case GDK_BUTTON_RELEASE:
case GDK_KEY_PRESS:
case GDK_Alt_R:
case GDK_Control_L:
case GDK_Control_R:
case GDK_Shift_L:
case GDK_Shift_R:
case GDK_Meta_R:
NULL,
NULL);
case GDK_Up:
case GDK_Down:
case GDK_KP_Up:
case GDK_KP_Down:
if (!MOD__CTRL_ONLY)
case GDK_x:
case GDK_X:
if (MOD__ALT_ONLY) {
case GDK_Escape:
case GDK_space:
if (dragging) {
dragging = false;
case GDK_KEY_RELEASE:
case GDK_Alt_L:
case GDK_Alt_R:
case GDK_Control_L:
case GDK_Control_R:
case GDK_Shift_L:
case GDK_Shift_R:
case GDK_Meta_R:
if (!ret) {
return ret;
sc->item->transform = SP_ITEM(desktop->currentRoot())->getRelativeTransform(desktop->currentLayer());