QGIS API Documentation
4.1.0-Master (5bf3c20f3c9)
Loading...
Searching...
No Matches
src
gui
qgsmaplayerconfigwidgetfactory.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaplayerconfigwidgetfactoryfactory.cpp
3
----------------------------------------
4
Date : 9.7.2013
5
Copyright : (C) 2013 Matthias Kuhn
6
Email : matthias dot kuhn at gmx dot ch
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgsmaplayerconfigwidgetfactory.h
"
17
18
QgsMapLayerConfigWidgetFactory::QgsMapLayerConfigWidgetFactory
(
const
QString &
title
,
const
QIcon &
icon
)
19
: mIcon(
icon
)
20
, mTitle(
title
)
21
{}
22
23
QString
QgsMapLayerConfigWidgetFactory::layerPropertiesPagePositionHint
()
const
24
{
25
return
QString();
26
}
27
28
bool
QgsMapLayerConfigWidgetFactory::supportsLayer
(
QgsMapLayer
*layer )
const
29
{
30
Q_UNUSED( layer )
31
return
true
;
32
}
33
34
bool
QgsMapLayerConfigWidgetFactory::supportsLayerTreeGroup
(
QgsLayerTreeGroup
* )
const
35
{
36
return
false
;
37
}
38
39
QgsMapLayerConfigWidgetFactory::ParentPage
QgsMapLayerConfigWidgetFactory::parentPage
()
const
40
{
41
return
ParentPage::NoParent
;
42
}
QgsLayerTreeGroup
Layer tree group node serves as a container for layers and further groups.
Definition
qgslayertreegroup.h:45
QgsMapLayerConfigWidgetFactory::supportsLayer
virtual bool supportsLayer(QgsMapLayer *layer) const
Check if the layer is supported for this widget.
Definition
qgsmaplayerconfigwidgetfactory.cpp:28
QgsMapLayerConfigWidgetFactory::icon
virtual QIcon icon() const
The icon that will be shown in the UI for the panel.
Definition
qgsmaplayerconfigwidgetfactory.h:60
QgsMapLayerConfigWidgetFactory::parentPage
virtual ParentPage parentPage() const
Returns the associated parent page, for factories which create sub-components of a standard page.
Definition
qgsmaplayerconfigwidgetfactory.cpp:39
QgsMapLayerConfigWidgetFactory::supportsLayerTreeGroup
virtual bool supportsLayerTreeGroup(QgsLayerTreeGroup *group) const
Check if a layer tree group is supported for this widget.
Definition
qgsmaplayerconfigwidgetfactory.cpp:34
QgsMapLayerConfigWidgetFactory::title
virtual QString title() const
The title of the panel.
Definition
qgsmaplayerconfigwidgetfactory.h:73
QgsMapLayerConfigWidgetFactory::QgsMapLayerConfigWidgetFactory
QgsMapLayerConfigWidgetFactory()=default
QgsMapLayerConfigWidgetFactory::ParentPage
ParentPage
Available parent pages, for factories which create a widget which is a sub-component of a standard pa...
Definition
qgsmaplayerconfigwidgetfactory.h:44
QgsMapLayerConfigWidgetFactory::ParentPage::NoParent
@ NoParent
Factory creates pages itself, not sub-components.
Definition
qgsmaplayerconfigwidgetfactory.h:45
QgsMapLayerConfigWidgetFactory::layerPropertiesPagePositionHint
virtual QString layerPropertiesPagePositionHint() const
Returns a tab name hinting at where this page should be inserted into the layer properties tab list.
Definition
qgsmaplayerconfigwidgetfactory.cpp:23
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
qgsmaplayerconfigwidgetfactory.h
Generated on
for QGIS API Documentation by
1.15.0