Skip to content

Commit ce0ac40

Browse files
committedNov 7, 2017
Add missing docs
1 parent 49c41d3 commit ce0ac40

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed
 

‎python/core/layout/qgslayoutitemmap.sip

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class QgsLayoutItemMap : QgsLayoutItem
8787
item to ensure that the extent exactly matches the specified extent, with no
8888
overlap or margin. This method implicitly alters the map scale.
8989
.. seealso:: zoomToExtent()
90+
.. seealso:: extentChanged()
9091
%End
9192

9293
void zoomToExtent( const QgsRectangle &extent );
@@ -102,6 +103,7 @@ class QgsLayoutItemMap : QgsLayoutItem
102103
%Docstring
103104
Returns the current map extent.
104105
.. seealso:: visibleExtentPolygon()
106+
.. seealso:: extentChanged()
105107
:rtype: QgsRectangle
106108
%End
107109

@@ -274,6 +276,7 @@ Returns true if the map contains layers with blend modes or flattened layers for
274276
Sets the ``rotation`` for the map - this does not affect the composer item shape, only the
275277
way the map is drawn within the item. Rotation is in degrees, clockwise.
276278
.. seealso:: mapRotation()
279+
.. seealso:: mapRotationChanged()
277280
%End
278281

279282
double mapRotation( QgsLayoutObject::PropertyValueType valueType = QgsLayoutObject::EvaluatedValue ) const;
@@ -283,6 +286,7 @@ Returns true if the map contains layers with blend modes or flattened layers for
283286
or the current evaluated rotation (which may be affected by data driven rotation
284287
settings).
285288
.. seealso:: setMapRotation()
289+
.. seealso:: mapRotationChanged()
286290
:rtype: float
287291
%End
288292

@@ -457,11 +461,19 @@ Transforms map coordinates to item coordinates (considering rotation and move of
457461
%End
458462

459463
signals:
464+
460465
void extentChanged();
466+
%Docstring
467+
Is emitted when the map's extent changes.
468+
.. seealso:: setExtent()
469+
.. seealso:: extent()
470+
%End
461471

462472
void mapRotationChanged( double newRotation );
463473
%Docstring
464-
Is emitted on rotation change to notify north arrow pictures
474+
Is emitted when the map's rotation changes.
475+
.. seealso:: setMapRotation()
476+
.. seealso:: mapRotation()
465477
%End
466478

467479
void preparedForAtlas();
@@ -475,7 +487,6 @@ Is emitted when the map has been prepared for atlas rendering, just before actua
475487
associated legend items know they should update
476488
%End
477489

478-
479490
public slots:
480491

481492
virtual void invalidateCache();

‎src/core/layout/qgslayoutitemmap.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class CORE_EXPORT QgsLayoutItemMap : public QgsLayoutItem
114114
* item to ensure that the extent exactly matches the specified extent, with no
115115
* overlap or margin. This method implicitly alters the map scale.
116116
* \see zoomToExtent()
117+
* \see extentChanged()
117118
*/
118119
void setExtent( const QgsRectangle &extent );
119120

@@ -129,6 +130,7 @@ class CORE_EXPORT QgsLayoutItemMap : public QgsLayoutItem
129130
/**
130131
* Returns the current map extent.
131132
* \see visibleExtentPolygon()
133+
* \see extentChanged()
132134
*/
133135
QgsRectangle extent() const;
134136

@@ -282,6 +284,7 @@ class CORE_EXPORT QgsLayoutItemMap : public QgsLayoutItem
282284
* Sets the \a rotation for the map - this does not affect the composer item shape, only the
283285
* way the map is drawn within the item. Rotation is in degrees, clockwise.
284286
* \see mapRotation()
287+
* \see mapRotationChanged()
285288
*/
286289
void setMapRotation( double rotation );
287290

@@ -291,6 +294,7 @@ class CORE_EXPORT QgsLayoutItemMap : public QgsLayoutItem
291294
* or the current evaluated rotation (which may be affected by data driven rotation
292295
* settings).
293296
* \see setMapRotation()
297+
* \see mapRotationChanged()
294298
*/
295299
double mapRotation( QgsLayoutObject::PropertyValueType valueType = QgsLayoutObject::EvaluatedValue ) const;
296300

@@ -441,9 +445,19 @@ class CORE_EXPORT QgsLayoutItemMap : public QgsLayoutItem
441445
QgsRectangle requestedExtent() const;
442446

443447
signals:
448+
449+
/**
450+
* Is emitted when the map's extent changes.
451+
* \see setExtent()
452+
* \see extent()
453+
*/
444454
void extentChanged();
445455

446-
//! Is emitted on rotation change to notify north arrow pictures
456+
/**
457+
* Is emitted when the map's rotation changes.
458+
* \see setMapRotation()
459+
* \see mapRotation()
460+
*/
447461
void mapRotationChanged( double newRotation );
448462

449463
//! Is emitted when the map has been prepared for atlas rendering, just before actual rendering
@@ -455,7 +469,6 @@ class CORE_EXPORT QgsLayoutItemMap : public QgsLayoutItem
455469
*/
456470
void layerStyleOverridesChanged();
457471

458-
459472
public slots:
460473

461474
void invalidateCache() override;

0 commit comments

Comments
 (0)
Please sign in to comment.