QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgsexpressionselectiondialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgisexpressionselectiondialog.h
3
--------------------------------------
4
Date : 24.1.2013
5
Copyright : (C) 2013 by Matthias kuhn
6
Email : matthias at opengis dot 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
#ifndef QGSEXPRESSIONSELECTIONDIALOG_H
17
#define QGSEXPRESSIONSELECTIONDIALOG_H
18
19
#include "ui_qgsexpressionselectiondialogbase.h"
20
21
#include "qgis_gui.h"
22
#include "
qgis_sip.h
"
23
#include "
qgshelp.h
"
24
25
#include <QDialog>
26
27
class
QgsMapCanvas
;
28
class
QgsMessageBar
;
29
38
class
GUI_EXPORT
QgsExpressionSelectionDialog
:
public
QDialog,
private
Ui::QgsExpressionSelectionDialogBase
39
{
40
Q_OBJECT
41
42
public
:
49
QgsExpressionSelectionDialog
(
QgsVectorLayer
*layer,
const
QString &startText = QString(), QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
50
55
QgsExpressionBuilderWidget
*
expressionBuilder
();
56
61
void
setExpressionText
(
const
QString &text );
62
67
QString
expressionText
();
68
72
void
setGeomCalculator
(
const
QgsDistanceArea
&da );
73
79
void
setMessageBar
(
QgsMessageBar
*messageBar );
80
84
void
setMapCanvas
(
QgsMapCanvas
*canvas );
85
86
private
slots:
87
void
mActionSelect_triggered();
88
void
mActionAddToSelection_triggered();
89
void
mActionRemoveFromSelection_triggered();
90
void
mActionSelectIntersect_triggered();
91
void
mButtonZoomToFeatures_clicked();
92
void
mPbnClose_clicked();
93
void
showHelp();
94
95
protected
:
101
void
closeEvent
( QCloseEvent *
closeEvent
)
override
;
102
108
void
done
(
int
r )
override
;
109
110
private
:
111
void
saveRecent();
112
void
pushSelectedFeaturesMessage();
113
QgsVectorLayer
*mLayer =
nullptr
;
114
QgsMessageBar
*mMessageBar =
nullptr
;
115
QgsMapCanvas
*mMapCanvas =
nullptr
;
116
};
117
118
#endif
QgsDistanceArea
A general purpose distance and area calculator, capable of performing ellipsoid based calculations.
Definition
qgsdistancearea.h:54
QgsExpressionBuilderWidget
A reusable widget that can be used to build an expression string.
Definition
qgsexpressionbuilderwidget.h:50
QgsExpressionSelectionDialog::expressionBuilder
QgsExpressionBuilderWidget * expressionBuilder()
The builder widget that is used by the dialog.
Definition
qgsexpressionselectiondialog.cpp:74
QgsExpressionSelectionDialog::expressionText
QString expressionText()
Returns the current expression text.
Definition
qgsexpressionselectiondialog.cpp:84
QgsExpressionSelectionDialog::closeEvent
void closeEvent(QCloseEvent *closeEvent) override
Implementation for closeEvent Saves the window geometry.
Definition
qgsexpressionselectiondialog.cpp:192
QgsExpressionSelectionDialog::setExpressionText
void setExpressionText(const QString &text)
Sets the current expression text.
Definition
qgsexpressionselectiondialog.cpp:79
QgsExpressionSelectionDialog::QgsExpressionSelectionDialog
QgsExpressionSelectionDialog(QgsVectorLayer *layer, const QString &startText=QString(), QWidget *parent=nullptr)
Creates a new selection dialog.
Definition
qgsexpressionselectiondialog.cpp:34
QgsExpressionSelectionDialog::setMapCanvas
void setMapCanvas(QgsMapCanvas *canvas)
Sets a map canvas associated with the dialog.
Definition
qgsexpressionselectiondialog.cpp:100
QgsExpressionSelectionDialog::setMessageBar
void setMessageBar(QgsMessageBar *messageBar)
Sets the message bar to display feedback from the dialog.
Definition
qgsexpressionselectiondialog.cpp:95
QgsExpressionSelectionDialog::setGeomCalculator
void setGeomCalculator(const QgsDistanceArea &da)
Sets geometry calculator used in distance/area calculations.
Definition
qgsexpressionselectiondialog.cpp:89
QgsExpressionSelectionDialog::done
void done(int r) override
Implementation for done (default behavior when pressing esc) Calls close, so the window geometry gets...
Definition
qgsexpressionselectiondialog.cpp:202
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
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
qgshelp.h
Generated on
for QGIS API Documentation by
1.17.0