QGIS/python/gui/qgscomposerruler.sip

71 lines
2.0 KiB
Plaintext
Raw Normal View History

2017-05-23 14:39:33 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgscomposerruler.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsComposerRuler: QWidget
{
2017-05-23 14:39:33 +02:00
%Docstring
A class to show paper scale and the current cursor position
%End
%TypeHeaderCode
2017-05-23 14:39:33 +02:00
#include "qgscomposerruler.h"
%End
public:
enum Direction
{
Horizontal,
Vertical
};
2017-05-23 14:39:33 +02:00
QgsComposerRuler( QgsComposerRuler::Direction d );
~QgsComposerRuler();
2017-05-23 14:39:33 +02:00
virtual QSize minimumSizeHint() const;
void setSceneTransform( const QTransform &transform );
void updateMarker( QPointF pos );
void setComposition( QgsComposition *c );
QgsComposition *composition();
2017-05-23 14:39:33 +02:00
%Docstring
:rtype: QgsComposition
%End
2014-01-26 18:35:21 +01:00
int rulerSize();
2017-05-23 14:39:33 +02:00
%Docstring
:rtype: int
%End
2014-01-26 18:35:21 +01:00
protected:
2017-05-23 14:39:33 +02:00
virtual void paintEvent( QPaintEvent *event );
virtual void mouseMoveEvent( QMouseEvent *event );
virtual void mouseReleaseEvent( QMouseEvent *event );
virtual void mousePressEvent( QMouseEvent *event );
signals:
void cursorPosChanged( QPointF );
2017-05-23 14:39:33 +02:00
%Docstring
Is emitted when mouse cursor coordinates change
%End
};
2017-05-23 14:39:33 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgscomposerruler.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/