QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
layout
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
22
#include "ui_qgslayoutatlaswidgetbase.h"
23
24
#include "qgis_gui.h"
25
26
#define SIP_NO_FILE
27
28
class
QgsPrintLayout
;
29
class
QgsLayoutAtlas
;
30
class
QgsMessageBar
;
31
39
class
GUI_EXPORT
QgsLayoutAtlasWidget
:
public
QWidget,
private
Ui::QgsLayoutAtlasWidgetBase
40
{
41
Q_OBJECT
42
public
:
44
QgsLayoutAtlasWidget
( QWidget *parent,
QgsPrintLayout
*layout );
46
void
setMessageBar
(
QgsMessageBar
*bar );
47
48
private
slots:
49
void
mUseAtlasCheckBox_stateChanged(
int
state );
50
void
changeCoverageLayer(
QgsMapLayer
*layer );
51
void
mAtlasFilenamePatternEdit_editingFinished();
52
void
mAtlasFilenameExpressionButton_clicked();
53
void
mAtlasLimitCoverageLayerRenderCheckBox_stateChanged(
int
state );
54
void
mAtlasHideCoverageCheckBox_stateChanged(
int
state );
55
void
mAtlasSingleFileCheckBox_stateChanged(
int
state );
56
void
mAtlasSortFeatureCheckBox_stateChanged(
int
state );
57
void
changesSortFeatureExpression(
const
QString &expression,
bool
valid );
58
void
mAtlasSortFeatureDirectionButton_clicked();
59
void
mAtlasFeatureFilterEdit_editingFinished();
60
void
mAtlasFeatureFilterButton_clicked();
61
void
mAtlasFeatureFilterCheckBox_stateChanged(
int
state );
62
void
pageNameExpressionChanged(
const
QString &expression,
bool
valid );
63
void
changeFileFormat();
64
void
updateGuiElements();
65
void
updateAtlasFeatures();
66
67
private
:
68
QPointer<QgsPrintLayout> mLayout;
69
QgsLayoutAtlas
*mAtlas =
nullptr
;
70
QgsMessageBar
*mMessageBar =
nullptr
;
71
bool
mBlockUpdates =
false
;
72
73
void
blockAllSignals(
bool
b );
74
void
checkLayerType(
QgsVectorLayer
*layer );
75
};
76
77
#endif
// QGSLAYOUTATLASWIDGET_H
QgsLayoutAtlasWidget::QgsLayoutAtlasWidget
QgsLayoutAtlasWidget(QWidget *parent, QgsPrintLayout *layout)
Constructor.
Definition
qgslayoutatlaswidget.cpp:35
QgsLayoutAtlasWidget::setMessageBar
void setMessageBar(QgsMessageBar *bar)
Sets the message bar to which to emit messages.
Definition
qgslayoutatlaswidget.cpp:80
QgsLayoutAtlas
Used to render QgsLayout as an atlas, by iterating over the features from an associated vector layer.
Definition
qgslayoutatlas.h:42
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
QgsPrintLayout
Print layout, a QgsLayout subclass for static or atlas-based layouts.
Definition
qgsprintlayout.h:30
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
Generated on
for QGIS API Documentation by
1.17.0