Skip to content

Commit 8507c6e

Browse files
committed
Merge branch 'master' of github.com:qgis/Quantum-GIS
2 parents ddd8028 + 72d7a23 commit 8507c6e

11 files changed

+982
-360
lines changed

ms-windows/osgeo4w/browser.bat.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ call "%OSGEO4W_ROOT%"\apps\grass\grass-@grassversion@\etc\env.bat
66
@echo off
77
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin;%OSGEO4W_ROOT%\apps\grass\grass-@grassversion@\lib
88
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/@package@
9-
start "Quantum GIS Browser" /B "%OSGEO4W_ROOT%"\@package@-browser.exe %*
9+
start "Quantum GIS Browser" /B "%OSGEO4W_ROOT%"\bin\@package@-browser.exe %*

python/core/qgscomposermap.sip

+37-9
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class QgsComposerMap : QgsComposerItem
3636
enum GridAnnotationPosition
3737
{
3838
InsideMapFrame = 0,
39-
OutsideMapFrame
39+
OutsideMapFrame,
40+
Disabled
4041
};
4142

4243
enum GridAnnotationDirection
@@ -47,6 +48,21 @@ class QgsComposerMap : QgsComposerItem
4748
BoundaryDirection
4849
};
4950

51+
/**Enum for different frame borders*/
52+
enum Border
53+
{
54+
Left,
55+
Right,
56+
Bottom,
57+
Top
58+
};
59+
60+
enum GridFrameStyle
61+
{
62+
NoGridFrame = 0,
63+
Zebra //black / white pattern
64+
};
65+
5066
/**@deprecated*/
5167
void draw( QPainter *painter, const QgsRectangle& extent, const QSize& size, int dpi );
5268

@@ -195,20 +211,32 @@ class QgsComposerMap : QgsComposerItem
195211
void setShowGridAnnotation( bool show );
196212
bool showGridAnnotation() const;
197213

198-
/**Sets position of grid annotations. Possibilities are inside or outside of the map frame
199-
@note this function was added in version 1.4*/
200-
void setGridAnnotationPosition( GridAnnotationPosition p );
201-
GridAnnotationPosition gridAnnotationPosition() const;
214+
/**Sets position of grid annotations. Possibilities are inside / outside of the map frame or disabled
215+
@note this function was added in version 1.9*/
216+
void setGridAnnotationPosition( GridAnnotationPosition p, QgsComposerMap::Border border );
217+
/**@note: this function was added in version 1.9*/
218+
GridAnnotationPosition gridAnnotationPosition( QgsComposerMap::Border border ) const;
202219

203220
/**Sets distance between map frame and annotations
204221
@note this function was added in version 1.4*/
205222
void setAnnotationFrameDistance( double d );
206223
double annotationFrameDistance() const;
207224

208-
/**Sets grid annotation direction. Can be horizontal, vertical, direction of axis and horizontal and vertical
209-
@note this function was added in version 1.4*/
210-
void setGridAnnotationDirection( GridAnnotationDirection d );
211-
GridAnnotationDirection gridAnnotationDirection() const;
225+
/**Sets grid annotation direction. Can be horizontal or vertical
226+
@note this function was added in version 1.9*/
227+
void setGridAnnotationDirection( GridAnnotationDirection d, QgsComposerMap::Border border );
228+
/**@note: this function was added in version 1.9*/
229+
GridAnnotationDirection gridAnnotationDirection( QgsComposerMap::Border border ) const;
230+
231+
/**Set grid frame style (NoGridFrame or Zebra)
232+
@note: this function was added in version 1.9*/
233+
void setGridFrameStyle( GridFrameStyle style );
234+
GridFrameStyle gridFrameStyle() const;
235+
236+
/**Set grid frame width
237+
@note: this function was added in version 1.9*/
238+
void setGridFrameWidth( double w );
239+
double gridFrameWidth() const;
212240

213241
/**In case of annotations, the bounding rectangle can be larger than the map item rectangle
214242
@note this function was added in version 1.4*/

0 commit comments

Comments
 (0)