QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgsproviderguimetadata.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsproviderguimetadata.h
3 -------------------
4 begin : June 4th 2019
5 copyright : (C) 2019 by Peter Petrik
6 email : zilolv at gmail dot com
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 QGSPROVIDERGUIMETADATA_H
19#define QGSPROVIDERGUIMETADATA_H
20
21#include "qgis_gui.h"
22#include "qgis_sip.h"
23
24#include <QList>
25#include <QMainWindow>
26
33
40class GUI_EXPORT QgsProviderGuiMetadata
41{
42 public:
43
47 explicit QgsProviderGuiMetadata( const QString &key );
48
50
55 virtual void registerGui( QMainWindow *widget );
56
61 virtual QList<QgsDataItemGuiProvider *> dataItemGuiProviders() SIP_FACTORY;
62
68
74
81
88
96
98 QString key() const;
99
100 private:
102 QString mKey;
103};
104
105#endif //QGSPROVIDERGUIMETADATA_H
Abstract base class for providers which affect how QgsDataItem items behave within the application GU...
Factory class for creating custom map layer property pages.
Abstract interface for project storage GUI - to be implemented by various backends and registered in ...
virtual QList< const QgsMapLayerConfigWidgetFactory * > mapLayerConfigWidgetFactories()
Returns map layer config widget factories associated with the provider.
QgsProviderGuiMetadata(const QString &key)
Constructor for provider gui metadata.
virtual QList< QgsSubsetStringEditorProvider * > subsetStringEditorProviders()
Returns subset string editor providers.
virtual void registerGui(QMainWindow *widget)
Called during GUI initialization - allows provider to do its internal initialization of GUI component...
virtual QList< QgsDataItemGuiProvider * > dataItemGuiProviders()
Returns data item gui providers.
virtual QList< QgsProjectStorageGuiProvider * > projectStorageGuiProviders()
Returns project storage gui providers.
QString key() const
Returns unique provider key.
virtual QList< QgsProviderSourceWidgetProvider * > sourceWidgetProviders()
Returns source widget providers.
virtual QList< QgsSourceSelectProvider * > sourceSelectProviders()
Returns source select providers.
virtual ~QgsProviderGuiMetadata()
An interface for providers of widgets designed to configure a data provider's source.
An interface for pages shown in a QgsDataSourceManagerDialog.
An interface for widgets which edit a subset string.
#define SIP_FACTORY
Definition qgis_sip.h:84