spiral-context.cpp revision ac7344fa2f2335d9c3bcdb2a63db828d55073a73
951N/A#include "display/sp-canvas.h"
951N/A#include "sp-spiral.h"
951N/A#include "document.h"
951N/A#include "document-undo.h"
951N/A#include "sp-namedview.h"
951N/A#include "selection.h"
951N/A#include "desktop-handles.h"
951N/A#include "desktop-style.h"
951N/A#include "message-context.h"
951N/A#include "pixmaps/cursor-spiral.xpm"
951N/A#include "spiral-context.h"
951N/A#include "sp-metrics.h"
951N/A#include "xml/node-event-vector.h"
951N/A#include "preferences.h"
951N/A#include "context-fns.h"
951N/A#include "shape-editor.h"
951N/A#include "display/sp-canvas-item.h"
951N/A sizeof(SPSpiralContextClass),
951N/A sizeof(SPSpiralContext),
951N/A type = g_type_register_static(SP_TYPE_EVENT_CONTEXT, "SPSpiralContext", &info, (GTypeFlags)0);
951N/A sc->sel_changed_connection = selection->connectChanged(sigc::bind(sigc::ptr_fun(&sp_spiral_context_selection_changed), (gpointer)sc));
951N/A case GDK_BUTTON_PRESS:
1028N/A case GDK_MOTION_NOTIFY:
1028N/A if (dragging && (event->motion.state & GDK_BUTTON1_MASK) && !event_context->space_panning) {
951N/A case GDK_BUTTON_RELEASE:
1028N/A case GDK_KEY_PRESS:
1028N/A case GDK_KEY_Alt_R:
1028N/A case GDK_KEY_Control_L:
1028N/A case GDK_KEY_Control_R:
1028N/A case GDK_KEY_Shift_L:
1028N/A case GDK_KEY_Shift_R:
1028N/A case GDK_KEY_Meta_R:
1028N/A case GDK_KEY_Up:
1274N/A case GDK_KEY_Down:
1274N/A case GDK_KEY_KP_Up:
1028N/A case GDK_KEY_KP_Down:
1028N/A if (!MOD__CTRL_ONLY)
951N/A if (MOD__ALT_ONLY) {
951N/A case GDK_KEY_Escape:
951N/A case GDK_KEY_space:
951N/A case GDK_KEY_Delete:
951N/A case GDK_KEY_KP_Delete:
951N/A case GDK_KEY_BackSpace:
951N/A case GDK_KEY_RELEASE:
951N/A case GDK_KEY_Alt_L:
951N/A case GDK_KEY_Alt_R:
951N/A case GDK_KEY_Control_L:
951N/A case GDK_KEY_Control_R:
951N/A case GDK_KEY_Shift_L:
951N/A case GDK_KEY_Shift_R:
951N/A case GDK_KEY_Meta_R:
951N/A sp_spiral_cancel(sc); // Don't allow the creating of zero sized spiral, for example when the start and and point snap to the snap grid point