17 #ifndef QGSCOMPOSERVIEW_H
18 #define QGSCOMPOSERVIEW_H
20 #include <QGraphicsView>
91 ActiveUntilMouseRelease
94 QgsComposerView( QWidget* parent = 0,
const char* name = 0, Qt::WindowFlags f = 0 );
103 void copyItems( ClipboardMode mode );
106 void pasteItems( PasteMode mode );
109 void deleteSelectedItems();
132 QMainWindow* composerWindow();
144 void setZoomLevel(
double zoomLevel );
151 void setPreviewModeEnabled(
bool enabled );
161 void mousePressEvent( QMouseEvent* );
162 void mouseReleaseEvent( QMouseEvent* );
163 void mouseMoveEvent( QMouseEvent* );
164 void mouseDoubleClickEvent( QMouseEvent* e );
166 void keyPressEvent( QKeyEvent * e );
167 void keyReleaseEvent( QKeyEvent * e );
169 void wheelEvent( QWheelEvent* event );
171 void paintEvent( QPaintEvent* event );
173 void hideEvent( QHideEvent* e );
174 void showEvent( QShowEvent* e );
176 void resizeEvent( QResizeEvent* event );
177 void scrollContentsBy(
int dx,
int dy );
209 void addShape(
Tool currentTool );
228 QCursor defaultCursorForTool(
Tool currentTool );
231 void wheelZoom( QWheelEvent * event );
233 void updateRubberBand( QPointF & pos );
235 void removeRubberBand();
238 void startMarqueeSelect( QPointF & scenePoint );
240 void endMarqueeSelect( QMouseEvent* e );
242 void startMarqueeZoom( QPointF & scenePoint );
244 void endMarqueeZoom( QMouseEvent* e );
255 void actionFinished();
257 void cursorPosChanged( QPointF );
259 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 graphics effect which can be applied to a widget to simulate various printing and color blindness m...
A composer class that displays svg files or raster format (jpg, png, ...)
QgsComposerView::Tool mPreviousTool
Previous composer tool.
QgsPreviewEffect * mPreviewEffect
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.