QString QgsDataDefinedButton::gradientCoordModeDesc() { return trString() + QString( "[<b>feature</b>|<b>viewport</b>]" ); }
QString QgsDataDefinedButton::verticalAnchorDesc() { return trString() + QString( "[<b>top</b>|<b>center</b>|<b>bottom</b>]" ); }
QString QgsDataDefinedButton::gradientTypeDesc() { return trString() + QString( "[<b>linear</b>|<b>radial</b>|<b>conical</b>]" ); }
QString QgsDataDefinedButton::paperOrientationDesc() { return trString() + QString( "[<b>portrait</b>|<b>landscape</b>]" ); }
QString QgsDataDefinedButton::horizontalAnchorDesc() { return trString() + QString( "[<b>left</b>|<b>center</b>|<b>right</b>]" ); }
QString QgsDataDefinedButton::markerStyleDesc() { return trString() + QLatin1String( "[<b>circle</b>|<b>rectangle</b>|<b>diamond</b>|<b>cross</b>|<b>triangle" "</b>|<b>right_half_triangle</b>|<b>left_half_triangle</b>|<b>semi_circle</b>]" ); }
QString QgsDataDefinedButton::svgPathDesc() { return trString() + QString( "[<b>filepath</b>] as<br>" "<b>''</b>=empty|absolute|search-paths-relative|<br>" "project-relative|URL" ); }
QString QgsDataDefinedButton::textVertAlignDesc() { return trString() + "[<b>Bottom</b>|<b>Middle</b>|<b>Top</b>]"; }
QString QgsDataDefinedButton::penJoinStyleDesc() { return trString() + "[<b>bevel</b>|<b>miter</b>|<b>round</b>]"; }
QString QgsDataDefinedButton::unitsMmMuPercentDesc() { return trString() + "[<b>MM</b>|<b>MapUnit</b>|<b>Percent</b>]"; }
QString QgsDataDefinedButton::textHorzAlignDesc() { return trString() + "[<b>Left</b>|<b>Center</b>|<b>Right</b>]"; }
QString QgsDataDefinedButton::markerStyleDesc() { return trString() + QLatin1String( "[<b>circle</b>|<b>rectangle</b>|<b>cross</b>|<b>triangle</b>]" ); }
QString QgsDataDefinedButton::fillStyleDesc() { return trString() + QLatin1String( "[<b>solid</b>|<b>horizontal</b>|<b>vertical</b>|<b>cross</b>|<b>b_diagonal</b>|<b>f_diagonal" "</b>|<b>diagonal_x</b>|<b>dense1</b>|<b>dense2</b>|<b>dense3</b>|<b>dense4</b>|<b>dense5" "</b>|<b>dense6</b>|<b>dense7</b>|<b>no]" ); }
QString QgsDataDefinedButton::capStyleDesc() { return trString() + QLatin1String( "[<b>square</b>|<b>flat</b>|<b>round</b>]" ); }
QString QgsDataDefinedButton::gradientSpreadDesc() { return trString() + QString( "[<b>pad</b>|<b>repeat</b>|<b>reflect</b>]" ); }
QString QgsDataDefinedButton::blendModesDesc() { return trString() + QString( "[<b>Normal</b>|<b>Lighten</b>|<b>Screen</b>|<b>Dodge</b>|<br>" "<b>Addition</b>|<b>Darken</b>|<b>Multiply</b>|<b>Burn</b>|<b>Overlay</b>|<br>" "<b>SoftLight</b>|<b>HardLight</b>|<b>Difference</b>|<b>Subtract</b>]" ); }
QString QgsDataDefinedButton::lineStyleDesc() { return trString() + QString( "[<b>no</b>|<b>solid</b>|<b>dash</b>|<b>dot</b>|<b>dash dot</b>|<b>dash dot dot</b>]" ); }
QgsPropertyDefinition::QgsPropertyDefinition( const QString &name, const QString &description, QgsPropertyDefinition::StandardPropertyTemplate type, const QString &origin, const QString &comment ) : mName( name ) , mDescription( description ) , mStandardType( type ) , mOrigin( origin ) , mComment( comment ) { switch ( mStandardType ) { case Boolean: mTypes = DataTypeBoolean; mHelpText = QObject::tr( "bool [<b>1</b>=True|<b>0</b>=False]" ); break; case Integer: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "int [<= 0 =>]" ); break; case IntegerPositive: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "int [>= 0]" ); break; case IntegerPositiveGreaterZero: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "int [>= 1]" ); break; case Double: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "double [<= 0.0 =>]" ); break; case DoublePositive: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "double [>= 0.0]" ); break; case Double0To1: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "double [0.0-1.0]" ); break; case Rotation: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "double [0.0-360.0]" ); break; case String: mTypes = DataTypeString; mHelpText = QObject::tr( "string of variable length" ); break; case Opacity: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "int [0-100]" ); break; case RenderUnits: mTypes = DataTypeString; mHelpText = trString() + QStringLiteral( "[<b>MM</b>|<b>MapUnit</b>|<b>Pixel</b>|<b>Point</b>]" ); break; case ColorWithAlpha: mTypes = DataTypeString; mHelpText = QObject::tr( "string [<b>r,g,b,a</b>] as int 0-255 or #<b>RRGGBBAA</b> as hex or <b>color</b> as color's name" ); break; case ColorNoAlpha: mTypes = DataTypeString; mHelpText = QObject::tr( "string [<b>r,g,b</b>] as int 0-255 or #<b>RRGGBB</b> as hex or <b>color</b> as color's name" ); break; case PenJoinStyle: mTypes = DataTypeString; mHelpText = trString() + QStringLiteral( "[<b>bevel</b>|<b>miter</b>|<b>round</b>]" ); break; case BlendMode: mTypes = DataTypeString; mHelpText = trString() + QStringLiteral( "[<b>Normal</b>|<b>Lighten</b>|<b>Screen</b>|<b>Dodge</b>|<br>" "<b>Addition</b>|<b>Darken</b>|<b>Multiply</b>|<b>Burn</b>|<b>Overlay</b>|<br>" "<b>SoftLight</b>|<b>HardLight</b>|<b>Difference</b>|<b>Subtract</b>]" ); break; case Point: mTypes = DataTypeString; mHelpText = QObject::tr( "double coord [<b>X,Y</b>]" ); break; case Size: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "double [>= 0.0]" ); break; case Size2D: mTypes = DataTypeString; mHelpText = QObject::tr( "double size [<b>width,height</b>]" ); break; case LineStyle: mTypes = DataTypeString; mHelpText = trString() + QStringLiteral( "[<b>no</b>|<b>solid</b>|<b>dash</b>|<b>dot</b>|<b>dash dot</b>|<b>dash dot dot</b>]" ); break; case StrokeWidth: mTypes = DataTypeNumeric; mHelpText = QObject::tr( "double [>= 0.0]" ); break; case FillStyle: mTypes = DataTypeString; mHelpText = trString() + QStringLiteral( "[<b>solid</b>|<b>horizontal</b>|<b>vertical</b>|<b>cross</b>|<b>b_diagonal</b>|<b>f_diagonal" "</b>|<b>diagonal_x</b>|<b>dense1</b>|<b>dense2</b>|<b>dense3</b>|<b>dense4</b>|<b>dense5" "</b>|<b>dense6</b>|<b>dense7</b>|<b>no]" ); break; case CapStyle: mTypes = DataTypeString; mHelpText = trString() + QStringLiteral( "[<b>square</b>|<b>flat</b>|<b>round</b>]" ); break; case HorizontalAnchor: mTypes = DataTypeString; mHelpText = trString() + QStringLiteral( "[<b>left</b>|<b>center</b>|<b>right</b>]" ); break; case VerticalAnchor: mTypes = DataTypeString; mHelpText = trString() + QStringLiteral( "[<b>top</b>|<b>center</b>|<b>bottom</b>]" ); break; case SvgPath: mTypes = DataTypeString; mHelpText = trString() + QStringLiteral( "[<b>filepath</b>] as<br>" "<b>''</b>=empty|absolute|search-paths-relative|<br>" "project-relative|URL" ); break; case Offset: mTypes = DataTypeString; mHelpText = QObject::tr( "double offset [<b>x,y</b>]" ); break; case Custom: mTypes = DataTypeString; } }