mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
36 lines
775 B
Plaintext
36 lines
775 B
Plaintext
class QgsComposerRuler : QWidget
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgscomposerruler.h>
|
|
%End
|
|
public:
|
|
enum Direction
|
|
{
|
|
Horizontal,
|
|
Vertical
|
|
};
|
|
|
|
QgsComposerRuler( Direction d );
|
|
~QgsComposerRuler();
|
|
|
|
QSize minimumSizeHint() const;
|
|
|
|
void setSceneTransform( const QTransform& transform );
|
|
void updateMarker( QPointF pos );
|
|
|
|
void setComposition( QgsComposition* c );
|
|
QgsComposition* composition();
|
|
|
|
int rulerSize();
|
|
|
|
protected:
|
|
void paintEvent( QPaintEvent* event );
|
|
void mouseMoveEvent( QMouseEvent* event );
|
|
void mouseReleaseEvent( QMouseEvent* event );
|
|
void mousePressEvent( QMouseEvent* event );
|
|
|
|
signals:
|
|
/** Is emitted when mouse cursor coordinates change*/
|
|
void cursorPosChanged( QPointF );
|
|
};
|