QGIS API Documentation 3.43.0-Master (0bee5d6404c)
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#include "qgis_gui.h"
26
27class QgsVectorLayer;
29
35class GUI_EXPORT QgsJoinDialog : public QDialog, private Ui::QgsJoinDialogBase
36{
37 Q_OBJECT
38 public:
39 QgsJoinDialog( QgsVectorLayer *layer, QList<QgsMapLayer *> alreadyJoinedLayers, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
40
42 void setJoinInfo( const QgsVectorLayerJoinInfo &joinInfo );
43
45 QgsVectorLayerJoinInfo joinInfo() const;
46
48 bool createAttributeIndex() const;
49
50 private slots:
51 void joinedLayerChanged( QgsMapLayer *layer );
52
53 void checkDefinitionValid();
54
55 void editableJoinLayerChanged();
56
57 private:
59 QgsVectorLayer *mLayer = nullptr;
60
61 // Temporary storage for "cache" setting since the checkbox may be temporarily disabled
62 bool mCacheEnabled = false;
63};
64
65
66#endif // QgsJoinDIALOG_H
A dialog for configuring vector layer joins.
Base class for all map layer types.
Definition qgsmaplayer.h:77
Defines left outer join from our vector layer to some other vector layer.
Represents a vector layer which manages a vector based dataset.