21 #include "scribusapi.h"
29 class QDragEnterEvent;
31 class QDragLeaveEvent;
34 class QInputMethodEvent;
56 submodeFirstSubmode = 1000,
93 virtual void enterEvent(QEvent *) {}
94 virtual void leaveEvent(QEvent *) {}
96 virtual void dragEnterEvent(QDragEnterEvent *e) {}
97 virtual void dragMoveEvent(QDragMoveEvent *e) {}
98 virtual void dragLeaveEvent(QDragLeaveEvent *e) {}
99 virtual void dropEvent(QDropEvent *e) {}
101 virtual void mouseDoubleClickEvent(QMouseEvent *m) {}
102 virtual void mouseReleaseEvent(QMouseEvent *m) {}
103 virtual void mouseMoveEvent(QMouseEvent *m) {}
104 virtual void mousePressEvent(QMouseEvent *m) {}
106 virtual void keyPressEvent(QKeyEvent *e) {}
107 virtual void keyReleaseEvent(QKeyEvent *e) {}
108 virtual void inputMethodEvent(QInputMethodEvent *e) {}
110 virtual bool handleKeyEvents() {
return false; }
125 void drawSelectionHandles(QPainter *psx, QRectF selectionRect,
bool background,
bool insideGroup =
false,
double sx = 1.0,
double sy = 1.0);
127 void drawSelection(QPainter* psx,
bool drawHandles);
129 void drawSnapLine(QPainter* psx);
131 void drawOutline(QPainter* p,
double scalex=1.0,
double scaley=1.0,
double deltax=0.0,
double deltay=0.0);
132 #ifdef GESTURE_FRAME_PREVIEW
136 QMap<PageItem*, PageItemPreview*> m_pixmapCache;
138 void clearPixmapCache();
139 #endif // GESTURE_FRAME_PREVIEW
141 QCursor modeCursor();
142 void setModeCursor();
158 void setResizeCursor(
int how,
double rot = 0.0);
159 bool commonMouseMove(QMouseEvent *m);
160 void commonDrawControls(QPainter* p,
bool drawHandles);
162 void commonDrawTextCursor(QPainter* p,
PageItem_TextFrame* textframe,
const QPointF& offset);
163 void commonkeyPressEvent_NormalNodeEdit(QKeyEvent *e);
164 void commonkeyReleaseEvent(QKeyEvent *e);
167 QMap<QString,QPen> m_pen;
168 QMap<QString,QBrush> m_brush;
virtual CanvasMode * delegate()
Definition: canvasmode.h:145
Definition: pageitem_textframe.h:45
virtual void deactivate(bool forGesture)
Definition: canvasmode.h:91
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
virtual void drawControls(QPainter *p)
Definition: canvasmode.h:121
Definition: canvasgesture_pan.h:26
the Document Class
Definition: scribusdoc.h:90
Definition: canvasmode.h:72
Definition: pageitem.h:92
UndoManager handles the undo stack.
Definition: undomanager.h:81
Definition: scribusview.h:87
virtual void activate(bool fromGesture)
Definition: canvasmode.h:86
Definition: pageitempreview.h:21