QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgsorderbydialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsorderbydialog.h
3
4
---------------------
5
begin : 20.12.2015
6
copyright : (C) 2015 by Matthias Kuhn
7
email : matthias@opengis.ch
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSORDERBYDIALOG_H
18
#define QGSORDERBYDIALOG_H
19
20
#include "ui_qgsorderbydialogbase.h"
21
22
#include "qgis_gui.h"
23
#include "
qgis_sip.h
"
24
#include "
qgsfeaturerequest.h
"
25
#include "
qgshelp.h
"
26
27
#include <QDialog>
28
29
class
QgsVectorLayer
;
30
35
class
GUI_EXPORT
QgsOrderByDialog
:
public
QDialog,
private
Ui::OrderByDialogBase
36
{
37
Q_OBJECT
38
39
public
:
46
QgsOrderByDialog
(
QgsVectorLayer
*layer, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
47
51
void
setOrderBy
(
const
QgsFeatureRequest::OrderBy
&
orderBy
);
52
56
QgsFeatureRequest::OrderBy
orderBy
();
57
58
protected
:
59
bool
eventFilter
( QObject *obj, QEvent *e )
override
;
60
61
private
slots:
62
void
onExpressionChanged(
const
QString &expression );
63
void
showHelp();
64
65
private
:
69
void
setRow(
int
row,
const
QgsFeatureRequest::OrderByClause
&orderByClause );
70
71
QgsVectorLayer
*mLayer =
nullptr
;
72
};
73
74
#endif
// QGSORDERBYDIALOG_H
QgsFeatureRequest::OrderByClause
The OrderByClause class represents an order by clause for a QgsFeatureRequest.
Definition
qgsfeaturerequest.h:110
QgsFeatureRequest::OrderBy
Represents a list of OrderByClauses, with the most important first and the least important last.
Definition
qgsfeaturerequest.h:211
QgsOrderByDialog::eventFilter
bool eventFilter(QObject *obj, QEvent *e) override
Definition
qgsorderbydialog.cpp:141
QgsOrderByDialog::setOrderBy
void setOrderBy(const QgsFeatureRequest::OrderBy &orderBy)
Set the order by to manage.
Definition
qgsorderbydialog.cpp:46
QgsOrderByDialog::QgsOrderByDialog
QgsOrderByDialog(QgsVectorLayer *layer, QWidget *parent=nullptr)
Create a new order by dialog.
Definition
qgsorderbydialog.cpp:31
QgsOrderByDialog::orderBy
QgsFeatureRequest::OrderBy orderBy()
Gets the order by defined in the dialog.
Definition
qgsorderbydialog.cpp:63
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsfeaturerequest.h
qgshelp.h
Generated on
for QGIS API Documentation by
1.17.0