QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
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 "qgsfeaturerequest.h"
22#include "ui_qgsprocessingfeaturesourceoptionsbase.h"
23
24#define SIP_NO_FILE
25
27
34class GUI_EXPORT QgsProcessingFeatureSourceOptionsWidget : public QgsPanelWidget, private Ui::QgsProcessingFeatureSourceOptionsBase
35{
36 Q_OBJECT
37
38 public:
39
43 QgsProcessingFeatureSourceOptionsWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
44
48 void setLayer( QgsVectorLayer *layer );
49
56 void setGeometryCheckMethod( bool isOverridden, QgsFeatureRequest::InvalidGeometryCheck check );
57
63 void setFeatureLimit( int limit );
64
70 void setFilterExpression( const QString &expression );
71
79 QgsFeatureRequest::InvalidGeometryCheck geometryCheckMethod() const;
80
86 bool isOverridingInvalidGeometryCheck() const;
87
93 int featureLimit() const;
94
100 QString filterExpression() const;
101
102};
103
105
106#endif // QGSPROCESSINGFEATURESOURCEOPTIONSWIDGET_H
InvalidGeometryCheck
Handling of features with invalid geometries.
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