Skip to content

Commit b78e4a1

Browse files
author
alexbruy
committed
make Raster toolbar accessible from Python
git-svn-id: http://svn.osgeo.org/qgis/trunk@15664 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d12254b commit b78e4a1

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

python/gui/qgisinterface.sip

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
/**
2+
/**
33
* \class QgisInterface
44
* \brief Abstract base class defining interfaces exposed by QgisApp and
55
* made available to plugins.
@@ -24,7 +24,7 @@ class QgisInterface : QObject
2424

2525
/** Virtual destructor */
2626
virtual ~QgisInterface();
27-
27+
2828
/** Get pointer to legend interface
2929
\note added in 1.4
3030
*/
@@ -49,9 +49,9 @@ class QgisInterface : QObject
4949
virtual QgsRasterLayer* addRasterLayer(const QString& url, const QString& layerName, const QString& providerKey, const QStringList& layers, const QStringList& styles, const QString& format, const QString& crs) = 0;
5050

5151
//! Add a project
52-
virtual bool addProject(QString theProject)=0;
52+
virtual bool addProject(QString theProject)=0;
5353
//! Start a blank project
54-
virtual void newProject(bool thePromptToSaveFlag=false)=0;
54+
virtual void newProject(bool thePromptToSaveFlag=false)=0;
5555

5656
//! Get pointer to the active layer (layer selected in the legend)
5757
virtual QgsMapLayer *activeLayer()=0;
@@ -72,7 +72,7 @@ class QgisInterface : QObject
7272
* as the base for the URL. To open a URL that is not relative to the installed
7373
* QGIS documentation, set useQgisDocDirectory to false.
7474
* @param url URL to open
75-
* @param useQgisDocDirectory If true, the URL will be formed by concatenating
75+
* @param useQgisDocDirectory If true, the URL will be formed by concatenating
7676
* url to the QGIS documentation directory path (<prefix>/share/doc)
7777
* @deprecated
7878
*/
@@ -111,7 +111,7 @@ class QgisInterface : QObject
111111
virtual void addPluginToDatabaseMenu(QString name, QAction* action)=0;
112112

113113
/** Remove action from the Database menu
114-
* @note added in 1.7
114+
* @note added in 1.7
115115
*/
116116
virtual void removePluginDatabaseMenu(QString name, QAction* action)=0;
117117

@@ -134,7 +134,7 @@ class QgisInterface : QObject
134134
*/
135135
virtual void showLayerProperties( QgsMapLayer * layer )=0;
136136

137-
/** open attribute table
137+
/** open attribute table
138138
\note added in 1.7
139139
*/
140140
virtual void showAttributeTable( QgsVectorLayer * layer )=0;
@@ -180,6 +180,7 @@ class QgisInterface : QObject
180180
virtual QToolBar *attributesToolBar() = 0;
181181
virtual QToolBar *pluginToolBar() = 0;
182182
virtual QToolBar *helpToolBar() = 0;
183+
virtual QToolBar *rasterToolBar() = 0;
183184

184185
//! File menu actions
185186
virtual QAction *actionNewProject() = 0;
@@ -303,9 +304,9 @@ class QgisInterface : QObject
303304
@note added in version 1.4*/
304305
void composerWillBeRemoved( QgsComposerView* v );
305306

306-
/**This signal is emitted when QGIS' initialization is complete
307-
@note added in version 1.6*/
308-
void initializationCompleted();
307+
/**This signal is emitted when QGIS' initialization is complete
308+
@note added in version 1.6*/
309+
void initializationCompleted();
309310

310311
/** emitted when a project file is successfully read
311312
@note

src/app/qgisappinterface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ QToolBar *QgisAppInterface::advancedDigitizeToolBar() { return qgis->advancedDig
292292
QToolBar *QgisAppInterface::attributesToolBar() { return qgis->attributesToolBar(); }
293293
QToolBar *QgisAppInterface::pluginToolBar() { return qgis->pluginToolBar(); }
294294
QToolBar *QgisAppInterface::helpToolBar() { return qgis->helpToolBar(); }
295+
QToolBar *QgisAppInterface::rasterToolBar() { return qgis->rasterToolBar(); }
295296

296297
//! File menu actions
297298
QAction *QgisAppInterface::actionNewProject() { return qgis->actionNewProject(); }

src/app/qgisappinterface.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ class QgisAppInterface : public QgisInterface
182182
virtual QToolBar *attributesToolBar();
183183
virtual QToolBar *pluginToolBar();
184184
virtual QToolBar *helpToolBar();
185+
virtual QToolBar *rasterToolBar();
185186

186187
//! File menu actions
187188
virtual QAction *actionNewProject();

src/gui/qgisinterface.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ class GUI_EXPORT QgisInterface : public QObject
238238
virtual QToolBar *attributesToolBar() = 0;
239239
virtual QToolBar *pluginToolBar() = 0;
240240
virtual QToolBar *helpToolBar() = 0;
241+
virtual QToolBar *rasterToolBar() = 0;
241242

242243
//! File menu actions
243244
virtual QAction *actionNewProject() = 0;

0 commit comments

Comments
 (0)