QGIS API Documentation
4.3.0-Master (16649ce5cc6)
Loading...
Searching...
No Matches
src
gui
qgsmaterialsettingswidget.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaterialsettingswidget.cpp
3
--------------------------------------
4
Date : July 2020
5
Copyright : (C) 2020 by Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
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 "
qgsmaterialsettingswidget.h
"
17
18
#include "moc_qgsmaterialsettingswidget.cpp"
19
20
QgsMaterialSettingsWidget::QgsMaterialSettingsWidget
( QWidget *parent )
21
:
QgsPanelWidget
( parent )
22
{}
23
24
void
QgsMaterialSettingsWidget::setTechnique
(
Qgis::MaterialRenderingTechnique
technique )
25
{
26
mTechnique
= technique;
27
updateWidgetVisibility
();
28
}
29
30
31
void
QgsMaterialSettingsWidget::setMode
(
Qgis::MaterialWidgetMode
mode )
32
{
33
mMode
= mode;
34
updateWidgetVisibility
();
35
}
Qgis::MaterialWidgetMode
MaterialWidgetMode
Modes for material settings widgets.
Definition
qgis.h:4451
Qgis::MaterialRenderingTechnique
MaterialRenderingTechnique
Material rendering techniques.
Definition
qgis.h:4433
QgsMaterialSettingsWidget::mTechnique
Qgis::MaterialRenderingTechnique mTechnique
Definition
qgsmaterialsettingswidget.h:92
QgsMaterialSettingsWidget::QgsMaterialSettingsWidget
QgsMaterialSettingsWidget(QWidget *parent)
Constructor for QgsMaterialSettingsWidget with the specified parent widget.
Definition
qgsmaterialsettingswidget.cpp:20
QgsMaterialSettingsWidget::updateWidgetVisibility
virtual void updateWidgetVisibility()=0
Updates the visibility of widget controls to reflect the current technique and style.
QgsMaterialSettingsWidget::setMode
void setMode(Qgis::MaterialWidgetMode mode)
Sets the widget mode, which controls whether the compact or full set of material settings controls ar...
Definition
qgsmaterialsettingswidget.cpp:31
QgsMaterialSettingsWidget::mMode
Qgis::MaterialWidgetMode mMode
Definition
qgsmaterialsettingswidget.h:91
QgsMaterialSettingsWidget::setTechnique
void setTechnique(Qgis::MaterialRenderingTechnique technique)
Sets the rendering technique which will be used for the symbol.
Definition
qgsmaterialsettingswidget.cpp:24
QgsPanelWidget::QgsPanelWidget
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Definition
qgspanelwidget.cpp:30
qgsmaterialsettingswidget.h
Generated on
for QGIS API Documentation by
1.15.0