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
|
2013-06-22 19:37:41 +02:00
|
|
|
{
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
|
|
|
A class to show paper scale and the current cursor position
|
|
|
|
%End
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
%TypeHeaderCode
|
2017-05-23 14:39:33 +02:00
|
|
|
#include "qgscomposerruler.h"
|
2013-06-22 19:37:41 +02:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
enum Direction
|
|
|
|
{
|
|
|
|
Horizontal,
|
|
|
|
Vertical
|
|
|
|
};
|
|
|
|
|
2017-05-23 14:39:33 +02:00
|
|
|
QgsComposerRuler( QgsComposerRuler::Direction d );
|
2013-06-22 19:37:41 +02:00
|
|
|
~QgsComposerRuler();
|
|
|
|
|
2017-05-23 14:39:33 +02:00
|
|
|
virtual QSize minimumSizeHint() const;
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setSceneTransform( const QTransform &transform );
|
2016-02-02 19:46:18 +11:00
|
|
|
void updateMarker( QPointF pos );
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setComposition( QgsComposition *c );
|
|
|
|
QgsComposition *composition();
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsComposition
|
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
|
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
|
|
|
|
2013-06-22 19:37:41 +02: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 );
|
|
|
|
|
2015-11-10 17:08:27 +11:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void cursorPosChanged( QPointF );
|
2017-05-23 14:39:33 +02:00
|
|
|
%Docstring
|
|
|
|
Is emitted when mouse cursor coordinates change
|
|
|
|
%End
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
};
|
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 *
|
|
|
|
************************************************************************/
|