Skip to content

Commit 3c83acd

Browse files
author
timlinux
committedNov 7, 2008

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed
 

‎src/gui/qgisinterface.h

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,19 @@ class GUI_EXPORT QgisInterface : public QObject
6363

6464
//! Zoom to full extent of map layers
6565
virtual void zoomFull() = 0;
66-
//! Zoom to previous view extent
66+
67+
//! Zoom to previous view extent
6768
virtual void zoomToPrevious() = 0;
68-
//! Zoome to extent of the active layer
69+
70+
//! Zoom to extent of the active layer
6971
virtual void zoomToActiveLayer() = 0;
7072

7173
//! Add a vector layer
7274
virtual QgsVectorLayer* addVectorLayer( QString vectorLayerPath, QString baseName, QString providerKey ) = 0;
75+
7376
//! Add a raster layer given a raster layer file name
7477
virtual QgsRasterLayer* addRasterLayer( QString rasterLayerPath, QString baseName = QString() ) = 0;
78+
7579
//! Add a WMS layer
7680
virtual QgsRasterLayer* addRasterLayer( const QString& url, const QString& layerName, const QString& providerKey, const QStringList& layers,
7781
const QStringList& styles, const QString& format, const QString& crs ) = 0;
@@ -86,20 +90,13 @@ class GUI_EXPORT QgisInterface : public QObject
8690

8791
//! Add an icon to the plugins toolbar
8892
virtual int addToolBarIcon( QAction *qAction ) = 0;
93+
8994
//! Remove an action (icon) from the plugin toolbar
9095
virtual void removeToolBarIcon( QAction *qAction ) = 0;
96+
9197
//! Add toolbar with specified name
9298
virtual QToolBar * addToolBar( QString name ) = 0;
93-
// TODO: is this deprecated in favour of QgsContextHelp?
94-
/** Open a url in the users browser. By default the QGIS doc directory is used
95-
* as the base for the URL. To open a URL that is not relative to the installed
96-
* QGIS documentation, set useQgisDocDirectory to false.
97-
* @param url URL to open
98-
* @param useQgisDocDirectory If true, the URL will be formed by concatenating
99-
* url to the QGIS documentation directory path (<prefix>/share/doc)
100-
*/
101-
virtual void openURL( QString url, bool useQgisDocDirectory = true ) = 0;
102-
99+
103100
/** Return a pointer to the map canvas */
104101
virtual QgsMapCanvas * mapCanvas() = 0;
105102

@@ -120,10 +117,22 @@ class GUI_EXPORT QgisInterface : public QObject
120117
/** Add window to Window menu. The action title is the window title
121118
* and the action should raise, unminimize and activate the window. */
122119
virtual void addWindow( QAction *action ) = 0;
120+
123121
/** Remove window from Window menu. Calling this is necessary only for
124122
* windows which are hidden rather than deleted when closed. */
125123
virtual void removeWindow( QAction *action ) = 0;
126124

125+
// TODO: is this deprecated in favour of QgsContextHelp?
126+
/** Open a url in the users browser. By default the QGIS doc directory is used
127+
* as the base for the URL. To open a URL that is not relative to the installed
128+
* QGIS documentation, set useQgisDocDirectory to false.
129+
* @param url URL to open
130+
* @param useQgisDocDirectory If true, the URL will be formed by concatenating
131+
* url to the QGIS documentation directory path (<prefix>/share/doc)
132+
*/
133+
virtual void openURL( QString url, bool useQgisDocDirectory = true ) = 0;
134+
135+
127136
/** Accessors for inserting items into menus and toolbars.
128137
* An item can be inserted before any existing action.
129138
*/
@@ -257,7 +266,7 @@ class GUI_EXPORT QgisInterface : public QObject
257266
#ifdef WIN32
258267
# define QGISEXTERN extern "C" __declspec( dllexport )
259268
# ifdef _MSC_VER
260-
// do not warn about C bindings returing QString
269+
// do not warn about C bindings returning QString
261270
# pragma warning(disable:4190)
262271
# endif
263272
#else

0 commit comments

Comments
 (0)
Please sign in to comment.