22 #include <QFileInfoList>    53   qDeleteAll( mColorSchemeList );
    54   mColorSchemeList.
clear();
    64   for ( ; it != schemeList.
end(); ++it )
    84   if ( !localDir.
mkpath( palettesDir ) )
    90   QFileInfoList::const_iterator infoIt = fileInfoList.constBegin();
    91   for ( ; infoIt != fileInfoList.constEnd(); ++infoIt )
    99   mColorSchemeList.
append( scheme );
   106   for ( schemeIt = mColorSchemeList.
constBegin(); schemeIt != mColorSchemeList.
constEnd(); ++schemeIt )
   108     allSchemes.
append(( *schemeIt ) );
   117   for ( schemeIt = mColorSchemeList.
constBegin(); schemeIt != mColorSchemeList.
constEnd(); ++schemeIt )
   119     if (( *schemeIt )->flags().testFlag( flag ) )
   121       matchingSchemes.
append(( *schemeIt ) );
   124   return matchingSchemes;
   129   if ( mColorSchemeList.
indexOf( scheme ) != -1 )
 void populateFromInstance()
Adds all color schemes from the global instance to this color scheme. 
 
A color scheme which contains custom colors set through QGIS app options dialog. 
 
A color scheme which stores its colors in a gpl palette file within the "palettes" subfolder off the ...
 
void addDefaultSchemes()
Adds all default color schemes to this color scheme. 
 
A color scheme which contains project specific colors set through project properties dialog...
 
Registry of color schemes. 
 
static QString qgisSettingsDirPath()
Returns the path to the settings directory in user's home dir. 
 
virtual ~QgsColorSchemeRegistry()
 
Abstract base class for color schemes. 
 
bool removeColorScheme(QgsColorScheme *scheme)
Removes all matching color schemes from the registry. 
 
int indexOf(const T &value, int from) const
 
QList< QgsColorScheme * > schemes() const
Returns all color schemes in the registry. 
 
void append(const T &value)
 
void addUserSchemes()
Creates schemes for all gpl palettes in the user's palettes folder. 
 
QFileInfoList entryInfoList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
 
int removeAll(const T &value)
 
QgsColorSchemeRegistry()
Constructor for an empty color scheme registry. 
 
void addColorScheme(QgsColorScheme *scheme)
Adds a color scheme to the registry. 
 
A color scheme which contains the most recently used colors. 
 
static QgsColorSchemeRegistry * instance()
Returns the global instance pointer, creating the object on the first call. 
 
const_iterator constEnd() const
 
const_iterator constBegin() const
 
SchemeFlag
Flags for controlling behaviour of color scheme. 
 
bool mkpath(const QString &dirPath) const