QGIS API Documentation
2.14.0-Essen
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
gui
symbology-ng
qgscolorrampcombobox.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgscolorrampcombobox.h
3
---------------------
4
begin : October 2010
5
copyright : (C) 2010 by Martin Dobias
6
email : wonder dot sk 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
#ifndef QGSCOLORRAMPCOMBOBOX_H
16
#define QGSCOLORRAMPCOMBOBOX_H
17
18
#include <QComboBox>
19
20
class
QgsStyleV2
;
21
class
QgsVectorColorRampV2
;
22
23
class
GUI_EXPORT
QgsColorRampComboBox
:
public
QComboBox
24
{
25
Q_OBJECT
26
public
:
27
explicit
QgsColorRampComboBox
(
QWidget
*parent =
nullptr
);
28
29
~
QgsColorRampComboBox
();
30
32
void
populate(
QgsStyleV2
* style );
33
35
void
setSourceColorRamp(
QgsVectorColorRampV2
* sourceRamp );
36
38
QgsVectorColorRampV2
* currentColorRamp();
39
44
bool
createNewColorRampSelected()
const
;
45
47
static
QSize
rampIconSize
;
48
50
void
setShowGradientOnly
(
bool
gradientOnly ) { mShowGradientOnly = gradientOnly; }
52
bool
showGradientOnly
()
const
{
return
mShowGradientOnly; }
53
54
public
slots:
55
void
colorRampChanged(
int
index
);
56
62
void
editSourceRamp();
63
64
signals:
65
70
void
sourceRampEdited();
71
72
protected
:
73
QgsStyleV2
*
mStyle
;
74
QgsVectorColorRampV2
*
mSourceColorRamp
;
// owns the copy
75
76
private
:
77
bool
mShowGradientOnly;
78
79
};
80
81
#endif // QGSCOLORRAMPCOMBOBOX_H
index
static unsigned index
Definition:
mersenne-twister.cpp:36
QWidget
QgsColorRampComboBox::showGradientOnly
bool showGradientOnly() const
Definition:
qgscolorrampcombobox.h:52
QgsColorRampComboBox
Definition:
qgscolorrampcombobox.h:23
QSize
QgsStyleV2
Definition:
qgsstylev2.h:66
QgsColorRampComboBox::mSourceColorRamp
QgsVectorColorRampV2 * mSourceColorRamp
Definition:
qgscolorrampcombobox.h:74
QgsColorRampComboBox::mStyle
QgsStyleV2 * mStyle
Definition:
qgscolorrampcombobox.h:73
QgsColorRampComboBox::setShowGradientOnly
void setShowGradientOnly(bool gradientOnly)
Definition:
qgscolorrampcombobox.h:50
QgsColorRampComboBox::rampIconSize
static QSize rampIconSize
Definition:
qgscolorrampcombobox.h:47
QgsVectorColorRampV2
Definition:
qgsvectorcolorrampv2.h:25
QComboBox
Generated on Sat Feb 27 2016 18:33:25 for QGIS API Documentation by
1.8.11