QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 
27 class QgsVectorLayer;
29 
34 class GUI_EXPORT QgsJoinDialog: public QDialog, private Ui::QgsJoinDialogBase
35 {
36  Q_OBJECT
37  public:
38  QgsJoinDialog( QgsVectorLayer *layer, QList<QgsMapLayer *> alreadyJoinedLayers, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
39 
41  void setJoinInfo( const QgsVectorLayerJoinInfo &joinInfo );
42 
44  QgsVectorLayerJoinInfo joinInfo() const;
45 
47  bool createAttributeIndex() const;
48 
49  private slots:
50  void joinedLayerChanged( QgsMapLayer *layer );
51 
52  void checkDefinitionValid();
53 
54  void editableJoinLayerChanged();
55 
56  private:
58  QgsVectorLayer *mLayer = nullptr;
59 
60  // Temporary storage for "cache" setting since the checkbox may be temporarily disabled
61  bool mCacheEnabled = false;
62 };
63 
64 
65 #endif // QgsJoinDIALOG_H
QgsJoinDialog
Definition: qgsjoindialog.h:34
QgsVectorLayerJoinInfo
Defines left outer join from our vector layer to some other vector layer. The join is done based on [...
Definition: qgsvectorlayerjoininfo.h:33
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition: qgsvectorlayer.h:391
QgsMapLayer
Base class for all map layer types. This is the base class for all map layer types (vector,...
Definition: qgsmaplayer.h:72