@@ -161,52 +161,91 @@ class CORE_EXPORT QgsComposerMap : /*public QWidget, private Ui::QgsComposerMapB
161161 */
162162 bool readXML ( const QDomElement& itemElem, const QDomDocument& doc );
163163
164+ /* *Enables a coordinate grid that is shown on top of this composermap.
165+ @note this function was added in version 1.4*/
164166 void setGridEnabled ( bool enabled ) {mGridEnabled = enabled;}
165167 bool gridEnabled () const { return mGridEnabled ; }
166168
169+ /* *Sets coordinate grid style to solid or cross
170+ @note this function was added in version 1.4*/
167171 void setGridStyle ( GridStyle style ) {mGridStyle = style;}
168172 GridStyle gridStyle () const { return mGridStyle ; }
169173
174+ /* *Sets coordinate interval in x-direction for composergrid.
175+ @note this function was added in version 1.4*/
170176 void setGridIntervalX ( double interval ) { mGridIntervalX = interval;}
171177 double gridIntervalX () const { return mGridIntervalX ; }
172178
179+ /* *Sets coordinate interval in y-direction for composergrid.
180+ @note this function was added in version 1.4*/
173181 void setGridIntervalY ( double interval ) { mGridIntervalY = interval;}
174182 double gridIntervalY () const { return mGridIntervalY ; }
175183
184+ /* *Sets x-coordinate offset for composer grid
185+ @note this function was added in version 1.4*/
176186 void setGridOffsetX ( double offset ) { mGridOffsetX = offset; }
177187 double gridOffsetX () const { return mGridOffsetX ; }
178188
189+ /* *Sets y-coordinate offset for composer grid
190+ @note this function was added in version 1.4*/
179191 void setGridOffsetY ( double offset ) { mGridOffsetY = offset; }
180192 double gridOffsetY () const { return mGridOffsetY ; }
181193
194+ /* *Sets the pen to draw composer grid
195+ @note this function was added in version 1.4*/
182196 void setGridPen ( const QPen& p ) { mGridPen = p; }
183197 QPen gridPen () const { return mGridPen ; }
198+ /* *Sets with of grid pen
199+ @note this function was added in version 1.4*/
184200 void setGridPenWidth ( double w );
201+ /* *Sets the color of the grid pen
202+ @note this function was added in version 1.4*/
185203 void setGridPenColor ( const QColor& c );
186204
205+ /* *Sets font for grid annotations
206+ @note this function was added in version 1.4*/
187207 void setGridAnnotationFont ( const QFont& f ) { mGridAnnotationFont = f; }
188208 QFont gridAnnotationFont () const { return mGridAnnotationFont ; }
189209
210+ /* *Sets coordinate precision for grid annotations
211+ @note this function was added in version 1.4*/
212+ void setGridAnnotationPrecision ( int p ) {mGridAnnotationPrecision = p;}
213+ int gridAnnotationPrecision () const {return mGridAnnotationPrecision ;}
214+
215+ /* *Sets flag if grid annotation should be shown
216+ @note this function was added in version 1.4*/
190217 void setShowGridAnnotation ( bool show ) {mShowGridAnnotation = show;}
191218 bool showGridAnnotation () const {return mShowGridAnnotation ;}
192219
220+ /* *Sets position of grid annotations. Possibilities are inside or outside of the map frame
221+ @note this function was added in version 1.4*/
193222 void setGridAnnotationPosition ( GridAnnotationPosition p ) {mGridAnnotationPosition = p;}
194223 GridAnnotationPosition gridAnnotationPosition () const {return mGridAnnotationPosition ;}
195224
225+ /* *Sets distance between map frame and annotations
226+ @note this function was added in version 1.4*/
196227 void setAnnotationFrameDistance ( double d ) {mAnnotationFrameDistance = d;}
197228 double annotationFrameDistance () const {return mAnnotationFrameDistance ;}
198229
230+ /* *Sets grid annotation direction. Can be horizontal, vertical, direction of axis and horizontal and vertical
231+ @note this function was added in version 1.4*/
199232 void setGridAnnotationDirection ( GridAnnotationDirection d ) {mGridAnnotationDirection = d;}
200233 GridAnnotationDirection gridAnnotationDirection () const {return mGridAnnotationDirection ;}
201234
202- /* *In case of annotations, the bounding rectangle can be larger than the map item rectangle*/
235+ /* *In case of annotations, the bounding rectangle can be larger than the map item rectangle
236+ @note this function was added in version 1.4*/
203237 QRectF boundingRect () const ;
204- /* *Updates the bounding rect of this item. Call this function before doing any changes related to annotation out of the map rectangle*/
238+ /* *Updates the bounding rect of this item. Call this function before doing any changes related to annotation out of the map rectangle
239+ @note this function was added in version 1.4*/
205240 void updateBoundingRect ();
206241
242+ /* *Sets the rotation of the map content
243+ @note this function was added in version 1.4*/
207244 void setRotation ( double r ) { mRotation = r; }
208245 double rotation () const { return mRotation ; }
209246
247+ /* *Sets length of the cros segments (if grid style is cross)
248+ @note this function was added in version 1.4*/
210249 void setCrossLength ( double l ) {mCrossLength = l;}
211250 double crossLength () {return mCrossLength ;}
212251
@@ -295,6 +334,8 @@ class CORE_EXPORT QgsComposerMap : /*public QWidget, private Ui::QgsComposerMapB
295334 QPen mGridPen ;
296335 /* *Font for grid line annotation*/
297336 QFont mGridAnnotationFont ;
337+ /* *Digits after the dot*/
338+ int mGridAnnotationPrecision ;
298339 /* *True if coordinate values should be drawn*/
299340 bool mShowGridAnnotation ;
300341 /* *Annotation position inside or outside of map frame*/
0 commit comments