QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
vector
qgsjoindialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsjoindialog.h
3
------------------
4
begin : July 10, 2010
5
copyright : (C) 2010 by Marco Hugentobler
6
email : marco dot hugentobler at sourcepole dot ch
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QgsJoinDIALOG_H
19
#define QgsJoinDIALOG_H
20
21
// We don't want to expose this in the public API
22
23
#include "ui_qgsjoindialogbase.h"
24
25
#include "qgis_gui.h"
26
27
#define SIP_NO_FILE
28
29
class
QgsVectorLayer
;
30
class
QgsVectorLayerJoinInfo
;
31
37
class
GUI_EXPORT
QgsJoinDialog
:
public
QDialog,
private
Ui::QgsJoinDialogBase
38
{
39
Q_OBJECT
40
public
:
41
QgsJoinDialog
(
QgsVectorLayer
*layer, QList<QgsMapLayer *> alreadyJoinedLayers, QWidget *parent =
nullptr
, Qt::WindowFlags f = Qt::WindowFlags() );
42
44
void
setJoinInfo
(
const
QgsVectorLayerJoinInfo
&
joinInfo
);
45
47
QgsVectorLayerJoinInfo
joinInfo
()
const
;
48
50
bool
createAttributeIndex
()
const
;
51
52
private
slots:
53
void
joinedLayerChanged(
QgsMapLayer
*layer );
54
55
void
checkDefinitionValid();
56
57
void
editableJoinLayerChanged();
58
59
private
:
61
QgsVectorLayer
*mLayer =
nullptr
;
62
63
// Temporary storage for "cache" setting since the checkbox may be temporarily disabled
64
bool
mCacheEnabled =
false
;
65
};
66
67
68
#endif
// QgsJoinDIALOG_H
QgsJoinDialog::QgsJoinDialog
QgsJoinDialog(QgsVectorLayer *layer, QList< QgsMapLayer * > alreadyJoinedLayers, QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Definition
qgsjoindialog.cpp:37
QgsJoinDialog::joinInfo
QgsVectorLayerJoinInfo joinInfo() const
Returns the join info.
Definition
qgsjoindialog.cpp:128
QgsJoinDialog::createAttributeIndex
bool createAttributeIndex() const
Returns true if user wants to create an attribute index on the join field.
Definition
qgsjoindialog.cpp:168
QgsJoinDialog::setJoinInfo
void setJoinInfo(const QgsVectorLayerJoinInfo &joinInfo)
Configure the dialog for an existing join.
Definition
qgsjoindialog.cpp:82
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsVectorLayerJoinInfo
Defines left outer join from our vector layer to some other vector layer.
Definition
qgsvectorlayerjoininfo.h:33
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
Generated on
for QGIS API Documentation by
1.17.0