16 #ifndef QGSMAPSETTINGS_H
17 #define QGSMAPSETTINGS_H
22 #include <QStringList>
69 QSize outputSize()
const;
71 void setOutputSize(
const QSize&
size );
76 double rotation()
const;
80 void setRotation(
double degrees );
84 int outputDpi()
const;
86 void setOutputDpi(
int dpi );
90 QStringList layers()
const;
93 void setLayers(
const QStringList& layers );
97 QMap<QString, QString> layerStyleOverrides()
const;
100 void setLayerStyleOverrides(
const QMap<QString, QString>& overrides );
103 void setCrsTransformEnabled(
bool enabled );
105 bool hasCrsTransformEnabled()
const;
131 DrawEditingInfo = 0x02,
132 ForceVectorOutput = 0x04,
133 UseAdvancedEffects = 0x08,
135 UseRenderingOptimization = 0x20,
136 DrawSelection = 0x40,
139 Q_DECLARE_FLAGS( Flags, Flag )
142 void setFlags( Flags flags );
144 void setFlag( Flag flag,
bool on = true );
148 bool testFlag( Flag flag ) const;
151 void setOutputImageFormat( QImage::Format format ) { mImageFormat = format; }
156 bool hasValidSettings()
const;
161 QPolygonF visiblePolygon()
const;
163 double mapUnitsPerPixel()
const;
165 double scale()
const;
227 void readXML( QDomNode& theNode );
229 void writeXML( QDomNode& theNode, QDomDocument& theDoc );
266 void updateDerived();
269 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsMapSettings::Flags )
272 #endif // QGSMAPSETTINGS_H