QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
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#define SIP_NO_FILE
23
24#include "ui_qgsjoindialogbase.h"
25
26#include "qgis_gui.h"
27
28class QgsVectorLayer;
30
36class GUI_EXPORT QgsJoinDialog : public QDialog, private Ui::QgsJoinDialogBase
37{
38 Q_OBJECT
39 public:
40 QgsJoinDialog( QgsVectorLayer *layer, QList<QgsMapLayer *> alreadyJoinedLayers, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
41
44
47
49 bool createAttributeIndex() const;
50
51 private slots:
52 void joinedLayerChanged( QgsMapLayer *layer );
53
54 void checkDefinitionValid();
55
56 void editableJoinLayerChanged();
57
58 private:
60 QgsVectorLayer *mLayer = nullptr;
61
62 // Temporary storage for "cache" setting since the checkbox may be temporarily disabled
63 bool mCacheEnabled = false;
64};
65
66
67#endif // QgsJoinDIALOG_H
QgsJoinDialog(QgsVectorLayer *layer, QList< QgsMapLayer * > alreadyJoinedLayers, QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
QgsVectorLayerJoinInfo joinInfo() const
Returns the join info.
bool createAttributeIndex() const
Returns true if user wants to create an attribute index on the join field.
void setJoinInfo(const QgsVectorLayerJoinInfo &joinInfo)
Configure the dialog for an existing join.
Base class for all map layer types.
Definition qgsmaplayer.h:80
Defines left outer join from our vector layer to some other vector layer.
Represents a vector layer which manages a vector based dataset.