QGIS API Documentation 3.41.0-Master (cea29feecf2)
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:
41 QgsProcessingFeatureSourceOptionsWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
42
46 void setLayer( QgsVectorLayer *layer );
47
54 void setGeometryCheckMethod( bool isOverridden, Qgis::InvalidGeometryCheck check );
55
61 void setFeatureLimit( int limit );
62
68 void setFilterExpression( const QString &expression );
69
77 Qgis::InvalidGeometryCheck geometryCheckMethod() const;
78
84 bool isOverridingInvalidGeometryCheck() const;
85
91 int featureLimit() const;
92
98 QString filterExpression() const;
99};
100
102
103#endif // QGSPROCESSINGFEATURESOURCEOPTIONSWIDGET_H
InvalidGeometryCheck
Methods for handling of features with invalid geometries.
Definition qgis.h:2117
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