17 #ifndef QGSCOMPOSERVIEW_H
18 #define QGSCOMPOSERVIEW_H
20 #include <QGraphicsView>
71 QgsComposerView( QWidget* parent = 0,
const char* name = 0, Qt::WFlags f = 0 );
88 QMainWindow* composerWindow();
100 void mousePressEvent( QMouseEvent* );
101 void mouseReleaseEvent( QMouseEvent* );
102 void mouseMoveEvent( QMouseEvent* );
103 void mouseDoubleClickEvent( QMouseEvent* e );
105 void keyPressEvent( QKeyEvent * e );
107 void wheelEvent( QWheelEvent* event );
109 void paintEvent( QPaintEvent* event );
111 void hideEvent( QHideEvent* e );
112 void showEvent( QShowEvent* e );
114 void resizeEvent( QResizeEvent* event );
115 void scrollContentsBy(
int dx,
int dy );
137 void addShape(
Tool currentTool );
148 void actionFinished();
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.
QgsComposerView::Tool mCurrentTool
Current composer tool.
void setPaintingEnabled(bool enabled)
A item that forms part of a map composition.
void setCurrentTool(QgsComposerView::Tool t)
QGraphicsLineItem * mRubberBandLineItem
Rubber band item for arrows.
void setVerticalRuler(QgsComposerRuler *r)
A composer class that displays svg files or raster format (jpg, png, ...)
Widget to display the composer items.
QPointF mRubberBandStartPos
Start of rubber band creation.
bool paintingEnabled() const
Graphics scene for map printing.
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.
QgsComposerRuler * mHorizontalRuler
A legend that can be placed onto a map composition.
QgsComposerView::Tool currentTool() const
QGraphicsRectItem * mRubberBandItem
Rubber band item.