18 #ifndef QGSWMSPARAMETERS_H
19 #define QGSWMSPARAMETERS_H
34 struct QgsWmsParametersFilter
53 QList<QgsWmsParametersFilter>
mFilter;
58 struct QgsWmsParametersExternalLayer
192 const QVariant::Type type = QVariant::String,
193 const QVariant defaultValue = QVariant( "" ) );
212 QStringList
toStyleList( const
char delimiter = ',' ) const;
228 QList<
int>
toIntList( const
char delimiter = ',' ) const;
236 QList<
double>
toDoubleList( const
char delimiter = ',' ) const;
244 QList<QColor>
toColorList( const
char delimiter = ',' ) const;
300 QString
name() const;
351 USE_TITLE_AS_LAYERNAME,
356 Q_ENUM( DxfFormatOption )
398 QString width() const;
407 int widthAsInt() const;
413 QString height() const;
422 int heightAsInt() const;
429 QString srcWidth() const;
439 int srcWidthAsInt() const;
446 QString srcHeight() const;
456 int srcHeightAsInt() const;
468 bool versionIsValid( const QString version ) const;
474 QString bbox() const;
488 QString sldBody() const;
494 QStringList selections() const;
500 QStringList filters() const;
506 QString filterGeom() const;
512 QStringList opacities() const;
521 QList<
int> opacitiesAsInt() const;
527 QStringList allLayersNickname() const;
533 QStringList queryLayersNickname() const;
539 QStringList allStyles() const;
552 QString polygonTolerance() const;
559 QString lineTolerance() const;
566 QString pointTolerance() const;
573 int polygonToleranceAsInt() const;
580 int lineToleranceAsInt() const;
587 int pointToleranceAsInt() const;
593 QString formatAsString() const;
599 static QString formatAsString(
Format format );
612 QString infoFormatAsString() const;
618 bool infoFormatIsImage() const;
625 QString imageQuality() const;
632 int imageQualityAsInt() const;
639 QString tiled() const;
646 bool tiledAsBool() const;
653 Format infoFormat() const;
660 int infoFormatVersion() const;
726 QString rule() const;
732 QString ruleLabel() const;
740 bool ruleLabelAsBool() const;
746 QString showFeatureCount() const;
754 bool showFeatureCountAsBool() const;
760 QString featureCount() const;
768 int featureCountAsInt() const;
774 QString scale() const;
782 double scaleAsDouble() const;
788 QString boxSpace() const;
796 double boxSpaceAsDouble() const;
802 QString layerSpace() const;
810 double layerSpaceAsDouble() const;
816 QString layerTitleSpace() const;
824 double layerTitleSpaceAsDouble() const;
830 QString symbolSpace() const;
838 double symbolSpaceAsDouble() const;
844 QString iconLabelSpace() const;
852 double iconLabelSpaceAsDouble() const;
858 QString symbolWidth() const;
866 double symbolWidthAsDouble() const;
872 QString symbolHeight() const;
880 double symbolHeightAsDouble() const;
887 QFont layerFont() const;
893 QString layerFontFamily() const;
899 QString layerFontBold() const;
907 bool layerFontBoldAsBool() const;
913 QString layerFontItalic() const;
921 bool layerFontItalicAsBool() const;
927 QString layerFontSize() const;
935 double layerFontSizeAsDouble() const;
941 QString layerFontColor() const;
949 QColor layerFontColorAsColor() const;
956 QFont itemFont() const;
962 QString itemFontFamily() const;
968 QString itemFontBold() const;
976 bool itemFontBoldAsBool() const;
982 QString itemFontItalic() const;
990 bool itemFontItalicAsBool() const;
996 QString itemFontSize() const;
1004 double itemFontSizeAsDouble() const;
1010 QString itemFontColor() const;
1018 QColor itemFontColorAsColor() const;
1024 QString layerTitle() const;
1032 bool layerTitleAsBool() const;
1056 QStringList highlightGeom() const;
1070 QStringList highlightSymbol() const;
1076 QStringList highlightLabelString() const;
1082 QStringList highlightLabelColor() const;
1090 QList<QColor> highlightLabelColorAsColor() const;
1096 QStringList highlightLabelSize() const;
1104 QList<
int> highlightLabelSizeAsInt() const;
1110 QStringList highlightLabelWeight() const;
1118 QList<
int> highlightLabelWeightAsInt() const;
1124 QStringList highlightLabelFont() const;
1130 QStringList highlightLabelBufferSize() const;
1138 QList<
double> highlightLabelBufferSizeAsFloat() const;
1144 QStringList highlightLabelBufferColor() const;
1152 QList<QColor> highlightLabelBufferColorAsColor() const;
1158 QString wmsPrecision() const;
1167 int wmsPrecisionAsInt() const;
1173 QString transparent() const;
1182 bool transparentAsBool() const;
1188 QString backgroundColor() const;
1197 QColor backgroundColorAsColor() const;
1203 QString dpi() const;
1212 double dpiAsDouble() const;
1218 QString composerTemplate() const;
1236 QString externalWMSUri( const QString &
id ) const;
1242 bool withGeometry() const;
1248 bool withMapTip() const;
1254 QString wmtver() const;
1263 QString layoutParameter( const QString &
id,
bool &ok ) const;
1270 QStringList atlasPk() const;
1282 QStringList dxfLayerAttributes() const;
1288 bool dxfUseLayerTitleAsName() const;
1294 double dxfScale() const;
1306 QString dxfCodec() const;
1312 QMap<QString, QString> dimensionValues() const;
1320 bool noMText() const;
1328 bool isForce2D() const;
1331 static
bool isExternalLayer( const QString &
name );
1333 bool loadParameter( const QString &
name, const QString &value ) override;
1340 void log( const QString &msg ) const;
1348 QMap<QString, QMap<QString, QString> > mExternalWMSParameters;