QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
gui
qgssubsetstringeditorproviderregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssubsetstringeditorproviderregistry.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 QGSSUBSETSTRINGEDITORPROVIDERREGISTRY_H
18
#define QGSSUBSETSTRINGEDITORPROVIDERREGISTRY_H
19
20
#include <QWidget>
21
22
#include "qgis_gui.h"
23
#include "
qgis_sip.h
"
24
#include "
qgsguiutils.h
"
25
26
class
QgsSubsetStringEditorInterface
;
27
class
QgsSubsetStringEditorProvider
;
28
class
QgsProviderGuiRegistry
;
29
39
class
GUI_EXPORT
QgsSubsetStringEditorProviderRegistry
40
{
41
public
:
42
43
QgsSubsetStringEditorProviderRegistry
();
44
~
QgsSubsetStringEditorProviderRegistry
();
45
47
QgsSubsetStringEditorProviderRegistry
(
const
QgsSubsetStringEditorProviderRegistry
&rh ) =
delete
;
49
QgsSubsetStringEditorProviderRegistry
&operator=(
const
QgsSubsetStringEditorProviderRegistry
&rh ) =
delete
;
50
52
QList< QgsSubsetStringEditorProvider *> providers();
53
55
void
addProvider(
QgsSubsetStringEditorProvider
*provider
SIP_TRANSFER
);
56
61
bool
removeProvider(
QgsSubsetStringEditorProvider
*provider
SIP_TRANSFER
);
62
67
void
initializeFromProviderGuiRegistry(
QgsProviderGuiRegistry
*providerGuiRegistry );
68
70
QgsSubsetStringEditorProvider
*providerByName(
const
QString &name );
71
73
QList<QgsSubsetStringEditorProvider *> providersByKey(
const
QString &providerKey );
74
80
QgsSubsetStringEditorInterface
*createDialog(
QgsVectorLayer
*layer, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags )
SIP_TRANSFERBACK
;
81
82
private
:
83
#ifdef SIP_RUN
84
QgsSubsetStringEditorProviderRegistry
(
const
QgsSubsetStringEditorProviderRegistry
&rh );
85
#endif
86
88
QList<QgsSubsetStringEditorProvider *> mProviders;
89
};
90
91
#endif // QGSSUBSETSTRINGEDITORPROVIDERREGISTRY_H
QgsSubsetStringEditorInterface
Interface for a dialog that can edit subset strings.
Definition:
qgssubsetstringeditorinterface.h:33
SIP_TRANSFERBACK
#define SIP_TRANSFERBACK
Definition:
qgis_sip.h:48
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsProviderGuiRegistry
A registry / canonical manager of GUI parts of data providers.
Definition:
qgsproviderguiregistry.h:53
QgsSubsetStringEditorProviderRegistry
This class keeps a list of subset string editor providers.
Definition:
qgssubsetstringeditorproviderregistry.h:39
QgsSubsetStringEditorProvider
This is the interface for those who want to provide a dialog to edit a subset string.
Definition:
qgssubsetstringeditorprovider.h:37
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:391
qgsguiutils.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition:
qgis_sip.h:53
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17