QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
editorwidgets
qgsrelationreferenceconfigdlg.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrelationreferenceconfigdlg.h
3
--------------------------------------
4
Date : 21.4.2013
5
Copyright : (C) 2013 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 QGSRELATIONREFERENCECONFIGDLGBASE_H
17
#define QGSRELATIONREFERENCECONFIGDLGBASE_H
18
19
#include "ui_qgsrelationreferenceconfigdlgbase.h"
20
21
#include "qgis_gui.h"
22
#include "
qgseditorconfigwidget.h
"
23
24
#include <QListWidget>
25
26
SIP_NO_FILE
27
35
class
GUI_EXPORT
QgsRelationReferenceConfigDlg
:
public
QgsEditorConfigWidget
,
36
private
Ui::QgsRelReferenceConfigDlgBase
37
{
38
Q_OBJECT
39
40
public
:
41
explicit
QgsRelationReferenceConfigDlg
(
QgsVectorLayer
*vl,
int
fieldIdx, QWidget *parent );
42
QVariantMap
config
()
override
;
43
void
setConfig
(
const
QVariantMap &
config
)
override
;
44
45
private
:
46
void
loadFields();
47
void
addFilterField(
const
QString &
field
);
48
void
addFilterField( QListWidgetItem *item );
49
int
indexFromListWidgetItem( QListWidgetItem *item );
50
51
QgsVectorLayer
*mReferencedLayer =
nullptr
;
52
bool
mAllowNullWasSetByConfig =
false
;
53
54
private
slots:
55
void
relationChanged(
int
idx );
56
void
mAddFilterButton_clicked();
57
void
mRemoveFilterButton_clicked();
58
62
void
mEditExpression_clicked();
63
64
friend
class
TestQgsRelationReferenceWidget
;
65
};
66
67
#endif
// QGSRELATIONREFERENCECONFIGDLGBASE_H
QgsEditorConfigWidget::QgsEditorConfigWidget
QgsEditorConfigWidget(QgsVectorLayer *vl, int fieldIdx, QWidget *parent)
Create a new configuration widget.
Definition
qgseditorconfigwidget.cpp:23
QgsEditorConfigWidget::config
virtual QVariantMap config()=0
Create a configuration from the current GUI state.
QgsEditorConfigWidget::field
int field()
Returns the field for which this configuration widget applies.
Definition
qgseditorconfigwidget.cpp:30
QgsEditorConfigWidget::setConfig
virtual void setConfig(const QVariantMap &config)=0
Update the configuration widget to represent the given configuration.
QgsRelationReferenceConfigDlg::QgsRelationReferenceConfigDlg
QgsRelationReferenceConfigDlg(QgsVectorLayer *vl, int fieldIdx, QWidget *parent)
Definition
qgsrelationreferenceconfigdlg.cpp:34
QgsRelationReferenceConfigDlg::TestQgsRelationReferenceWidget
friend class TestQgsRelationReferenceWidget
Definition
qgsrelationreferenceconfigdlg.h:64
QgsRelationReferenceConfigDlg::config
QVariantMap config() override
Create a configuration from the current GUI state.
Definition
qgsrelationreferenceconfigdlg.cpp:191
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
SIP_NO_FILE
#define SIP_NO_FILE
Definition
fromencodedcomponenthelper.h:23
qgseditorconfigwidget.h
Generated on
for QGIS API Documentation by
1.17.0