QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Enumerations
qgsstylev2.h File Reference
#include <QMap>
#include <QMultiMap>
#include <QString>
#include <sqlite3.h>
#include "qgssymbollayerv2utils.h"
Include dependency graph for qgsstylev2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QgsStyleV2

Typedefs

typedef QMap< QString,
QgsVectorColorRampV2 * > 
QgsVectorColorRampV2Map
typedef QMap< int, QString > QgsSymbolGroupMap
typedef QMultiMap< QString,
QString > 
QgsSmartConditionMap

Enumerations

enum  SymbolTable { SymbolId, SymbolName, SymbolXML, SymbolGroupId }
enum  SymgroupTable { SymgroupId, SymgroupName, SymgroupParent }
enum  TagTable { TagId, TagName }
enum  TagmapTable { TagmapTagId, TagmapSymbolId }
enum  ColorrampTable { ColorrampId, ColorrampName, ColorrampXML, ColorrampGroupId }
enum  SmartgroupTable { SmartgroupId, SmartgroupName, SmartgroupXML }

Typedef Documentation

typedef QMultiMap<QString, QString> QgsSmartConditionMap

A multimap to hold the smart group conditions as constraint and parameter pairs. Both the key and the value of the map are QString. The key is the constraint of the condition and the value is the parameter which is applied for the constraint.

The supported constraints are: tag -> symbol has the tag matching the parameter !tag -> symbol doesnot have the tag matching the parameter group -> symbol belongs to group specified by the parameter !group -> symbol doesn't belong to the group specified by the parameter name -> symbol has a part of its name matching the parameter !name -> symbol doesn't have any part of the name matching the parameter

Example Usage: QgsSmartConditionMap conditions; conditions.insert( "tag", "red" ); // adds the condition: Symbol has the tag red conditions.insert( "!name", "way" ); // add the condition: Symbol doesn't have any part of its name matching way

Note
This is a Multimap, which means it will contain multiple values for the same key.

Definition at line 56 of file qgsstylev2.h.

typedef QMap<int, QString> QgsSymbolGroupMap

Definition at line 35 of file qgsstylev2.h.

Definition at line 32 of file qgsstylev2.h.

Enumeration Type Documentation

Enumerator:
ColorrampId 
ColorrampName 
ColorrampXML 
ColorrampGroupId 

Definition at line 63 of file qgsstylev2.h.

Enumerator:
SmartgroupId 
SmartgroupName 
SmartgroupXML 

Definition at line 64 of file qgsstylev2.h.

Enumerator:
SymbolId 
SymbolName 
SymbolXML 
SymbolGroupId 

Definition at line 59 of file qgsstylev2.h.

Enumerator:
SymgroupId 
SymgroupName 
SymgroupParent 

Definition at line 60 of file qgsstylev2.h.

Enumerator:
TagmapTagId 
TagmapSymbolId 

Definition at line 62 of file qgsstylev2.h.

enum TagTable
Enumerator:
TagId 
TagName 

Definition at line 61 of file qgsstylev2.h.