QGIS API Documentation 3.38.0-Grenoble (exported)
Loading...
Searching...
No Matches
qgsprocessingfeaturesourceoptionswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessingfeaturesourceoptionswidget.h
3 ----------------------------------
4 Date : March 2020
5 Copyright : (C) 2020 Nyall Dawson
6 Email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSPROCESSINGFEATURESOURCEOPTIONSWIDGET_H
17#define QGSPROCESSINGFEATURESOURCEOPTIONSWIDGET_H
18
19#include "qgis.h"
20#include "qgis_gui.h"
21#include "ui_qgsprocessingfeaturesourceoptionsbase.h"
22
23#define SIP_NO_FILE
24
26
33class GUI_EXPORT QgsProcessingFeatureSourceOptionsWidget : public QgsPanelWidget, private Ui::QgsProcessingFeatureSourceOptionsBase
34{
35 Q_OBJECT
36
37 public:
38
42 QgsProcessingFeatureSourceOptionsWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
43
47 void setLayer( QgsVectorLayer *layer );
48
55 void setGeometryCheckMethod( bool isOverridden, Qgis::InvalidGeometryCheck check );
56
62 void setFeatureLimit( int limit );
63
69 void setFilterExpression( const QString &expression );
70
78 Qgis::InvalidGeometryCheck geometryCheckMethod() const;
79
85 bool isOverridingInvalidGeometryCheck() const;
86
92 int featureLimit() const;
93
99 QString filterExpression() const;
100
101};
102
104
105#endif // QGSPROCESSINGFEATURESOURCEOPTIONSWIDGET_H
InvalidGeometryCheck
Methods for handling of features with invalid geometries.
Definition qgis.h:1872
Base class for any widget that can be shown as a inline panel.
Represents a vector layer which manages a vector based data sets.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53