/
qgslayoutatlaswidget.h
59 lines (53 loc) · 2.47 KB
/
qgslayoutatlaswidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/***************************************************************************
qgslayoutatlaswidget.h
---------------------------
begin : October 2012
copyright : (C) 2012 Hugo Mercier
email : hugo dot mercier at oslandia dot com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "ui_qgslayoutatlaswidgetbase.h"
class QgsPrintLayout;
class QgsLayoutAtlas;
class QgsMessageBar;
/**
* \ingroup app
* A widget for layout atlas settings.
*/
class QgsLayoutAtlasWidget: public QWidget, private Ui::QgsLayoutAtlasWidgetBase
{
Q_OBJECT
public:
QgsLayoutAtlasWidget( QWidget *parent, QgsPrintLayout *layout );
void setMessageBar( QgsMessageBar *bar );
private slots:
void mUseAtlasCheckBox_stateChanged( int state );
void changeCoverageLayer( QgsMapLayer *layer );
void mAtlasFilenamePatternEdit_editingFinished();
void mAtlasFilenameExpressionButton_clicked();
void mAtlasHideCoverageCheckBox_stateChanged( int state );
void mAtlasSingleFileCheckBox_stateChanged( int state );
void mAtlasSortFeatureCheckBox_stateChanged( int state );
void changesSortFeatureExpression( const QString &expression, bool valid );
void mAtlasSortFeatureDirectionButton_clicked();
void mAtlasFeatureFilterEdit_editingFinished();
void mAtlasFeatureFilterButton_clicked();
void mAtlasFeatureFilterCheckBox_stateChanged( int state );
void pageNameExpressionChanged( const QString &expression, bool valid );
void changeFileFormat();
void updateGuiElements();
void updateAtlasFeatures();
private:
QgsPrintLayout *mLayout = nullptr;
QgsLayoutAtlas *mAtlas = nullptr;
QgsMessageBar *mMessageBar = nullptr;
void blockAllSignals( bool b );
void checkLayerType( QgsVectorLayer *layer );
};