Skip to content

Commit 47683fc

Browse files
committed
[needs-docs] Rename Outline and Border -> Stroke
This change is being driven by: - need for consistent terminology in the api. Currently there's a confusing mix of border/outline used - need for consistent terminology in the gui - we have a mix of "border"/"outline"/"pen" - bringing QGIS into line with the standard terminology used in other graphic editing programs
1 parent 3b01646 commit 47683fc

File tree

149 files changed

+2485
-2493
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+2485
-2493
lines changed

doc/api_break.dox

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ General changes {#qgis_api_break_3_0_global}
299299
- All destCrs() methods have been renamed to destinationCrs()
300300
- All exportXML() methods have been renamed to exportXml()
301301
- All importXML() methods have been renamed to importXml()
302+
- All methods relating to "border" or "outline" color or width have been renamed to stroke
302303
- All methods taking or returning QGis::WkbType have been changed to use QgsWkbTypes::Type
303304
- All methods taking or returning QGis::GeometryType have been changed to use QgsWkbTypes::GeometryType
304305
- Network analysis library has been merged into analysis library

python/core/composer/qgscomposerarrow.sip

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,25 @@ class QgsComposerArrow: QgsComposerItem
7676
*/
7777
QString endMarker() const;
7878

79-
/** Returns the color used to draw outline around the the arrow head.
80-
* @returns arrow head outline color
79+
/** Returns the color used to draw stroke around the the arrow head.
80+
* @returns arrow head stroke color
8181
* @see arrowHeadFillColor
82-
* @see setArrowHeadOutlineColor
82+
* @see setArrowHeadStrokeColor
8383
* @note added in 2.5
8484
*/
85-
QColor arrowHeadOutlineColor() const;
85+
QColor arrowHeadStrokeColor() const;
8686

87-
/** Sets the color used to draw the outline around the arrow head.
88-
* @param color arrow head outline color
87+
/** Sets the color used to draw the stroke around the arrow head.
88+
* @param color arrow head stroke color
8989
* @see setArrowHeadFillColor
90-
* @see arrowHeadOutlineColor
90+
* @see arrowHeadStrokeColor
9191
* @note added in 2.5
9292
*/
93-
void setArrowHeadOutlineColor( const QColor& color );
93+
void setArrowHeadStrokeColor( const QColor& color );
9494

9595
/** Returns the color used to fill the arrow head.
9696
* @returns arrow head fill color
97-
* @see arrowHeadOutlineColor
97+
* @see arrowHeadStrokeColor
9898
* @see setArrowHeadFillColor
9999
* @note added in 2.5
100100
*/
@@ -103,26 +103,26 @@ class QgsComposerArrow: QgsComposerItem
103103
/** Sets the color used to fill the arrow head.
104104
* @param color arrow head fill color
105105
* @see arrowHeadFillColor
106-
* @see setArrowHeadOutlineColor
106+
* @see setArrowHeadStrokeColor
107107
* @note added in 2.5
108108
*/
109109
void setArrowHeadFillColor( const QColor& color );
110110

111-
/** Sets the pen width for the outline of the arrow head
112-
* @param width pen width for arrow head outline
113-
* @see arrowHeadOutlineWidth
114-
* @see setArrowHeadOutlineColor
111+
/** Sets the pen width for the stroke of the arrow head
112+
* @param width pen width for arrow head stroke
113+
* @see arrowHeadStrokeWidth
114+
* @see setArrowHeadStrokeColor
115115
* @note added in 2.5
116116
*/
117-
void setArrowHeadOutlineWidth( const double width );
117+
void setArrowHeadStrokeWidth( const double width );
118118

119-
/** Returns the pen width for the outline of the arrow head
120-
* @returns pen width for arrow head outline
121-
* @see setArrowHeadOutlineWidth
122-
* @see arrowHeadOutlineColor
119+
/** Returns the pen width for the stroke of the arrow head
120+
* @returns pen width for arrow head stroke
121+
* @see setArrowHeadStrokeWidth
122+
* @see arrowHeadStrokeColor
123123
* @note added in 2.5
124124
*/
125-
double arrowHeadOutlineWidth() const;
125+
double arrowHeadStrokeWidth() const;
126126

127127
/** Sets the line symbol used for drawing the line portion of the arrow
128128
* @param symbol line symbol

python/core/composer/qgscomposeritem.sip

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -268,68 +268,68 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
268268
/** Whether this item has a frame or not.
269269
* @returns true if there is a frame around this item, otherwise false.
270270
* @see setFrameEnabled
271-
* @see frameOutlineWidth
271+
* @see frameStrokeWidth
272272
* @see frameJoinStyle
273-
* @see frameOutlineColor
273+
* @see frameStrokeColor
274274
*/
275275
bool hasFrame() const;
276276

277277
/** Set whether this item has a frame drawn around it or not.
278278
* @param drawFrame draw frame
279279
* @see hasFrame
280-
* @see setFrameOutlineWidth
280+
* @see setFrameStrokeWidth
281281
* @see setFrameJoinStyle
282-
* @see setFrameOutlineColor
282+
* @see setFrameStrokeColor
283283
*/
284284
virtual void setFrameEnabled( const bool drawFrame );
285285

286-
/** Sets frame outline color
287-
* @param color new color for outline frame
286+
/** Sets frame stroke color
287+
* @param color new color for stroke frame
288288
* @note introduced in 2.6
289-
* @see frameOutlineColor
289+
* @see frameStrokeColor
290290
* @see setFrameEnabled
291291
* @see setFrameJoinStyle
292-
* @see setFrameOutlineWidth
292+
* @see setFrameStrokeWidth
293293
*/
294-
virtual void setFrameOutlineColor( const QColor& color );
294+
virtual void setFrameStrokeColor( const QColor& color );
295295

296-
/** Returns the frame's outline color. Only used if hasFrame is true.
297-
* @returns frame outline color
296+
/** Returns the frame's stroke color. Only used if hasFrame is true.
297+
* @returns frame stroke color
298298
* @note introduced in 2.6
299299
* @see hasFrame
300-
* @see setFrameOutlineColor
300+
* @see setFrameStrokeColor
301301
* @see frameJoinStyle
302-
* @see setFrameOutlineColor
302+
* @see setFrameStrokeColor
303303
*/
304-
QColor frameOutlineColor() const;
304+
QColor frameStrokeColor() const;
305305

306-
/** Sets frame outline width
307-
* @param outlineWidth new width for outline frame
306+
/** Sets frame stroke width
307+
* @param strokeWidth new width for stroke frame
308308
* @note introduced in 2.2
309-
* @see frameOutlineWidth
309+
* @see frameStrokeWidth
310310
* @see setFrameEnabled
311311
* @see setFrameJoinStyle
312-
* @see setFrameOutlineColor
312+
* @see setFrameStrokeColor
313313
*/
314-
virtual void setFrameOutlineWidth( const double outlineWidth );
314+
virtual void setFrameStrokeWidth( const double strokeWidth );
315315

316-
/** Returns the frame's outline width. Only used if hasFrame is true.
317-
* @returns Frame outline width
316+
/** Returns the frame's stroke width. Only used if hasFrame is true.
317+
* @returns Frame stroke width
318318
* @note introduced in 2.3
319319
* @see hasFrame
320-
* @see setFrameOutlineWidth
320+
* @see setFrameStrokeWidth
321321
* @see frameJoinStyle
322-
* @see frameOutlineColor
322+
* @see frameStrokeColor
323323
*/
324-
double frameOutlineWidth() const;
324+
double frameStrokeWidth() const;
325325

326326
/** Returns the join style used for drawing the item's frame
327327
* @returns Join style for outline frame
328328
* @note introduced in 2.3
329329
* @see hasFrame
330330
* @see setFrameJoinStyle
331-
* @see frameOutlineWidth
332-
* @see frameOutlineColor
331+
* @see frameStrokeWidth
332+
* @see frameStrokeColor
333333
*/
334334
Qt::PenJoinStyle frameJoinStyle() const;
335335

@@ -338,13 +338,13 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
338338
* @note introduced in 2.3
339339
* @see setFrameEnabled
340340
* @see frameJoinStyle
341-
* @see setFrameOutlineWidth
342-
* @see setFrameOutlineColor
341+
* @see setFrameStrokeWidth
342+
* @see setFrameStrokeColor
343343
*/
344344
void setFrameJoinStyle( const Qt::PenJoinStyle style );
345345

346346
/** Returns the estimated amount the item's frame bleeds outside the item's
347-
* actual rectangle. For instance, if the item has a 2mm frame outline, then
347+
* actual rectangle. For instance, if the item has a 2mm frame stroke, then
348348
* 1mm of this frame is drawn outside the item's rect. In this case the
349349
* return value will be 1.0
350350
* @note introduced in 2.2

python/core/composer/qgscomposeritemcommand.sip

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ class QgsComposerMergeCommand : QgsComposerItemCommand
7373
LegendIconSymbolSpace,
7474
LegendBoxSpace,
7575
LegendColumnSpace,
76-
LegendRasterBorderWidth,
76+
LegendRasterStrokeWidth,
7777
LegendFontColor,
78-
LegendRasterBorderColor,
78+
LegendRasterStrokeColor,
7979
//composer picture
8080
ComposerPictureRotation,
8181
ComposerPictureFillColor,
82-
ComposerPictureOutlineColor,
82+
ComposerPictureStrokeColor,
8383
// composer scalebar
8484
ScaleBarLineWidth,
8585
ScaleBarHeight,
@@ -100,15 +100,15 @@ class QgsComposerMergeCommand : QgsComposerItemCommand
100100
TableGridStrokeWidth,
101101
//composer shape
102102
ShapeCornerRadius,
103-
ShapeOutlineWidth,
103+
ShapeStrokeWidth,
104104
//composer arrow
105-
ArrowOutlineWidth,
105+
ArrowStrokeWidth,
106106
ArrowHeadFillColor,
107-
ArrowHeadOutlineColor,
107+
ArrowHeadStrokeColor,
108108
ArrowHeadWidth,
109109
//item
110-
ItemOutlineWidth,
111-
ItemOutlineColor,
110+
ItemStrokeWidth,
111+
ItemStrokeColor,
112112
ItemBackgroundColor,
113113
ItemMove,
114114
ItemRotation,

python/core/composer/qgscomposerlabel.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ class QgsComposerLabel : QgsComposerItem
120120
*/
121121
virtual void setFrameEnabled( const bool drawFrame );
122122

123-
/** Reimplemented to call prepareGeometryChange after changing outline width
123+
/** Reimplemented to call prepareGeometryChange after changing stroke width
124124
*/
125-
virtual void setFrameOutlineWidth( const double outlineWidth );
125+
virtual void setFrameStrokeWidth( const double strokeWidth );
126126

127127
public slots:
128128
void refreshExpressionContext();

python/core/composer/qgscomposerlegend.sip

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -166,60 +166,60 @@ class QgsComposerLegend : QgsComposerItem
166166
int equalColumnWidth() const;
167167
void setEqualColumnWidth( bool s );
168168

169-
/** Returns whether a border will be drawn around raster symbol items.
170-
* @see setDrawRasterBorder()
171-
* @see rasterBorderColor()
172-
* @see rasterBorderWidth()
169+
/** Returns whether a stroke will be drawn around raster symbol items.
170+
* @see setDrawRasterStroke()
171+
* @see rasterStrokeColor()
172+
* @see rasterStrokeWidth()
173173
* @note added in QGIS 2.12
174174
*/
175-
bool drawRasterBorder() const;
175+
bool drawRasterStroke() const;
176176

177-
/** Sets whether a border will be drawn around raster symbol items.
177+
/** Sets whether a stroke will be drawn around raster symbol items.
178178
* @param enabled set to true to draw borders
179-
* @see drawRasterBorder()
180-
* @see setRasterBorderColor()
181-
* @see setRasterBorderWidth()
179+
* @see drawRasterStroke()
180+
* @see setRasterStrokeColor()
181+
* @see setRasterStrokeWidth()
182182
* @note added in QGIS 2.12
183183
*/
184-
void setDrawRasterBorder( bool enabled );
184+
void setDrawRasterStroke( bool enabled );
185185

186-
/** Returns the border color for the border drawn around raster symbol items. The border is
187-
* only drawn if drawRasterBorder() is true.
188-
* @see setRasterBorderColor()
189-
* @see drawRasterBorder()
190-
* @see rasterBorderWidth()
186+
/** Returns the stroke color for the stroke drawn around raster symbol items. The stroke is
187+
* only drawn if drawRasterStroke() is true.
188+
* @see setRasterStrokeColor()
189+
* @see drawRasterStroke()
190+
* @see rasterStrokeWidth()
191191
* @note added in QGIS 2.12
192192
*/
193-
QColor rasterBorderColor() const;
194-
195-
/** Sets the border color for the border drawn around raster symbol items. The border is
196-
* only drawn if drawRasterBorder() is true.
197-
* @param color border color
198-
* @see rasterBorderColor()
199-
* @see setDrawRasterBorder()
200-
* @see setRasterBorderWidth()
193+
QColor rasterStrokeColor() const;
194+
195+
/** Sets the stroke color for the stroke drawn around raster symbol items. The stroke is
196+
* only drawn if drawRasterStroke() is true.
197+
* @param color stroke color
198+
* @see rasterStrokeColor()
199+
* @see setDrawRasterStroke()
200+
* @see setRasterStrokeWidth()
201201
* @note added in QGIS 2.12
202202
*/
203-
void setRasterBorderColor( const QColor& color );
203+
void setRasterStrokeColor( const QColor& color );
204204

205-
/** Returns the border width (in millimeters) for the border drawn around raster symbol items. The border is
206-
* only drawn if drawRasterBorder() is true.
207-
* @see setRasterBorderWidth()
208-
* @see drawRasterBorder()
209-
* @see rasterBorderColor()
205+
/** Returns the stroke width (in millimeters) for the stroke drawn around raster symbol items. The stroke is
206+
* only drawn if drawRasterStroke() is true.
207+
* @see setRasterStrokeWidth()
208+
* @see drawRasterStroke()
209+
* @see rasterStrokeColor()
210210
* @note added in QGIS 2.12
211211
*/
212-
double rasterBorderWidth() const;
213-
214-
/** Sets the border width for the border drawn around raster symbol items. The border is
215-
* only drawn if drawRasterBorder() is true.
216-
* @param width border width in millimeters
217-
* @see rasterBorderWidth()
218-
* @see setDrawRasterBorder()
219-
* @see setRasterBorderColor()
212+
double rasterStrokeWidth() const;
213+
214+
/** Sets the stroke width for the stroke drawn around raster symbol items. The stroke is
215+
* only drawn if drawRasterStroke() is true.
216+
* @param width stroke width in millimeters
217+
* @see rasterStrokeWidth()
218+
* @see setDrawRasterStroke()
219+
* @see setRasterStrokeColor()
220220
* @note added in QGIS 2.12
221221
*/
222-
void setRasterBorderWidth( double width );
222+
void setRasterStrokeWidth( double width );
223223

224224
void setComposerMap( const QgsComposerMap* map );
225225
const QgsComposerMap* composerMap() const;

python/core/composer/qgscomposermap.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ class QgsComposerMap : QgsComposerItem
236236
/** In case of annotations, the bounding rectangle can be larger than the map item rectangle */
237237
QRectF boundingRect() const;
238238

239-
/* reimplement setFrameOutlineWidth, so that updateBoundingRect() is called after setting the frame width */
240-
virtual void setFrameOutlineWidth( const double outlineWidth );
239+
/* reimplement setFrameStrokeWidth, so that updateBoundingRect() is called after setting the frame width */
240+
virtual void setFrameStrokeWidth( const double strokeWidth );
241241

242242
/** Sets rotation for the map - this does not affect the composer item shape, only the
243243
* way the map is drawn within the item

python/core/composer/qgscomposermapgrid.sip

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -730,31 +730,31 @@ class QgsComposerMapGrid : QgsComposerMapItem
730730
*/
731731
double frameWidth() const;
732732

733-
/** Sets the width of the outline drawn in the grid frame.
734-
* @param width width of grid frame outline
733+
/** Sets the width of the stroke drawn in the grid frame.
734+
* @param width width of grid frame stroke
735735
* @see framePenSize
736736
* @see setFramePenColor
737737
*/
738738
void setFramePenSize( const double width );
739739

740-
/** Retrieves the width of the outline drawn in the grid frame.
741-
* @returns width of grid frame outline
740+
/** Retrieves the width of the stroke drawn in the grid frame.
741+
* @returns width of grid frame stroke
742742
* @see setFramePenSize
743743
* @see framePenColor
744744
*/
745745
double framePenSize() const;
746746

747-
/** Sets the color of the outline drawn in the grid frame.
748-
* @param color color of grid frame outline
747+
/** Sets the color of the stroke drawn in the grid frame.
748+
* @param color color of grid frame stroke
749749
* @see framePenColor
750750
* @see setFramePenSize
751751
* @see setFrameFillColor1
752752
* @see setFrameFillColor2
753753
*/
754754
void setFramePenColor( const QColor& color );
755755

756-
/** Retrieves the color of the outline drawn in the grid frame.
757-
* @returns color of grid frame outline
756+
/** Retrieves the color of the stroke drawn in the grid frame.
757+
* @returns color of grid frame stroke
758758
* @see setFramePenColor
759759
* @see framePenSize
760760
* @see frameFillColor1

0 commit comments

Comments
 (0)