Scribus
Open source desktop publishing at your fingertips
ScribusView Class Reference

#include <scribusview.h>

Inheritance diagram for ScribusView:
Collaboration diagram for ScribusView:

Public Slots

void languageChange ()
 
void toggleCMS (bool cmsOn)
 
void switchPreviewVisual (int vis)
 
void togglePreviewEdit (bool edit)
 
void togglePreview (bool inPreview)
 
void unitChange ()
 
void setRulersShown (bool isShown)
 
void slotZoom100 ()
 
void slotZoomIn (int mx=0, int my=0)
 
void slotZoomOut (int mx=0, int my=0)
 
void DrawNew ()
 
void GotoPa (int Seite)
 
void GotoLa (int l)
 
void GotoPage (int Seite)
 
void ChgUnit (int art)
 
void SetCPo (double x, double y)
 
void SetCCPo (double x, double y)
 
void editExtendedImageProperties ()
 
void RefreshGradient (PageItem *currItem, double dx=8, double dy=8)
 
void ToPicFrame ()
 
void ToPolyFrame ()
 
void ToTextFrame ()
 
void ToBezierFrame ()
 
void ToPathText ()
 
void FromPathText ()
 
void Bezier2Poly ()
 
void PasteToPage ()
 
void TextToPath ()
 

Signals

void changeUN (int)
 
void changeLA (int)
 
void HaveSel ()
 
void DocChanged ()
 
void ItemGeom ()
 
void PolyOpen ()
 
void PStatus (int, uint)
 
void SetAngle (double)
 
void SetSizeValue (double)
 
void SetLineArt (Qt::PenStyle, Qt::PenCapStyle, Qt::PenJoinStyle)
 
void SetLocalValues (double, double, double, double)
 
void ItemTextAttr (double)
 
void ItemTextCols (int, double)
 
void SetDistValues (double, double, double, double)
 
void ItemCharStyle (const CharStyle &)
 
void ItemTextAlign (int)
 
void ItemTextEffects (int)
 
void HasTextSel ()
 
void HasNoTextSel ()
 
void MVals (double, double, double, double, double, double, int)
 
void PaintingDone ()
 
void LoadPic ()
 
void StatusPic ()
 
void AppendText ()
 
void DoGroup ()
 
void CutItem ()
 
void CopyItem ()
 
void Amode (int)
 
void AddBM (PageItem *)
 
void DelBM (PageItem *)
 
void ChBMText (PageItem *)
 
void ToScrap (QString)
 
void LoadElem (QString, double, double, bool, bool, ScribusDoc *, ScribusView *)
 
void LevelChanged (uint)
 
void HavePoint (bool, bool)
 
void ClipPo (double, double)
 
void PolyStatus (int, uint)
 
void AnnotProps ()
 
void EndNodeEdit ()
 
void Hrule (int)
 
void Vrule (int)
 
void MousePos (double, double)
 
void callGimp ()
 
void signalGuideInformation (int, qreal)
 

Public Member Functions

 ScribusView (QWidget *win=0, ScribusMainWindow *mw=0, ScribusDoc *doc=0)
 
void requestMode (int appMode)
 
void setCursorBasedOnAppMode (int appMode)
 
void startGesture (CanvasGesture *)
 
void stopGesture ()
 
CanvasModecanvasMode ()
 
void updatesOn (bool on)
 
ScPageaddPage (int nr, bool mov=true)
 
void reformPages (bool moveObjects=true)
 
void reformPagesView ()
 
void showMasterPage (int nr)
 
void hideMasterPage ()
 
void showSymbolPage (QString symbolName)
 
void hideSymbolPage ()
 
void showInlinePage (int id)
 
void hideInlinePage ()
 
QImage PageToPixmap (int Nr, int maxGr, bool drawFrame=true, bool drawBackground=true)
 
QImage MPageToPixmap (QString name, int maxGr, bool drawFrame=true)
 
void RecalcPicturesRes ()
 
