17 #ifndef QGSCOMPOSERVIEW_H 18 #define QGSCOMPOSERVIEW_H 20 #include <QGraphicsView> 23 #include <QGraphicsPolygonItem> 96 ActiveUntilMouseRelease
114 void deleteSelectedItems();
149 void setZoomLevel(
double zoomLevel );
156 void scaleSafe(
double scale );
163 void setPreviewModeEnabled(
bool enabled );
215 bool mPaintingEnabled;
221 void addShape(
Tool currentTool );
224 void addPolygonNode(
const QPointF & scenePoint );
225 void movePolygonNode(
const QPointF & scenePoint );
226 void displayNodes(
const bool display =
true );
230 float mMoveContentSearchRadius;
244 bool mMovingItemContent;
248 QPoint mMousePressStartPos;
258 void updateRubberBandRect(
QPointF & pos,
const bool constrainSquare =
false,
const bool fromCenter =
false );
260 void updateRubberBandLine(
QPointF pos,
const bool constrainAngles =
false );
262 void removeRubberBand();
265 void startMarqueeSelect(
QPointF & scenePoint );
269 void startMarqueeZoom(
QPointF & scenePoint );
282 void actionFinished();
284 void cursorPosChanged(
QPointF );
286 void zoomLevelChanged();
virtual void mouseMoveEvent(QMouseEvent *event)
An abstract composer item that provides generic methods for nodes based shapes such as polygon or pol...
A scale bar item that can be added to a map composition.
bool paintingEnabled() const
virtual void keyReleaseEvent(QKeyEvent *event)
An item that draws an arrow between two points.
virtual void showEvent(QShowEvent *event)
void setPaintingEnabled(bool enabled)
A item that forms part of a map composition.
virtual void mouseReleaseEvent(QMouseEvent *event)
A table that displays attributes from a vector layer.
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, ...)
Widget to display the composer items.
virtual void keyPressEvent(QKeyEvent *event)
Graphics scene for map printing.
Object representing map window.
virtual void mousePressEvent(QMouseEvent *event)
A class to show paper scale and the current cursor position.
virtual void paintEvent(QPaintEvent *event)
A composer items that draws common shapes (ellipse, triangle, rectangle)
void setHorizontalRuler(QgsComposerRuler *r)
A label that can be placed onto a map composition.
QgsComposerView::Tool currentTool() const
virtual void mouseDoubleClickEvent(QMouseEvent *event)
A legend that can be placed onto a map composition.
virtual void wheelEvent(QWheelEvent *event)
virtual void scrollContentsBy(int dx, int dy)
virtual void resizeEvent(QResizeEvent *event)