Skip to content

Commit a2a66ea

Browse files
committed
doxygen fixes
1 parent a6a6177 commit a2a66ea

File tree

9 files changed

+36
-26
lines changed

9 files changed

+36
-26
lines changed

python/core/composer/qgscomposition.sip

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ class QgsComposition : QGraphicsScene
9393
void setStatusMessage( const QString & message );
9494

9595
/**Refreshes the composition when composer related options change
96-
*Note: added in version 2.1*/
96+
@note added in version 2.1
97+
*/
9798
void updateSettings();
9899

99100
void setSnapToGridEnabled( const bool b );
@@ -109,7 +110,7 @@ class QgsComposition : QGraphicsScene
109110
void setAlignmentSnap( const bool s );
110111
bool alignmentSnap() const;
111112

112-
void setSmartGuidesEnabled( bool b );
113+
void setSmartGuidesEnabled( const bool b );
113114
bool smartGuidesEnabled() const;
114115

115116
/**Removes all snap lines*/
@@ -164,11 +165,11 @@ class QgsComposition : QGraphicsScene
164165

165166
/**Sets the snap tolerance to use when automatically snapping items during movement and resizing to guides
166167
* and the edges and centers of other items.
167-
* @param t snap tolerance in pixels
168+
* @param snapTolerance snap tolerance in pixels
168169
* @see alignmentSnapTolerance
169170
* @note Added in QGIS 2.5
170171
*/
171-
void setSnapTolerance( int snapTolerance );
172+
void setSnapTolerance( const int snapTolerance );
172173

173174
/**Returns the snap tolerance to use when automatically snapping items during movement and resizing to guides
174175
* and the edges and centers of other items.
@@ -300,6 +301,11 @@ class QgsComposition : QGraphicsScene
300301
/**Add items from XML representation to the graphics scene (for project file reading, pasting items from clipboard)
301302
@param elem items parent element, e.g. \verbatim <Composer> \endverbatim or \verbatim <ComposerItemClipboard> \endverbatim
302303
@param doc xml document
304+
@param mapsToRestore for reading from project file: set preview move 'rectangle' to all maps and save the preview states to show composer maps on demand
305+
@param addUndoCommands insert AddItem commands if true (e.g. for copy/paste)
306+
@param pos item position. Optional, take position from xml if 0
307+
@param pasteInPlace whether the position should be kept but mapped to the page origin. (the page is the page under to the mouse cursor)
308+
@note parameters mapsToResotre, addUndoCommands pos and pasteInPlace not available in python bindings
303309
*/
304310
void addItemsFromXML( const QDomElement& elem, const QDomDocument& doc );
305311

@@ -308,6 +314,9 @@ class QgsComposition : QGraphicsScene
308314
/**Removes item from z list. Usually called from destructor of QgsComposerItem*/
309315
void removeItemFromZList( QgsComposerItem* item );
310316

317+
//functions to move selected items in hierarchy
318+
void raiseSelectedItems();
319+
311320
//returns true if successful
312321
bool raiseItem( QgsComposerItem* item );
313322
void lowerSelectedItems();
@@ -321,7 +330,7 @@ class QgsComposition : QGraphicsScene
321330
bool moveItemToBottom( QgsComposerItem* item );
322331

323332
//functions to find items by their position in the z list
324-
void selectNextByZOrder( ZValueDirection direction );
333+
void selectNextByZOrder( const ZValueDirection direction );
325334
QgsComposerItem* getComposerItemBelow( QgsComposerItem* item ) const;
326335
QgsComposerItem* getComposerItemAbove( QgsComposerItem* item ) const;
327336

@@ -341,7 +350,7 @@ class QgsComposition : QGraphicsScene
341350

342351
/**Sorts the zList. The only time where this function needs to be called is from QgsComposer
343352
* after reading all the items from xml file
344-
* @note deprecated, see @refreshZList instead
353+
* @deprecated use refreshZList instead
345354
*/
346355
void sortZList() /Deprecated/;
347356

@@ -428,8 +437,8 @@ class QgsComposition : QGraphicsScene
428437