void setNewRulerOrigin (QMouseEvent *m)
 
void getDragRectScreen (double *x, double *y, double *w, double *h)
 
void getGroupRectScreen (double *x, double *y, double *w, double *h)
 
bool PointOnLine (QPoint Start, QPoint Ende, QRect MArea)
 
void TransformPoly (int mode, int rot=1, double scaling=1.0)
 
bool slotSetCurs (int x, int y)
 
void HandleCurs (PageItem *currItem, QRect mpo)
 
void Deselect (bool prop=true)
 
void SelectItemNr (uint nr, bool draw=true, bool single=false)
 
void SelectItem (PageItem *pi, bool draw=true, bool single=false)
 
void rememberOldZoomLocation (int mx=0, int my=0)
 
bool groupTransactionStarted ()
 
void startGroupTransaction (const QString &actionName="", const QString &description="", QPixmap *actionPixmap=0, Selection *customSelection=0)
 
void endGroupTransaction ()
 
void cancelGroupTransaction ()
 
void setScale (const double newScale)
 
double scale () const
 
virtual void changed (QRectF re, bool)
 
void updateCanvas (QRectF box=QRectF())
 
void updateCanvas (double x, double y, double width, double height)
 
void setCanvasOrigin (double x, double y)
 
void setCanvasCenter (double x, double y)
 
void scrollCanvasBy (double deltaX, double deltaY)
 
FPoint canvasOrigin () const
 
QRectF visibleCanvas () const
 
void setRedrawMarkerShown (bool shown)
 
int contentsX ()
 
int contentsY ()
 
int contentsWidth ()
 
int contentsHeight ()
 
void setContentsPos (int x, int y)
 
int visibleWidth ()
 
int visibleHeight ()
 
void stopAllDrags ()
 
void scrollBy (int x, int y)
 
void zoom (double scale=0.0)
 
void zoom (int canvasX, int canvasY, double scale, bool preservePoint)
 
virtual void wheelEvent (QWheelEvent *ev)
 
virtual void changeEvent (QEvent *e)
 
void keyPressEvent (QKeyEvent *k)
 
void keyReleaseEvent (QKeyEvent *k)
 
void inputMethodEvent (QInputMethodEvent *event)
 
QVariant inputMethodQuery (Qt::InputMethodQuery query) const
 
void registerMousePress (QPoint p)
 
bool mousePressed ()
 
void resetMousePressed ()
 
QPoint mousePressLocation ()
 
bool moveTimerElapsed ()
 
void resetMoveTimer ()
 
void startDragTimer ()
 
void stopDragTimer ()
 
void resetDragTimer ()
 
bool dragTimerElapsed ()
 
bool handleObjectImport (QMimeData *mimeData, TransactionSettings *trSettings=NULL)
 

Public Attributes

RulerMoverrulerMover
 
HrulerhorizRuler
 
VrulervertRuler
 
ClockWidgetclockLabel
 
QPushButton * endEditButton
 
ScribusDoc *const Doc
 
Canvas *const m_canvas
 
CanvasModem_canvasMode
 
QMap< int, CanvasMode * > modeInstances
 
ApplicationPrefs *const Prefs
 
UndoManager *const undoManager
 
ScribusMainWindowm_ScMW
 
double OldScale
 
double dragX
 
double dragY
 
double dragW
 
double dragH
 
double oldW
 
int RotMode
 
int DrHY
 
int DrVX
 
bool HaveSelRect
 
bool DraggedGroup
 
bool DraggedGroupFirst
 
bool MidButt
 
bool updateOn
 
bool FirstPoly
 
bool Magnify
 
bool storedFramesShown
 
bool storedShowControls
 
int editStrokeGradient
 
int redrawMode
 
int redrawCount
 
bool m_AnnotChanged
 
bool m_EditModeWasOn
 
bool m_ChangedState
 
PageItemredrawItem
 
SelectionRubberBandredrawMarker
 
FPoint RCenter
 
