Skip to content

Commit 520c2aa

Browse files
committedJan 5, 2018
More work on atlas GUI
1 parent e169c21 commit 520c2aa

File tree

9 files changed

+595
-16
lines changed

9 files changed

+595
-16
lines changed
 

‎python/core/layout/qgslayoutatlas.sip

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ number of matching features.
258258
virtual int count() const;
259259

260260

261+
int currentFeatureNumber() const;
262+
%Docstring
263+
Returns the current feature number, where a value of 0 corresponds to the first feature.
264+
%End
265+
261266
public slots:
262267

263268
virtual bool next();
@@ -268,6 +273,12 @@ number of matching features.
268273

269274
virtual bool last();
270275

276+
bool seekTo( int feature );
277+
278+
void refreshCurrentFeature();
279+
%Docstring
280+
Refreshes the current atlas feature, by refetching its attributes from the vector layer provider
281+
%End
271282

272283
signals:
273284

@@ -294,6 +305,11 @@ Is emitted when the atlas has an updated status bar ``message``.
294305
void numberFeaturesChanged( int numFeatures );
295306
%Docstring
296307
Emitted when the number of features for the atlas changes.
308+
%End
309+
310+
void featureChanged( const QgsFeature &feature );
311+
%Docstring
312+
Is emitted when the current atlas ``feature`` changes.
297313
%End
298314

299315
void renderBegun();

0 commit comments

Comments
 (0)
Please sign in to comment.