429438
/**Print on a preconfigured printer
430439
* @param printer QPrinter destination
431-
* @painter QPainter source
432-
* @startNewPage set to true to begin the print on a new page
440+
* @param painter QPainter source
441+
* @param startNewPage set to true to begin the print on a new page
433442
*/
434443
void doPrint( QPrinter& printer, QPainter& painter, bool startNewPage = false );
435444

@@ -460,7 +469,7 @@ class QgsComposition : QGraphicsScene
460469
* @deprecated use QgsComposerUtils::relativeResizeRect instead
461470
*/
462471
static void relativeResizeRect( QRectF& rectToResize, const QRectF& boundsBefore, const QRectF& boundsAfter ) /Deprecated/;
463-
472+
464473
/**Returns a scaled position given a before and after range
465474
* @deprecated use QgsComposerUtils::relativePosition instead
466475
*/
@@ -495,17 +504,17 @@ class QgsComposition : QGraphicsScene
495504
* @param active true if data defined property is active, false if it is disabled
496505
* @param useExpression true if the expression should be used
497506
* @param expression expression for data defined property
498-
* @field field name if the data defined property should take its value from a field
507+
* @param field name if the data defined property should take its value from a field
499508
* @note this method was added in version 2.5
500509
*/
501510
void setDataDefinedProperty( const QgsComposerObject::DataDefinedProperty property, bool active, bool useExpression, const QString &expression, const QString &field );
502511

503-
/**Returns the items model attached to the composition
512+
/**Returns the items model attached to the composition
504513
* @returns QgsComposerModel for composition
505514
* @note this method was added in version 2.5
506515
*/
507516
QgsComposerModel * itemsModel();
508-
517+
509518
public slots:
510519
/**Casts object to the proper subclass type and calls corresponding itemAdded signal*/
511520
void sendItemAddedSignal( QgsComposerItem* item );

python/gui/qgisinterface.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ class QgisInterface : QObject
482482
/** @note added in 1.9 */
483483
virtual QAction *actionCancelAllEdits() = 0;
484484
virtual QAction *actionLayerSaveAs() = 0;
485-
/** @note deprecated in 2.4 - returns null pointer */
485+
/** @deprecated in 2.4 - returns null pointer */
486486
virtual QAction *actionLayerSelectionSaveAs() = 0 /Deprecated/;
487487
virtual QAction *actionRemoveLayer() = 0;
488488
/** @note added in 1.9 */

src/core/composer/qgscomposerarrow.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ class CORE_EXPORT QgsComposerArrow: public QgsComposerItem
123123
Q_DECL_DEPRECATED void setArrowColor( const QColor& c );
124124

125125
/**Sets the color used to draw the outline around the arrow head.
126-
* @param color arrow head outline color
127126
* @see setArrowHeadFillColor
128127
* @see arrowHeadFillColor
129128
* @note added in 2.5
@@ -139,7 +138,6 @@ class CORE_EXPORT QgsComposerArrow: public QgsComposerItem
139138
void setArrowHeadOutlineColor( const QColor& color );
140139

141140
/**Sets the color used to draw the arrow head.
142-
* @param color arrow head color
143141
* @see setArrowHeadFillColor
144142
* @see arrowHeadOutlineColor
145143
* @note added in 2.5

src/core/composer/qgscomposition.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ class CORE_EXPORT QgsComposition : public QGraphicsScene
153153
void setStatusMessage( const QString & message );
154154

155155
/**Refreshes the composition when composer related options change
156-
*Note: added in version 2.1*/
156+
@note added in version 2.1
157+
*/
157158
void updateSettings();
158159

159160
void setSnapToGridEnabled( const bool b );
@@ -362,7 +363,7 @@ class CORE_EXPORT QgsComposition : public QGraphicsScene
362363
@param addUndoCommands insert AddItem commands if true (e.g. for copy/paste)
363364
@param pos item position. Optional, take position from xml if 0
364365
@param pasteInPlace whether the position should be kept but mapped to the page origin. (the page is the page under to the mouse cursor)
365-
@note not available in python bindings
366+
@note parameters mapsToResotre, addUndoCommands pos and pasteInPlace not available in python bindings
366367
*/
367368
void addItemsFromXML( const QDomElement& elem, const QDomDocument& doc, QMap< QgsComposerMap*, int >* mapsToRestore = 0,
368369
bool addUndoCommands = false, QPointF* pos = 0, bool pasteInPlace = false );
@@ -408,7 +409,7 @@ class CORE_EXPORT QgsComposition : public QGraphicsScene
408409

