QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgslayoutatlaswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgslayoutatlaswidget.h
3 ---------------------------
4 begin : October 2012
5 copyright : (C) 2012 Hugo Mercier
6 email : hugo dot mercier at oslandia dot com
7 ***************************************************************************/
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef QGSLAYOUTATLASWIDGET_H
18#define QGSLAYOUTATLASWIDGET_H
19
20// We don't want to expose this in the public API
21#define SIP_NO_FILE
22
23#include "ui_qgslayoutatlaswidgetbase.h"
24
25#include "qgis_gui.h"
26
27class QgsPrintLayout;
28class QgsLayoutAtlas;
29class QgsMessageBar;
30
38class GUI_EXPORT QgsLayoutAtlasWidget : public QWidget, private Ui::QgsLayoutAtlasWidgetBase
39{
40 Q_OBJECT
41 public:
43 QgsLayoutAtlasWidget( QWidget *parent, QgsPrintLayout *layout );
45 void setMessageBar( QgsMessageBar *bar );
46
47 private slots:
48 void mUseAtlasCheckBox_stateChanged( int state );
49 void changeCoverageLayer( QgsMapLayer *layer );
50 void mAtlasFilenamePatternEdit_editingFinished();
51 void mAtlasFilenameExpressionButton_clicked();
52 void mAtlasLimitCoverageLayerRenderCheckBox_stateChanged( int state );
53 void mAtlasHideCoverageCheckBox_stateChanged( int state );
54 void mAtlasSingleFileCheckBox_stateChanged( int state );
55 void mAtlasSortFeatureCheckBox_stateChanged( int state );
56 void changesSortFeatureExpression( const QString &expression, bool valid );
57 void mAtlasSortFeatureDirectionButton_clicked();
58 void mAtlasFeatureFilterEdit_editingFinished();
59 void mAtlasFeatureFilterButton_clicked();
60 void mAtlasFeatureFilterCheckBox_stateChanged( int state );
61 void pageNameExpressionChanged( const QString &expression, bool valid );
62 void changeFileFormat();
63 void updateGuiElements();
64 void updateAtlasFeatures();
65
66 private:
67 QPointer<QgsPrintLayout> mLayout;
68 QgsLayoutAtlas *mAtlas = nullptr;
69 QgsMessageBar *mMessageBar = nullptr;
70 bool mBlockUpdates = false;
71
72 void blockAllSignals( bool b );
73 void checkLayerType( QgsVectorLayer *layer );
74};
75
76#endif // QGSLAYOUTATLASWIDGET_H
QgsLayoutAtlasWidget(QWidget *parent, QgsPrintLayout *layout)
Constructor.
void setMessageBar(QgsMessageBar *bar)
Sets the message bar to which to emit messages.
Used to render QgsLayout as an atlas, by iterating over the features from an associated vector layer.
Base class for all map layer types.
Definition qgsmaplayer.h:80
A bar for displaying non-blocking messages to the user.
Print layout, a QgsLayout subclass for static or atlas-based layouts.
Represents a vector layer which manages a vector based dataset.