A color scheme which stores its colors in a gpl palette file within the "palettes" subfolder off the user's QGIS settings folder.
More...
#include <qgscolorscheme.h>
Protected Member Functions |
virtual QString | gplFilePath () |
| Returns the file path for the associated gpl palette file.
|
Detailed Description
A color scheme which stores its colors in a gpl palette file within the "palettes" subfolder off the user's QGIS settings folder.
- Note
- Added in version 2.5
Constructor & Destructor Documentation
QgsUserColorScheme::QgsUserColorScheme |
( |
const QString |
filename | ) |
|
Constructs a new user color scheme, using a specified gpl palette file.
- Parameters
-
filename | filename of gpl palette file stored in the users "palettes" folder |
QgsUserColorScheme::~QgsUserColorScheme |
( |
| ) |
|
|
virtual |
Member Function Documentation
Clones a color scheme.
- Returns
- copy of color scheme
Implements QgsColorScheme.
bool QgsUserColorScheme::erase |
( |
| ) |
|
Erases the associated gpl palette file from the users "palettes" folder.
- Returns
- true if erase was successful
QString QgsUserColorScheme::gplFilePath |
( |
| ) |
|
|
protectedvirtual |
Returns the file path for the associated gpl palette file.
- Returns
- gpl file path
Implements QgsGplColorScheme.
virtual bool QgsUserColorScheme::isEditable |
( |
| ) |
const |
|
inlinevirtual |
Returns whether the color scheme is editable.
- Returns
- true if scheme is editable
- See Also
- setColors
Reimplemented from QgsColorScheme.
QString QgsUserColorScheme::schemeName |
( |
| ) |
const |
|
virtual |
Gets the name for the color scheme.
- Returns
- color scheme name
Implements QgsColorScheme.
void QgsUserColorScheme::setName |
( |
const QString |
name | ) |
|
|
inline |
Sets the name for the scheme.
- Parameters
-
Member Data Documentation
QString QgsUserColorScheme::mFilename |
|
protected |
QString QgsUserColorScheme::mName |
|
protected |
The documentation for this class was generated from the following files: