QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgssubsetstringeditorprovider.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssubsetstringeditorprovider.h
3
--------------------------------------
4
Date : 15-Nov-2020
5
Copyright : (C) 2020 by Even Rouault
6
Email : even.rouault at spatials.com
7
****************************************************************************/
8
/***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSSUBSETSTRINGEDITORPROVIDER_H
18
#define QGSSUBSETSTRINGEDITORPROVIDER_H
19
20
#include "
qgis.h
"
21
#include "qgis_gui.h"
22
#include "
qgis_sip.h
"
23
#include "
qgsguiutils.h
"
24
25
class
QWidget;
26
class
QgsVectorLayer
;
27
class
QgsSubsetStringEditorInterface
;
28
36
class
GUI_EXPORT
QgsSubsetStringEditorProvider
37
{
38
public
:
39
virtual
~QgsSubsetStringEditorProvider
();
40
42
virtual
QString
providerKey
()
const
= 0;
43
51
virtual
QString
name
()
const
{
return
providerKey
(); }
52
54
virtual
bool
canHandleLayer
(
QgsVectorLayer
*layer )
const
= 0;
55
64
virtual
bool
canHandleLayerStorageType
(
QgsVectorLayer
*layer )
const
65
{
66
Q_UNUSED( layer );
67
return
false
;
68
}
69
77
virtual
QgsSubsetStringEditorInterface
*
createDialog
(
QgsVectorLayer
*layer, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags ) = 0
SIP_FACTORY
;
78
};
79
80
#endif
QgsSubsetStringEditorInterface
Interface for a dialog that can edit subset strings.
Definition
qgssubsetstringeditorinterface.h:35
QgsSubsetStringEditorProvider
An interface for widgets which edit a subset string.
Definition
qgssubsetstringeditorprovider.h:37
QgsSubsetStringEditorProvider::createDialog
virtual QgsSubsetStringEditorInterface * createDialog(QgsVectorLayer *layer, QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)=0
Creates a new dialog to edit the subset string of the provided layer.
QgsSubsetStringEditorProvider::canHandleLayer
virtual bool canHandleLayer(QgsVectorLayer *layer) const =0
Returns true if the provider can handle the layer.
QgsSubsetStringEditorProvider::canHandleLayerStorageType
virtual bool canHandleLayerStorageType(QgsVectorLayer *layer) const
Returns true if the provider can handle specifically the layer->provider()->storageType() This method...
Definition
qgssubsetstringeditorprovider.h:64
QgsSubsetStringEditorProvider::name
virtual QString name() const
Subset string editor provider name, this is useful to retrieve a particular subset string editor in c...
Definition
qgssubsetstringeditorprovider.h:51
QgsSubsetStringEditorProvider::providerKey
virtual QString providerKey() const =0
Provider key.
QgsSubsetStringEditorProvider::~QgsSubsetStringEditorProvider
virtual ~QgsSubsetStringEditorProvider()
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgis.h
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgsguiutils.h
Generated on
for QGIS API Documentation by
1.17.0