FPoint m_mousePointDoc
 

Protected Member Functions

virtual void enterEvent (QEvent *)
 
virtual void leaveEvent (QEvent *)
 
virtual void resizeEvent (QResizeEvent *event)
 
bool eventFilter (QObject *obj, QEvent *event)
 
virtual void contentsDragEnterEvent (QDragEnterEvent *e)
 
virtual void contentsDragMoveEvent (QDragMoveEvent *e)
 
virtual void contentsDragLeaveEvent (QDragLeaveEvent *e)
 
virtual void contentsDropEvent (QDropEvent *e)
 
virtual void setHBarGeometry (QScrollBar &bar, int x, int y, int w, int h)
 
virtual void setVBarGeometry (QScrollBar &bar, int x, int y, int w, int h)
 
void scrollContentsBy (int dx, int dy)
 

Protected Attributes

int m_vhRulerHW
 

Friends

class CanvasMode_CopyProperties
 
class CanvasMode_Edit
 
class CanvasMode_EditGradient
 
class CanvasMode_EditMeshGradient
 
class CanvasMode_EditMeshPatch
 
class CanvasMode_EditTable
 
class CanvasMode_EditWeldPoint
 
class CanvasMode_EditPolygon
 
class CanvasMode_EditArc
 
class CanvasMode_EditSpiral
 
class CanvasMode_FrameLinks
 
class CanvasMode_ImageImport
 
class CanvasMode_Magnifier
 
class CanvasMode_NodeEdit
 
class CanvasMode_Normal
 
class CanvasMode_ObjImport
 
class CanvasMode_Rotate
 

Detailed Description

This class provides an incomplete base for your application view.

Member Function Documentation

void ScribusView::cancelGroupTransaction ( )

Always cancels the toplevel transaction and all enclosed ones

FPoint ScribusView::canvasOrigin ( ) const

returns the canvas's origin in canvas coordinates. Doc->minCanvasCoordinate <= result <= Doc->maxCanvasCoordinate

void ScribusView::DrawNew ( )
slot

Redraws everything

void ScribusView::requestMode ( int  appMode)

switches between appmodes:

  • for submodes, activate the appropiate dialog or palette
  • set a new CanvasMode if necessary
  • call ScribusMainWindow::setAppMode(), which de/activates actions
void ScribusView::scrollCanvasBy ( double  deltaX,
double  deltaY 
)

Scrolls canvas relatively

void ScribusView::setCanvasCenter ( double  x,
double  y 
)

Scrolls the canvas so (x,y) is in the center of the viewport

void ScribusView::setCanvasOrigin ( double  x,
double  y 
)

Scrolls the canvas so (x,y) becomes the origin

void ScribusView::setHBarGeometry ( QScrollBar &  bar,
int  x,
int  y,
int  w,
int  h 
)
protectedvirtual

Waagrechter Scrollbalken

void ScribusView::setNewRulerOrigin ( QMouseEvent *  m)

Called when the ruler origin is dragged

Parameters
mmouse event
void ScribusView::setVBarGeometry ( QScrollBar &  bar,
int  x,
int  y,
int  w,
int  h 
)
protectedvirtual

Senkrechter Scrollbalken

void ScribusView::slotZoom100 ( )
slot

Zooms in or out

void ScribusView::slotZoomIn ( int  mx = 0,
int  my = 0 
)
slot

Zooms in

void ScribusView::slotZoomOut ( int  mx = 0,
int  my = 0 
)
slot

Verkleinert die Ansicht

void ScribusView::updateCanvas ( QRectF  box = QRectF())

paints the canvas inside the box given in canvas coordinates

QRectF ScribusView::visibleCanvas ( ) const

returns the visible part of the canvas in canvas coordinates

Member Data Documentation

ScribusDoc* const ScribusView::Doc

Dokument zu dem die Seite gehoert

RulerMover* ScribusView::rulerMover

Vergroesserungseingabefeld


The documentation for this class was generated from the following files: