Skip to content
Permalink
Browse files

Followup c49b5b7, more fixes

  • Loading branch information
nyalldawson committed Oct 7, 2015
1 parent 911929e commit c6df096c3868363bd16cb88be08d887d8c9ea385
Showing with 602 additions and 597 deletions.
  1. +10 −10 python/core/dxf/qgsdxfexport.sip
  2. +2 −2 python/core/qgsconditionalstyle.sip
  3. +1 −1 python/core/raster/qgshuesaturationfilter.sip
  4. +2 −2 python/core/raster/qgsrasterlayer.sip
  5. +8 −8 python/core/symbology-ng/qgsfillsymbollayerv2.sip
  6. +1 −1 python/core/symbology-ng/qgslinesymbollayerv2.sip
  7. +2 −2 python/core/symbology-ng/qgsmarkersymbollayerv2.sip
  8. +3 −3 python/core/symbology-ng/qgssymbollayerv2utils.sip
  9. +2 −2 python/core/symbology-ng/qgsvectorcolorrampv2.sip
  10. +1 −1 python/gui/qgscolorbuttonv2.sip
  11. +2 −2 python/gui/qgslegendinterface.sip
  12. +3 −3 python/gui/qgspluginmanagerinterface.sip
  13. +1 −1 python/gui/qgsvectorlayertools.sip
  14. +1 −1 python/gui/symbology-ng/qgsvectorgradientcolorrampv2dialog.sip
  15. +1 −1 src/analysis/vector/qgszonalstatistics.h
  16. +2 −2 src/app/composer/qgsatlascompositionwidget.cpp
  17. +2 −2 src/app/composer/qgsatlascompositionwidget.h
  18. +4 −4 src/app/composer/qgscomposer.cpp
  19. +4 −4 src/app/composer/qgscomposer.h
  20. +1 −1 src/app/composer/qgscompositionwidget.h
  21. +2 −2 src/app/legend/qgsapplegendinterface.cpp
  22. +2 −2 src/app/legend/qgsapplegendinterface.h
  23. +1 −1 src/app/nodetool/qgsvertexentry.cpp
  24. +1 −1 src/app/nodetool/qgsvertexentry.h
  25. +2 −2 src/app/ogr/qgsogrhelperfunctions.cpp
  26. +2 −2 src/app/ogr/qgsogrhelperfunctions.h
  27. +1 −1 src/app/ogr/qgsvectorlayersaveasdialog.cpp
  28. +1 −1 src/app/ogr/qgsvectorlayersaveasdialog.h
  29. +3 −3 src/app/pluginmanager/qgsapppluginmanagerinterface.cpp
  30. +3 −3 src/app/pluginmanager/qgsapppluginmanagerinterface.h
  31. +7 −7 src/app/pluginmanager/qgspluginmanager.cpp
  32. +7 −7 src/app/pluginmanager/qgspluginmanager.h
  33. +2 −2 src/app/pluginmanager/qgspluginsortfilterproxymodel.cpp
  34. +2 −2 src/app/pluginmanager/qgspluginsortfilterproxymodel.h
  35. +59 −54 src/app/qgisapp.cpp
  36. +34 −34 src/app/qgisapp.h
  37. +2 −2 src/app/qgsabout.cpp
  38. +2 −2 src/app/qgsabout.h
  39. +1 −1 src/app/qgsaddtaborgroup.cpp
  40. +1 −1 src/app/qgsaddtaborgroup.h
  41. +1 −1 src/app/qgsapplayertreeviewmenuprovider.cpp
  42. +2 −2 src/app/qgsapplayertreeviewmenuprovider.h
  43. +3 −3 src/app/qgsattributetabledialog.cpp
  44. +3 −3 src/app/qgsattributetabledialog.h
  45. +3 −3 src/app/qgsbrowserdockwidget.cpp
  46. +3 −3 src/app/qgsbrowserdockwidget.h
  47. +1 −1 src/app/qgsclipboard.cpp
  48. +1 −1 src/app/qgsclipboard.h
  49. +1 −1 src/app/qgsconfigureshortcutsdialog.cpp
  50. +1 −1 src/app/qgsconfigureshortcutsdialog.h
  51. +8 −8 src/app/qgscustomization.cpp
  52. +8 −8 src/app/qgscustomization.h
  53. +3 −3 src/app/qgscustomprojectiondialog.cpp
  54. +3 −3 src/app/qgscustomprojectiondialog.h
  55. +2 −2 src/app/qgsfieldsproperties.cpp
  56. +2 −2 src/app/qgsfieldsproperties.h
  57. +1 −1 src/app/qgsguivectorlayertools.cpp
  58. +1 −1 src/app/qgsguivectorlayertools.h
  59. +1 −1 src/app/qgshandlebadlayers.cpp
  60. +1 −1 src/app/qgshandlebadlayers.h
  61. +2 −2 src/app/qgsidentifyresultsdialog.cpp
  62. +2 −2 src/app/qgsidentifyresultsdialog.h
  63. +2 −2 src/app/qgslabeldialog.cpp
  64. +2 −2 src/app/qgslabeldialog.h
  65. +2 −2 src/app/qgslabelinggui.cpp
  66. +2 −2 src/app/qgslabelinggui.h
  67. +2 −2 src/app/qgslabelpreview.cpp
  68. +3 −3 src/app/qgslabelpreview.h
  69. +1 −1 src/app/qgslabelpropertydialog.cpp
  70. +1 −1 src/app/qgslabelpropertydialog.h
  71. +1 −1 src/app/qgsloadstylefromdbdialog.cpp
  72. +1 −1 src/app/qgsloadstylefromdbdialog.h
  73. +1 −1 src/app/qgsmaptooldeletering.cpp
  74. +1 −1 src/app/qgsmaptooldeletering.h
  75. +1 −1 src/app/qgsmaptoolidentifyaction.cpp
  76. +1 −1 src/app/qgsmaptoolidentifyaction.h
  77. +1 −1 src/app/qgsmaptoolrotatefeature.cpp
  78. +1 −1 src/app/qgsmaptoolrotatefeature.h
  79. +2 −2 src/app/qgsnewspatialitelayerdialog.cpp
  80. +2 −2 src/app/qgsnewspatialitelayerdialog.h
  81. +6 −6 src/app/qgsoptions.cpp
  82. +6 −6 src/app/qgsoptions.h
  83. +2 −2 src/app/qgspluginmetadata.cpp
  84. +1 −1 src/app/qgspluginmetadata.h
  85. +16 −16 src/app/qgspluginregistry.cpp
  86. +16 −16 src/app/qgspluginregistry.h
  87. +1 −1 src/app/qgsrasterlayerproperties.cpp
  88. +1 −1 src/app/qgsrasterlayerproperties.h
  89. +4 −4 src/app/qgsshortcutsmanager.cpp
  90. +4 −4 src/app/qgsshortcutsmanager.h
  91. +2 −2 src/app/qgssnappingdialog.cpp
  92. +2 −2 src/app/qgssnappingdialog.h
  93. +1 −1 src/app/qgsstatisticalsummarydockwidget.cpp
  94. +1 −1 src/app/qgsstatisticalsummarydockwidget.h
  95. +3 −3 src/app/qgstip.h
  96. +2 −2 src/app/qgstipfactory.cpp
  97. +2 −2 src/app/qgstipfactory.h
  98. +2 −2 src/app/qgsvectorlayerproperties.cpp
  99. +2 −2 src/app/qgsvectorlayerproperties.h
  100. +11 −11 src/core/dxf/qgsdxfexport.cpp
  101. +11 −11 src/core/dxf/qgsdxfexport.h
  102. +2 −2 src/core/qgsconditionalstyle.h
  103. +1 −1 src/core/raster/qgshuesaturationfilter.cpp
  104. +1 −1 src/core/raster/qgshuesaturationfilter.h
  105. +2 −2 src/core/raster/qgsrasterlayer.cpp
  106. +2 −2 src/core/raster/qgsrasterlayer.h
  107. +3 −3 src/core/symbology-ng/qgsfillsymbollayerv2.cpp
  108. +8 −8 src/core/symbology-ng/qgsfillsymbollayerv2.h
  109. +1 −1 src/core/symbology-ng/qgslinesymbollayerv2.cpp
  110. +1 −1 src/core/symbology-ng/qgslinesymbollayerv2.h
  111. +1 −1 src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
  112. +2 −2 src/core/symbology-ng/qgsmarkersymbollayerv2.h
  113. +3 −3 src/core/symbology-ng/qgssymbollayerv2utils.cpp
  114. +3 −3 src/core/symbology-ng/qgssymbollayerv2utils.h
  115. +2 −2 src/core/symbology-ng/qgsvectorcolorrampv2.h
  116. +1 −1 src/gui/auth/qgsauthcertificateinfo.cpp
  117. +1 −1 src/gui/auth/qgsauthcertificateinfo.h
  118. +1 −1 src/gui/qgscolorbuttonv2.cpp
  119. +1 −1 src/gui/qgscolorbuttonv2.h
  120. +2 −2 src/gui/qgslegendinterface.h
  121. +2 −2 src/gui/qgsmaplayeractionregistry.h
  122. +2 −2 src/gui/qgsmaptoolidentify.h
  123. +3 −3 src/gui/qgspluginmanagerinterface.h
  124. +1 −1 src/gui/qgsvectorlayertools.h
  125. +1 −1 src/gui/symbology-ng/qgsvectorgradientcolorrampv2dialog.cpp
  126. +1 −1 src/gui/symbology-ng/qgsvectorgradientcolorrampv2dialog.h
  127. +5 −5 src/plugins/coordinate_capture/coordinatecapture.cpp
  128. +5 −5 src/plugins/coordinate_capture/coordinatecapture.h
  129. +1 −1 src/plugins/dxf2shp_converter/builder.cpp
  130. +1 −1 src/plugins/dxf2shp_converter/builder.h
  131. +2 −2 src/plugins/dxf2shp_converter/dxf2shpconverter.cpp
  132. +2 −2 src/plugins/dxf2shp_converter/dxf2shpconverter.h
  133. +3 −3 src/plugins/evis/databaseconnection/evisdatabaseconnection.cpp
  134. +4 −4 src/plugins/evis/databaseconnection/evisdatabaseconnection.h
  135. +1 −1 src/plugins/evis/databaseconnection/evisdatabaseconnectiongui.cpp
  136. +2 −2 src/plugins/evis/databaseconnection/evisdatabaseconnectiongui.h
  137. +9 −9 src/plugins/evis/databaseconnection/evisquerydefinition.h
  138. +4 −4 src/plugins/evis/eventbrowser/evisconfiguration.cpp
  139. +4 −4 src/plugins/evis/eventbrowser/evisconfiguration.h
  140. +1 −1 src/plugins/evis/eventbrowser/evisgenericeventbrowsergui.cpp
  141. +1 −1 src/plugins/evis/eventbrowser/evisgenericeventbrowsergui.h
  142. +2 −2 src/plugins/evis/eventbrowser/evisimagedisplaywidget.cpp
  143. +2 −2 src/plugins/evis/eventbrowser/evisimagedisplaywidget.h
  144. +1 −1 src/plugins/evis/evis.cpp
  145. +1 −1 src/plugins/evis/evis.h
  146. +1 −1 src/plugins/evis/idtool/eviseventidtool.cpp
  147. +1 −1 src/plugins/evis/idtool/eviseventidtool.h
  148. +1 −1 src/plugins/geometry_snapper/qgssnapindex.cpp
  149. +1 −1 src/plugins/geometry_snapper/qgssnapindex.h
  150. +1 −1 src/plugins/georeferencer/qgsgcplistmodel.cpp
  151. +1 −1 src/plugins/georeferencer/qgsgeorefdelegates.cpp
  152. +1 −1 src/plugins/georeferencer/qgsgeorefdelegates.h
  153. +1 −1 src/plugins/georeferencer/qgsgeorefplugin.cpp
  154. +1 −1 src/plugins/georeferencer/qgsgeorefplugin.h
  155. +6 −6 src/plugins/georeferencer/qgsgeorefplugingui.cpp
  156. +6 −6 src/plugins/georeferencer/qgsgeorefplugingui.h
  157. +1 −1 src/plugins/georeferencer/qgsmapcoordsdialog.cpp
  158. +1 −1 src/plugins/georeferencer/qgsmapcoordsdialog.h
  159. +16 −16 src/plugins/gps_importer/qgsgpsplugin.cpp
  160. +14 −14 src/plugins/gps_importer/qgsgpsplugin.h
  161. +1 −1 src/plugins/gps_importer/qgsgpsplugingui.cpp
  162. +1 −1 src/plugins/gps_importer/qgsgpsplugingui.h
  163. +1 −1 src/plugins/heatmap/heatmap.cpp
  164. +1 −1 src/plugins/heatmap/heatmap.h
  165. +1 −1 src/plugins/heatmap/heatmapgui.cpp
  166. +1 −1 src/plugins/heatmap/heatmapgui.h
  167. +1 −1 src/plugins/oracle_raster/qgsselectgeoraster_ui.cpp
  168. +1 −1 src/plugins/oracle_raster/qgsselectgeoraster_ui.h
  169. +1 −1 src/plugins/spatialquery/qgsmngprogressbar.cpp
  170. +1 −1 src/plugins/spatialquery/qgsmngprogressbar.h
  171. +3 −3 src/plugins/spatialquery/qgsspatialquerydialog.cpp
  172. +3 −3 src/plugins/spatialquery/qgsspatialquerydialog.h
  173. +1 −1 src/plugins/spatialquery/qgsspatialqueryplugin.cpp
  174. +1 −1 src/plugins/spatialquery/qgsspatialqueryplugin.h
  175. +3 −3 src/plugins/spit/qgsshapefile.cpp
  176. +3 −3 src/plugins/spit/qgsshapefile.h
  177. +1 −1 src/plugins/spit/qgsspitplugin.cpp
  178. +1 −1 src/plugins/spit/qgsspitplugin.h
  179. +1 −1 src/plugins/topology/checkDock.cpp
  180. +1 −1 src/plugins/topology/checkDock.h
  181. +1 −1 src/plugins/topology/rulesDialog.cpp
  182. +1 −1 src/plugins/topology/rulesDialog.h
  183. +17 −17 src/plugins/topology/topolError.cpp
  184. +18 −18 src/plugins/topology/topolError.h
  185. +4 −4 src/plugins/topology/topolTest.cpp
  186. +7 −7 src/plugins/topology/topolTest.h
  187. +2 −2 tests/src/core/testqgsstylev2.cpp
  188. +8 −8 tests/src/providers/grass/testqgsgrassprovider.cpp
@@ -61,39 +61,39 @@ class QgsDxfExport
void writeDouble( double d );
void writeString( const QString &s );
void writeGroup( int code, const QgsPoint &p, double z = 0.0, bool skipz = false ) /PyName=writeGroupPoint/;
void writeGroup( QColor color, int exactMatch = 62, int rgbCode = 420, int transparencyCode = 440 );
void writeGroup( const QColor& color, int exactMatch = 62, int rgbCode = 420, int transparencyCode = 440 );

//! Write handle
int writeHandle( int code = 5, int handle = 0 );

//! Draw dxf polyline
void writePolyline( const QgsPolyline &line, const QString &layer, const QString &lineStyleName, QColor color, double width = -1 );
void writePolyline( const QgsPolyline &line, const QString &layer, const QString &lineStyleName, const QColor& color, double width = -1 );

//! Draw dxf polygon (HATCH)
void writePolygon( const QgsPolygon &polygon, const QString &layer, const QString &hatchPattern, QColor color );
void writePolygon( const QgsPolygon &polygon, const QString &layer, const QString &hatchPattern, const QColor& color );

/** Draw solid
* @deprecated see writePolygon
*/
void writeSolid( const QString &layer, QColor color, const QgsPoint &pt1, const QgsPoint &pt2, const QgsPoint &pt3, const QgsPoint &pt4 ) /Deprecated/;
void writeSolid( const QString &layer, const QColor& color, const QgsPoint &pt1, const QgsPoint &pt2, const QgsPoint &pt3, const QgsPoint &pt4 ) /Deprecated/;

//! write line (as a polyline)
void writeLine( const QgsPoint &pt1, const QgsPoint &pt2, const QString &layer, const QString &lineStyleName, QColor color, double width = -1 );
void writeLine( const QgsPoint &pt1, const QgsPoint &pt2, const QString &layer, const QString &lineStyleName, const QColor& color, double width = -1 );

//! Write point
void writePoint( const QString &layer, QColor color, const QgsPoint &pt );
void writePoint( const QString &layer, const QColor& color, const QgsPoint &pt );

//! Write filled circle (as hatch)
void writeFilledCircle( const QString &layer, QColor color, const QgsPoint &pt, double radius );
void writeFilledCircle( const QString &layer, const QColor& color, const QgsPoint &pt, double radius );

//! Write circle (as polyline)
void writeCircle( const QString &layer, QColor color, const QgsPoint &pt, double radius, const QString &lineStyleName, double width );
void writeCircle( const QString &layer, const QColor& color, const QgsPoint &pt, double radius, const QString &lineStyleName, double width );

//! Write text (TEXT)
void writeText( const QString &layer, const QString &text, const QgsPoint &pt, double size, double angle, QColor color );
void writeText( const QString &layer, const QString &text, const QgsPoint &pt, double size, double angle, const QColor& color );

//! Write mtext (MTEXT)
void writeMText( const QString &layer, const QString &text, const QgsPoint &pt, double width, double angle, QColor color );
void writeMText( const QString &layer, const QString &text, const QgsPoint &pt, double width, double angle, const QColor& color );

static double mapUnitScaleFactor( double scaleDenominator, QgsSymbolV2::OutputUnit symbolUnits, QGis::UnitType mapUnits );

@@ -90,13 +90,13 @@ class QgsConditionalStyle
* @brief Set the background color for the style
* @param value QColor for background color
*/
void setBackgroundColor( QColor value );
void setBackgroundColor( const QColor& value );

/**
* @brief Set the text color for the style
* @param value QColor for text color
*/
void setTextColor( QColor value );
void setTextColor( const QColor& value );

/**
* @brief Set the font for the the style
@@ -35,7 +35,7 @@ class QgsHueSaturationFilter : QgsRasterInterface

void setColorizeOn( bool colorizeOn );
bool colorizeOn() const;
void setColorizeColor( QColor colorizeColor );
void setColorizeColor( const QColor& colorizeColor );
QColor colorizeColor() const;
void setColorizeStrength( int colorizeStrength );
int colorizeStrength() const;
@@ -180,11 +180,11 @@ class QgsRasterLayer : QgsMapLayer

/** \brief Draws a preview of the rasterlayer into a pixmap
@note - use previewAsImage() for rendering with QGIS>=2.4 */
QPixmap previewAsPixmap( QSize size, QColor bgColor = QColor( 255, 255, 255 ) ) /Deprecated/;
QPixmap previewAsPixmap( const QSize& size, const QColor& bgColor = QColor( 255, 255, 255 ) ) /Deprecated/;

/** \brief Draws a preview of the rasterlayer into a QImage
@note added in 2.4 */
QImage previewAsImage( QSize size, QColor bgColor = QColor( 255, 255, 255 ),
QImage previewAsImage( const QSize& size, const QColor& bgColor = QColor( 255, 255, 255 ),
QImage::Format format = QImage::Format_ARGB32_Premultiplied );

/**
@@ -5,9 +5,9 @@ class QgsSimpleFillSymbolLayerV2 : QgsFillSymbolLayerV2
%End

public:
QgsSimpleFillSymbolLayerV2( QColor color = DEFAULT_SIMPLEFILL_COLOR,
QgsSimpleFillSymbolLayerV2( const QColor& color = DEFAULT_SIMPLEFILL_COLOR,
Qt::BrushStyle style = DEFAULT_SIMPLEFILL_STYLE,
QColor borderColor = DEFAULT_SIMPLEFILL_BORDERCOLOR,
const QColor& borderColor = DEFAULT_SIMPLEFILL_BORDERCOLOR,
Qt::PenStyle borderStyle = DEFAULT_SIMPLEFILL_BORDERSTYLE,
double borderWidth = DEFAULT_SIMPLEFILL_BORDERWIDTH,
Qt::PenJoinStyle penJoinStyle = DEFAULT_SIMPLEFILL_JOINSTYLE
@@ -40,7 +40,7 @@ class QgsSimpleFillSymbolLayerV2 : QgsFillSymbolLayerV2
void setBrushStyle( Qt::BrushStyle style );

QColor borderColor() const;
void setBorderColor( QColor borderColor );
void setBorderColor( const QColor& borderColor );

/** Get outline color.
* @note added in 2.1 */
@@ -128,8 +128,8 @@ class QgsGradientFillSymbolLayerV2 : QgsFillSymbolLayerV2
Repeat
};

QgsGradientFillSymbolLayerV2( QColor color = DEFAULT_SIMPLEFILL_COLOR,
QColor color2 = Qt::white,
QgsGradientFillSymbolLayerV2( const QColor& color = DEFAULT_SIMPLEFILL_COLOR,
const QColor& color2 = Qt::white,
GradientColorType gradientColorType = SimpleTwoColor,
GradientType gradientType = Linear,
GradientCoordinateMode coordinateMode = Feature,
@@ -172,7 +172,7 @@ class QgsGradientFillSymbolLayerV2 : QgsFillSymbolLayerV2

/** Color for endpoint of gradient, only used if the gradient color type is set to SimpleTwoColor*/
QColor color2() const;
void setColor2( QColor color2 );
void setColor2( const QColor& color2 );

/** Coordinate mode for gradient. Controls how the gradient stops are positioned.*/
GradientCoordinateMode coordinateMode() const;
@@ -230,7 +230,7 @@ class QgsShapeburstFillSymbolLayerV2 : QgsFillSymbolLayerV2
ColorRamp
};

QgsShapeburstFillSymbolLayerV2( QColor color = DEFAULT_SIMPLEFILL_COLOR, QColor color2 = Qt::white,
QgsShapeburstFillSymbolLayerV2( const QColor& color = DEFAULT_SIMPLEFILL_COLOR, const QColor& color2 = Qt::white,
ShapeburstColorType colorType = SimpleTwoColor,
int blurRadius = 0, bool useWholeShape = true, double maxDistance = 5 );

@@ -362,7 +362,7 @@ class QgsShapeburstFillSymbolLayerV2 : QgsFillSymbolLayerV2
* @see setColorType
* @see color2
*/
void setColor2( QColor color2 );
void setColor2( const QColor& color2 );
/** Returns the color used for the endpoint of the shapeburst fill. This color is only used if the colorType is set to ShapeburstColorType::SimpleTwoColor
* @returns a QColor indicating the color of the endpoint of the gradient
* @note added in 2.3
@@ -5,7 +5,7 @@ class QgsSimpleLineSymbolLayerV2 : QgsLineSymbolLayerV2
%End

public:
QgsSimpleLineSymbolLayerV2( QColor color = DEFAULT_SIMPLELINE_COLOR,
QgsSimpleLineSymbolLayerV2( const QColor& color = DEFAULT_SIMPLELINE_COLOR,
double width = DEFAULT_SIMPLELINE_WIDTH,
Qt::PenStyle penStyle = DEFAULT_SIMPLELINE_PENSTYLE );

@@ -39,7 +39,7 @@ class QgsSimpleMarkerSymbolLayerV2 : QgsMarkerSymbolLayerV2
void setName( const QString& name );

QColor borderColor() const;
void setBorderColor( QColor color );
void setBorderColor( const QColor& color );

Qt::PenStyle outlineStyle() const;
void setOutlineStyle( Qt::PenStyle outlineStyle );
@@ -157,7 +157,7 @@ class QgsFontMarkerSymbolLayerV2 : QgsMarkerSymbolLayerV2
QgsFontMarkerSymbolLayerV2( const QString& fontFamily = DEFAULT_FONTMARKER_FONT,
QChar chr = DEFAULT_FONTMARKER_CHR,
double pointSize = DEFAULT_FONTMARKER_SIZE,
QColor color = DEFAULT_FONTMARKER_COLOR,
const QColor& color = DEFAULT_FONTMARKER_COLOR,
double angle = DEFAULT_FONTMARKER_ANGLE );

~QgsFontMarkerSymbolLayerV2();
@@ -6,7 +6,7 @@ class QgsSymbolLayerV2Utils

public:

static QString encodeColor( QColor color );
static QString encodeColor( const QColor& color );
static QColor decodeColor( const QString& str );

static QString encodeSldAlpha( int alpha );
@@ -122,14 +122,14 @@ class QgsSymbolLayerV2Utils
static bool needSvgFill( QDomElement &element );

static void fillToSld( QDomDocument &doc, QDomElement &element,
Qt::BrushStyle brushStyle, QColor color = QColor() );
Qt::BrushStyle brushStyle, const QColor& color = QColor() );
static bool fillFromSld( QDomElement &element,
Qt::BrushStyle &brushStyle, QColor &color );

//! @note not available in python bindings
/*
static void lineToSld( QDomDocument &doc, QDomElement &element,
Qt::PenStyle penStyle, QColor color, double width = -1,
Qt::PenStyle penStyle, const QColor& color, double width = -1,
const Qt::PenJoinStyle *penJoinStyle = 0, const Qt::PenCapStyle *penCapStyle = 0,
const QVector<qreal> *customDashPattern = 0, double dashOffset = 0.0 );
*/
@@ -75,8 +75,8 @@ class QgsVectorGradientColorRampV2 : QgsVectorColorRampV2

QColor color1() const;
QColor color2() const;
void setColor1( QColor color );
void setColor2( QColor color );
void setColor1( const QColor& color );
void setColor2( const QColor& color );

bool isDiscrete() const;
void setDiscrete( bool discrete );
@@ -112,7 +112,7 @@ class QgsColorButtonV2 : QToolButton
* option.
* @see defaultColor
*/
void setDefaultColor( const QColor color );
void setDefaultColor( const QColor& color );

/** Returns the default color for the button, which is shown in the button's drop down menu for the
* "default color" option.
@@ -88,11 +88,11 @@ class QgsLegendInterface : QObject

//! Add a new group
//! a parent group can be given to nest the new group in it
virtual int addGroup( QString name, bool expand = true, QTreeWidgetItem* parent = 0 ) = 0;
virtual int addGroup( const QString& name, bool expand = true, QTreeWidgetItem* parent = 0 ) = 0;

//! Add a new group
//! a parent group index has to be given to nest the new group in it
virtual int addGroup( QString name, bool expand, int parentIndex ) = 0;
virtual int addGroup( const QString& name, bool expand, int parentIndex ) = 0;

//! Remove group on index
virtual void removeGroup( int groupIndex ) = 0;
@@ -20,19 +20,19 @@ class QgsPluginManagerInterface : QObject
virtual void clearPythonPluginMetadata() = 0;

//! add a single plugin to the metadata registry
virtual void addPluginMetadata( QMap<QString, QString> metadata ) = 0;
virtual void addPluginMetadata( const QMap<QString, QString>& metadata ) = 0;

//! refresh plugin list model (and metadata browser content if necessary)
virtual void reloadModel() = 0;

//! return given plugin metadata
virtual const QMap<QString, QString> * pluginMetadata( QString key ) const = 0;
virtual const QMap<QString, QString> * pluginMetadata( const QString& key ) const = 0;

//! clear the repository listWidget
virtual void clearRepositoryList() = 0;

//! add repository to the repository listWidget
virtual void addToRepositoryList( QMap<QString, QString> repository ) = 0;
virtual void addToRepositoryList( const QMap<QString, QString>& repository ) = 0;

//! show the Plugin Manager window and optionally open tab tabIndex
virtual void showPluginManager( int tabIndex = -1 ) = 0;
@@ -13,7 +13,7 @@ class QgsVectorLayerTools
* @param defaultGeometry A default geometry to add to the feature
* @return True in case of success, False if the operation failed/was aborted
*/
virtual bool addFeature( QgsVectorLayer* layer, QgsAttributeMap defaultValues = QgsAttributeMap(), const QgsGeometry& defaultGeometry = QgsGeometry() ) const = 0;
virtual bool addFeature( QgsVectorLayer* layer, const QgsAttributeMap& defaultValues = QgsAttributeMap(), const QgsGeometry& defaultGeometry = QgsGeometry() ) const = 0;


/**
@@ -26,5 +26,5 @@ class QgsVectorGradientColorRampV2Dialog : QDialog

void updateStops();
void updatePreview();
void setStopColor( QTreeWidgetItem* item, QColor color );
void setStopColor( QTreeWidgetItem* item, const QColor& color );
};
@@ -49,7 +49,7 @@ class ANALYSIS_EXPORT QgsZonalStatistics
Q_DECLARE_FLAGS( Statistics, Statistic )

QgsZonalStatistics( QgsVectorLayer* polygonLayer, const QString& rasterFile, const QString& attributePrefix = "", int rasterBand = 1,
const QgsZonalStatistics::Statistics& stats = Statistics( Count | Sum | Mean ) );
const Statistics& stats = Statistics( Count | Sum | Mean ) );
~QgsZonalStatistics();

/** Starts the calculation
@@ -237,7 +237,7 @@ void QgsAtlasCompositionWidget::updateAtlasFeatures()
}
}

void QgsAtlasCompositionWidget::changesSortFeatureField( QString fieldName )
void QgsAtlasCompositionWidget::changesSortFeatureField( const QString& fieldName )
{
QgsAtlasComposition* atlasMap = &mComposition->atlasComposition();
if ( !atlasMap )
@@ -270,7 +270,7 @@ void QgsAtlasCompositionWidget::on_mAtlasFeatureFilterCheckBox_stateChanged( int
updateAtlasFeatures();
}

void QgsAtlasCompositionWidget::pageNameExpressionChanged( QString expression, bool valid )
void QgsAtlasCompositionWidget::pageNameExpressionChanged( const QString& expression, bool valid )
{
QgsAtlasComposition* atlasMap = &mComposition->atlasComposition();
if ( !atlasMap || ( !valid && !expression.isEmpty() ) )
@@ -43,12 +43,12 @@ class QgsAtlasCompositionWidget:
void on_mAtlasSingleFileCheckBox_stateChanged( int state );

void on_mAtlasSortFeatureCheckBox_stateChanged( int state );
void changesSortFeatureField( QString fieldName );
void changesSortFeatureField( const QString& fieldName );
void on_mAtlasSortFeatureDirectionButton_clicked();
void on_mAtlasFeatureFilterEdit_editingFinished();
void on_mAtlasFeatureFilterButton_clicked();
void on_mAtlasFeatureFilterCheckBox_stateChanged( int state );
void pageNameExpressionChanged( QString expression, bool valid );
void pageNameExpressionChanged( const QString& expression, bool valid );

private slots:
void updateGuiElements();
@@ -937,12 +937,12 @@ void QgsComposer::statusZoomCombo_zoomEntered()
mView->setZoomLevel( zoom.toDouble() / 100 );
}

void QgsComposer::updateStatusCompositionMsg( QString message )
void QgsComposer::updateStatusCompositionMsg( const QString& message )
{
mStatusCompositionLabel->setText( message );
}

void QgsComposer::updateStatusAtlasMsg( QString message )
void QgsComposer::updateStatusAtlasMsg( const QString& message )
{
mStatusAtlasLabel->setText( message );
}
@@ -3994,7 +3994,7 @@ void QgsComposer::createComposerView()
connect( tab, SIGNAL( activated() ), mActionHidePanels, SLOT( trigger() ) );
}

void QgsComposer::writeWorldFile( QString worldFileName, double a, double b, double c, double d, double e, double f ) const
void QgsComposer::writeWorldFile( const QString& worldFileName, double a, double b, double c, double d, double e, double f ) const
{
QFile worldFile( worldFileName );
if ( !worldFile.open( QIODevice::WriteOnly | QIODevice::Text ) )
@@ -4066,7 +4066,7 @@ void QgsComposer::updateAtlasMapLayerAction( QgsVectorLayer *coverageLayer )
}
}

void QgsComposer::setPrinterPageOrientation( QString orientation )
void QgsComposer::setPrinterPageOrientation( const QString& orientation )
{
if ( orientation == tr( "Landscape" ) )
{
@@ -437,10 +437,10 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
void statusZoomCombo_zoomEntered();

//! Updates status bar composition message
void updateStatusCompositionMsg( QString message );
void updateStatusCompositionMsg( const QString& message );

//! Updates status bar atlas message
void updateStatusAtlasMsg( QString message );
void updateStatusAtlasMsg( const QString& message );

private:

@@ -488,7 +488,7 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
void createComposerView();

//! Write a world file
void writeWorldFile( QString fileName, double a, double b, double c, double d, double e, double f ) const;
void writeWorldFile( const QString& fileName, double a, double b, double c, double d, double e, double f ) const;

//! Updates the grid/guide action status based on compositions grid/guide settings
void restoreGridSettings();
@@ -644,7 +644,7 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
void updateAtlasMapLayerAction( QgsVectorLayer* coverageLayer );

//! Sets the printer page orientation when the page orientation changes
void setPrinterPageOrientation( QString orientation );
void setPrinterPageOrientation( const QString& orientation );

void disablePreviewMode();
void activateGrayscalePreview();
@@ -26,7 +26,7 @@ class QgsDataDefinedButton;
*/
struct QgsCompositionPaper
{
QgsCompositionPaper( QString name, double width, double height ) {mName = name; mWidth = width; mHeight = height;}
QgsCompositionPaper( const QString& name, double width, double height ) {mName = name; mWidth = width; mHeight = height;}
QString mName;
double mWidth;
double mHeight;

0 comments on commit c6df096

Please sign in to comment.
You can’t perform that action at this time.