QGIS API Documentation 3.99.0-Master (a8f284845db)
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
23#include "ui_qgsjoindialogbase.h"
24
25#include "qgis_gui.h"
26
27#define SIP_NO_FILE
28
29class QgsVectorLayer;
31
37class 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
45
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(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:83
Defines left outer join from our vector layer to some other vector layer.
Represents a vector layer which manages a vector based dataset.