409410
/**Sorts the zList. The only time where this function needs to be called is from QgsComposer
410411
* after reading all the items from xml file
411-
* @note deprecated, see @refreshZList instead
412+
* @deprecated use refreshZList instead
412413
*/
413414
Q_DECL_DEPRECATED void sortZList() {};
414415

src/core/pal/pal.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ namespace pal
230230
FeatCallBackCtx *context = ( FeatCallBackCtx* ) ctx;
231231

232232
#ifdef _EXPORT_MAP_
233-
bool svged = false; // is the feature has been written into the svg map ?
233+
bool svged = false; // is the feature has been written into the svg map?
234234
int dpi = context->layer->pal->getDpi();
235235
#endif
236236

@@ -248,15 +248,15 @@ namespace pal
248248

249249
// first do some checks whether to extract candidates or not
250250

251-
// feature has to be labeled ?
251+
// feature has to be labeled?
252252
if ( !context->layer->toLabel )
253253
return true;
254254

255255
// are we in a valid scale range for the layer?
256256
if ( !context->layer->isScaleValid( context->scale ) )
257257
return true;
258258

259-
// is the feature well defined ? TODO Check epsilon
259+
// is the feature well defined? TODO Check epsilon
260260
if ( ft_ptr->getLabelWidth() < 0.0000001 || ft_ptr->getLabelHeight() < 0.0000001 )
261261
return true;
262262

@@ -729,7 +729,7 @@ namespace pal
729729
t.start();
730730

731731
// First, extract the problem
732-
// TODO which is the minimum scale ? (> 0, >= 0, >= 1, >1 )
732+
// TODO which is the minimum scale? (> 0, >= 0, >= 1, >1 )
733733
if ( scale < 1 || ( prob = extract( nbLayers, layersName, layersFactor, bbox[0], bbox[1], bbox[2], bbox[3], scale,
734734
#ifdef _EXPORT_MAP_
735735
& svgmap

src/core/pal/pal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ namespace pal
191191
* @param lambda_max xMax bounding-box
192192
* @param phi_max yMax bounding-box
193193
* @param scale the scale (1:scale)
194-
* @param svgmap stream to wrtie the svg map (need _EXPORT_MAP_ #defined to work)
194+
* @param svgmap stream to wrtie the svg map (need _EXPORT_MAP_ defined to work)
195195
*/
196196
Problem* extract( int nbLayers, char **layersName, double *layersFactor,
197197
double lambda_min, double phi_min,

src/core/qgsexpressionfieldbuffer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,15 @@ class CORE_EXPORT QgsExpressionFieldBuffer
4646
/**
4747
* Add an expression to the buffer
4848
*
49-
* @param exp Expression to add
49+
* @param exp expression to add
50+
* @param fld field to add
5051
*/
5152
void addExpression( const QString& exp, const QgsField& fld );
5253

5354
/**
5455
* Remove an expression from the buffer
5556
*
56-
* @param exp Expression to remove
57+
* @param index index of expression to remove
5758
*/
5859
void removeExpression( int index );
5960

src/core/qgsvectorlayer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
634634
* Add a new field which is calculated by the expression specified
635635
*
636636
* @param exp The expression which calculates the field
637+
* @param fld The field to calculate
637638
*
638639
* @note added in 2.6
639640
*/

src/gui/qgisinterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class GUI_EXPORT QgisInterface : public QObject
533533
/** @note added in 1.9 */
534534
virtual QAction *actionCancelAllEdits() = 0;
535535
virtual QAction *actionLayerSaveAs() = 0;
536-
/** @note deprecated in 2.4 - returns null pointer */
536+
/** @deprecated in 2.4 - returns null pointer */
537537
#ifndef Q_MOC_RUN
538538
Q_DECL_DEPRECATED
539539
#endif

0 commit comments

Comments
 (0)