Logo Search packages:      
Sourcecode: inkscape version File versions

desktop-events.cpp File Reference


Detailed Description

Event handlers for SPDesktop.

Definition in file desktop-events.cpp.

#include <map>
#include <string>
#include <2geom/line.h>
#include <glibmm/i18n.h>
#include "desktop.h"
#include "desktop-handles.h"
#include "dialogs/dialog-events.h"
#include "display/canvas-axonomgrid.h"
#include "display/canvas-grid.h"
#include "display/guideline.h"
#include "display/snap-indicator.h"
#include "document.h"
#include "event-context.h"
#include "helper/action.h"
#include "helper/unit-menu.h"
#include "helper/units.h"
#include "message-context.h"
#include "preferences.h"
#include "snap.h"
#include "sp-guide.h"
#include "sp-metrics.h"
#include "sp-namedview.h"
#include "tools-switch.h"
#include "ui/dialog/guides.h"
#include "widgets/desktop-widget.h"
#include "xml/repr.h"

Go to the source code of this file.

Defines

#define tol   40.0

Enumerations

enum  SPGuideDragType {
  SP_DRAG_TRANSLATE, SP_DRAG_TRANSLATE_CONSTRAINED, SP_DRAG_ROTATE, SP_DRAG_MOVE_ORIGIN,
  SP_DRAG_NONE, SP_DRAG_TRANSLATE, SP_DRAG_TRANSLATE_CONSTRAINED, SP_DRAG_ROTATE,
  SP_DRAG_MOVE_ORIGIN, SP_DRAG_NONE
}

Functions

static void init_extended ()
static void snoop_extended (GdkEvent *event, SPDesktop *desktop)
int sp_desktop_root_handler (SPCanvasItem *, GdkEvent *event, SPDesktop *desktop)
gint sp_dt_guide_event (SPCanvasItem *item, GdkEvent *event, gpointer data)
int sp_dt_hruler_event (GtkWidget *widget, GdkEvent *event, SPDesktopWidget *dtw)
static gint sp_dt_ruler_event (GtkWidget *widget, GdkEvent *event, SPDesktopWidget *dtw, bool horiz)
int sp_dt_vruler_event (GtkWidget *widget, GdkEvent *event, SPDesktopWidget *dtw)

Variables

static Geom::Point drag_origin
static SPGuideDragType drag_type = SP_DRAG_NONE
static std::string lastName
static GdkInputSource lastType = GDK_SOURCE_MOUSE
static std::map< std::string, int > toolToUse


Generated by  Doxygen 1.6.0   Back to index