-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5510 from m-kuhn/relationsearch
[FEATURE] Search widget for relations using aggregates
- Loading branch information
Showing
40 changed files
with
1,734 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
python/gui/editorwidgets/qgsrelationaggregatesearchwidgetwrapper.sip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/editorwidgets/qgsrelationaggregatesearchwidgetwrapper.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsRelationAggregateSearchWidgetWrapper : QgsSearchWidgetWrapper | ||
{ | ||
%Docstring | ||
|
||
Search widget for the children of a relation. | ||
For each attribute of the child, an additional QgsAggregateToolButton will be shown | ||
to determine how the values should be aggregated for searching. | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsrelationaggregatesearchwidgetwrapper.h" | ||
%End | ||
public: | ||
|
||
explicit QgsRelationAggregateSearchWidgetWrapper( QgsVectorLayer *layer, QgsRelationWidgetWrapper *wrapper, QWidget *parent /TransferThis/ = 0 ); | ||
%Docstring | ||
Constructor | ||
%End | ||
|
||
virtual QString expression() const; | ||
|
||
virtual bool valid() const; | ||
virtual QWidget *createWidget( QWidget *parent ); | ||
virtual bool applyDirectly(); | ||
virtual void setExpression( const QString &value ); | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/editorwidgets/qgsrelationaggregatesearchwidgetwrapper.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsaggregatetoolbutton.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsAggregateToolButton : QToolButton | ||
{ | ||
%Docstring | ||
|
||
Offers a toolbutton to choose between different aggregate functions. | ||
Functions are filtered based on the type. | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsaggregatetoolbutton.h" | ||
%End | ||
public: | ||
|
||
QgsAggregateToolButton(); | ||
%Docstring | ||
Constructor | ||
%End | ||
|
||
void setType( QVariant::Type type ); | ||
%Docstring | ||
Based on the ``type`` of underlying data, some aggregates will be available or not. | ||
%End | ||
|
||
QVariant::Type type() const; | ||
%Docstring | ||
Based on the ``type`` of underlying data, some aggregates will be available or not. | ||
:rtype: QVariant.Type | ||
%End | ||
|
||
void setActive( bool active ); | ||
%Docstring | ||
When this flag is false, the aggregate will be deactivated. I.e. no aggregate is chosen. | ||
%End | ||
|
||
bool active() const; | ||
%Docstring | ||
When this flag is false, the aggregate will be deactivated. I.e. no aggregate is chosen. | ||
:rtype: bool | ||
%End | ||
|
||
QString aggregate() const; | ||
%Docstring | ||
The function name of the selected aggregate or a Null String if none is chosen. | ||
:rtype: str | ||
%End | ||
|
||
void setAggregate( const QString &aggregate ); | ||
%Docstring | ||
The function name of the selected aggregate or a Null String if none is chosen. | ||
%End | ||
|
||
signals: | ||
|
||
void aggregateChanged(); | ||
%Docstring | ||
The function name of the selected aggregate has changed. | ||
%End | ||
|
||
void activeChanged(); | ||
%Docstring | ||
A function has been selected or deselected. | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsaggregatetoolbutton.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.