QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
editorwidgets
qgsrelationaggregatesearchwidgetwrapper.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrelationaggregatesearchwidget.h
3
-----------------------------
4
Date : Nov 2017
5
Copyright : (C) 2017 Matthias Kuhn
6
Email : matthias@opengis.ch
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
17
#ifndef QGSRELATIONAGGREGATESEARCHWIDGETWRAPPER_H
18
#define QGSRELATIONAGGREGATESEARCHWIDGETWRAPPER_H
19
20
#include "qgis_gui.h"
21
#include "
qgsattributeform.h
"
22
#include "
qgssearchwidgetwrapper.h
"
23
24
class
QgsRelationWidgetWrapper
;
25
35
class
GUI_EXPORT
QgsRelationAggregateSearchWidgetWrapper
:
public
QgsSearchWidgetWrapper
36
{
37
Q_OBJECT
38
39
public
:
43
explicit
QgsRelationAggregateSearchWidgetWrapper
(
QgsVectorLayer
*
layer
,
QgsRelationWidgetWrapper
*wrapper, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
44
45
QString
expression
()
const override
;
46
47
bool
valid
()
const override
;
48
QWidget *
createWidget
( QWidget *parent )
override
;
49
bool
applyDirectly
()
override
;
50
void
setExpression
(
const
QString &value )
override
;
51
bool
eventFilter
( QObject *watched, QEvent *event )
override
;
52
53
private
:
54
QgsRelationWidgetWrapper
*mWrapper =
nullptr
;
55
QgsAttributeForm
*mAttributeForm =
nullptr
;
56
QWidget *mContainerWidget =
nullptr
;
57
};
58
59
#endif
// QGSRELATIONAGGREGATESEARCHWIDGETWRAPPER_H
QgsAttributeForm
The attribute form widget for vector layer features.
Definition
qgsattributeform.h:48
QgsRelationAggregateSearchWidgetWrapper::QgsRelationAggregateSearchWidgetWrapper
QgsRelationAggregateSearchWidgetWrapper(QgsVectorLayer *layer, QgsRelationWidgetWrapper *wrapper, QWidget *parent SIP_TRANSFERTHIS=nullptr)
Constructor.
Definition
qgsrelationaggregatesearchwidgetwrapper.cpp:32
QgsRelationAggregateSearchWidgetWrapper::eventFilter
bool eventFilter(QObject *watched, QEvent *event) override
Definition
qgsrelationaggregatesearchwidgetwrapper.cpp:92
QgsRelationWidgetWrapper
A widget wrapper for relation widgets.
Definition
qgsrelationwidgetwrapper.h:32
QgsSearchWidgetWrapper::expression
virtual QString expression() const =0
Will be used to access the widget's value.
QgsSearchWidgetWrapper::QgsSearchWidgetWrapper
QgsSearchWidgetWrapper(QgsVectorLayer *vl, int fieldIdx, QWidget *parent=nullptr)
Create a new widget wrapper.
Definition
qgssearchwidgetwrapper.cpp:92
QgsSearchWidgetWrapper::setExpression
virtual void setExpression(const QString &expression)=0
Set the expression which is currently used as filter for this widget.
QgsSearchWidgetWrapper::applyDirectly
virtual bool applyDirectly()=0
If this is true, then this search widget should take effect directly when its expression changes.
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
QgsWidgetWrapper::valid
virtual bool valid() const =0
Returns true if the widget has been properly initialized.
QgsWidgetWrapper::layer
QgsVectorLayer * layer() const
Returns the vector layer associated with the widget.
Definition
qgswidgetwrapper.cpp:94
QgsWidgetWrapper::createWidget
virtual QWidget * createWidget(QWidget *parent)=0
This method should create a new widget with the provided parent.
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsattributeform.h
qgssearchwidgetwrapper.h
Generated on
for QGIS API Documentation by
1.17.0