![]() |
Scribus
Open source desktop publishing at your fingertips
|
Public Member Functions | |
Canvas (ScribusDoc *doc, ScribusView *parent) | |
void | setRenderMode (RenderMode m) |
void | clearBuffers () |
void | resetRenderMode () |
void | setRenderModeFillBuffer () |
void | setRenderModeUseBuffer (bool use) |
double | scale () const |
void | setScale (double scale) |
QPoint | canvasToLocal (FPoint p) const |
QPoint | canvasToGlobal (FPoint p) const |
QPoint | canvasToLocal (QPointF p) const |
QPoint | canvasToGlobal (QPointF p) const |
QRect | canvasToLocal (QRectF p) const |
QRect | canvasToGlobal (QRectF p) const |
FPoint | localToCanvas (QPoint p) const |
FPoint | globalToCanvas (QPoint p) const |
QRectF | globalToCanvas (QRect p) const |
bool | hitsCanvasPoint (QPoint globalPoint, FPoint canvasPoint) const |
bool | hitsCanvasPoint (QPoint globalPoint, QPointF canvasPoint) const |
bool | hitsCanvasPoint (FPoint globalPoint, QPointF canvasPoint) const |
QRect | exposedRect () const |
bool | cursorOverTextFrameControl (QPoint globalPos, PageItem *frame) |
bool | cursorOverFrameControl (QPoint globalPos, QRectF targetRect, PageItem *frame) |
FrameHandle | frameHitTest (QPointF canvasPoint, PageItem *frame) const |
FrameHandle | frameHitTest (QPointF point, QRectF frame) const |
PageItem * | itemUnderCursor (QPoint globalPos, PageItem *itemAbove=NULL, bool allowInGroup=false, bool allowMasterItems=false) const |
PageItem * | itemInGroup (PageItem *group, QRectF mouseArea) const |
PageItem * | itemUnderItem (PageItem *item, int &index) const |
const QPolygon & | redrawPolygon () const |
QPolygon & | newRedrawPolygon () |
void | setForcedRedraw (bool on) |
void | setPreviewMode (bool on) |
bool | isPreviewMode () const |
bool | usePreviewVisual () const |
int | previewVisual () const |
void | setPreviewVisual (int mode) |
void | DrawMasterItems (ScPainter *painter, ScPage *page, ScLayer &layer, QRect clip) |
void | DrawPageItems (ScPainter *painter, ScLayer &layer, QRect clip, bool notesFramesPass) |
virtual void | paintEvent (QPaintEvent *p) |
void | displayXYHUD (QPoint m) |
void | displayCorrectedXYHUD (QPoint m, double x, double y) |
void | displayCorrectedSingleHUD (QPoint m, double val, bool isX) |
void | displayXYHUD (QPoint m, double x, double y) |
void | displaySizeHUD (QPoint m, double x, double y, bool isLine=false) |
void | displayRotHUD (QPoint m, double rot) |
void | displayRealRotHUD (QPoint m, double rot) |
void | displayDoubleHUD (QPoint point, const QString &label, double value) |
void | setupEditHRuler (PageItem *item, bool forceAndReset=false) |
Static Public Attributes | |
static const uint | moveWithFullOutlinesThreshold = 21 |
static const uint | moveWithBoxesOnlyThreshold = 41 |
void Canvas::displayDoubleHUD | ( | QPoint | point, |
const QString & | label, | ||
double | value | ||
) |
Displays a tooltip of the format {label}: {N} {unit}
where N
is value converted to the current document unit and unit
the current document unit. The tooltip will be displayed nearby the global point point.
draws masterpage items of a specific layer
void Canvas::DrawPageItems | ( | ScPainter * | painter, |
ScLayer & | layer, | ||
QRect | clip, | ||
bool | notesFramesPass | ||
) |
draws page items contained in a specific Layer
Canvas::FrameHandle Canvas::frameHitTest | ( | QPointF | canvasPoint, |
PageItem * | item | ||
) | const |
Returns the framehandle or INSIDE if the position falls into the frame.
returns -1 if canvasPoint is outside the frame + grabradius. returns frameHandle if canvasPoint is near a framehandle otherwise 0
PageItem * Canvas::itemUnderCursor | ( | QPoint | globalPos, |
PageItem * | itemAbove = NULL , |
||
bool | allowInGroup = false , |
||
bool | allowMasterItems = false |
||
) | const |
Returns the item under the cursor or NULL if none found. Does not change the selection. If itemAbove is given, it will look for an item under itemAbove, allowing select under. The flag 'allowInGroup' controls if single items within a group or only whole groups are considered. The flag 'allowMasterItems' controls if items from a masterpage are considered. (this flag is ignored in masterpage mode, since all items are masterpage items then).
|
virtual |
Actually we have at least three super-layers: