17 #ifndef QGSCOMPOSERVIEW_H
18 #define QGSCOMPOSERVIEW_H
20 #include <QGraphicsView>
90 ActiveUntilMouseRelease
93 QgsComposerView( QWidget* parent = 0,
const char* name = 0, Qt::WFlags f = 0 );
102 void copyItems( ClipboardMode mode );
105 void pasteItems( PasteMode mode );
108 void deleteSelectedItems();
128 QMainWindow* composerWindow();
140 void setZoomLevel(
double zoomLevel );
143 void mousePressEvent( QMouseEvent* );
144 void mouseReleaseEvent( QMouseEvent* );
145 void mouseMoveEvent( QMouseEvent* );
146 void mouseDoubleClickEvent( QMouseEvent* e );
148 void keyPressEvent( QKeyEvent * e );
149 void keyReleaseEvent( QKeyEvent * e );
151 void wheelEvent( QWheelEvent* event );
153 void paintEvent( QPaintEvent* event );
155 void hideEvent( QHideEvent* e );
156 void showEvent( QShowEvent* e );
158 void resizeEvent( QResizeEvent* event );
159 void scrollContentsBy(
int dx,
int dy );
191 void addShape(
Tool currentTool );
208 QCursor defaultCursorForTool(
Tool currentTool );
211 void wheelZoom( QWheelEvent * event );
213 void updateRubberBand( QPointF & pos );
215 void removeRubberBand();
218 void startMarqueeSelect( QPointF & scenePoint );
220 void endMarqueeSelect( QMouseEvent* e );
222 void startMarqueeZoom( QPointF & scenePoint );
224 void endMarqueeZoom( QMouseEvent* e );
235 void actionFinished();
237 void cursorPosChanged( QPointF );
239 void zoomLevelChanged();
A scale bar item that can be added to a map composition.
QPointF mMoveContentStartPos
Start position of content move.
QgsComposerRuler * mVerticalRuler
An item that draws an arrow between to points.
QPoint mMousePressStartPos
bool mToolPanning
True if user is currently panning by clicking and dragging with the pan tool.
QgsComposerView::Tool mCurrentTool
Current composer tool.
void setPaintingEnabled(bool enabled)
A item that forms part of a map composition.
bool mKeyPanning
True if user is currently panning by holding the space key.
QGraphicsLineItem * mRubberBandLineItem
Rubber band item for arrows.
void setVerticalRuler(QgsComposerRuler *r)
A composer class that displays svg files or raster format (jpg, png, ...)
QgsComposerView::Tool mPreviousTool
Previous composer tool.
bool mMousePanning
True if user is currently panning by holding the middle mouse button.
Widget to display the composer items.
QPointF mRubberBandStartPos
Start of rubber band creation.
bool paintingEnabled() const
Graphics scene for map printing.
bool mMovingItemContent
True if user is currently dragging with the move item content tool.
Object representing map window.
QgsComposerItem * mMoveContentItem
Item to move content.
A class to show paper scale and the current cursor position.
A table class that displays a vector attribute table.
A composer items that draws common shapes (ellipse, triangle, rectangle)
void setHorizontalRuler(QgsComposerRuler *r)
A label that can be placed onto a map composition.
bool mMarqueeZoom
True if user is currently zooming by marquee.
QgsComposerRuler * mHorizontalRuler
QgsComposerView::ToolStatus mTemporaryZoomStatus
True if user is currently temporarily activating the zoom tool by holding control+space.
A legend that can be placed onto a map composition.
bool mMarqueeSelect
True if user is currently selecting by marquee.
QgsComposerView::Tool currentTool() const
QGraphicsRectItem * mRubberBandItem
Rubber band item.