Skip to content

Commit

Permalink
make Raster toolbar accessible from Python
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15664 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
alexbruy committed Apr 3, 2011
1 parent fde3434 commit 27ee102
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
21 changes: 11 additions & 10 deletions python/gui/qgisinterface.sip
@@ -1,5 +1,5 @@

/**
/**
* \class QgisInterface
* \brief Abstract base class defining interfaces exposed by QgisApp and
* made available to plugins.
Expand All @@ -24,7 +24,7 @@ class QgisInterface : QObject

/** Virtual destructor */
virtual ~QgisInterface();

/** Get pointer to legend interface
\note added in 1.4
*/
Expand All @@ -49,9 +49,9 @@ class QgisInterface : QObject
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;

//! Add a project
virtual bool addProject(QString theProject)=0;
virtual bool addProject(QString theProject)=0;
//! Start a blank project
virtual void newProject(bool thePromptToSaveFlag=false)=0;
virtual void newProject(bool thePromptToSaveFlag=false)=0;

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

/** Remove action from the Database menu
* @note added in 1.7
* @note added in 1.7
*/
virtual void removePluginDatabaseMenu(QString name, QAction* action)=0;

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

/** open attribute table
/** open attribute table
\note added in 1.7
*/
virtual void showAttributeTable( QgsVectorLayer * layer )=0;
Expand Down Expand Up @@ -180,6 +180,7 @@ class QgisInterface : QObject
virtual QToolBar *attributesToolBar() = 0;
virtual QToolBar *pluginToolBar() = 0;
virtual QToolBar *helpToolBar() = 0;
virtual QToolBar *rasterToolBar() = 0;

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

/**This signal is emitted when QGIS' initialization is complete
@note added in version 1.6*/
void initializationCompleted();
/**This signal is emitted when QGIS' initialization is complete
@note added in version 1.6*/
void initializationCompleted();

/** emitted when a project file is successfully read
@note
Expand Down
1 change: 1 addition & 0 deletions src/app/qgisappinterface.cpp
Expand Up @@ -292,6 +292,7 @@ QToolBar *QgisAppInterface::advancedDigitizeToolBar() { return qgis->advancedDig
QToolBar *QgisAppInterface::attributesToolBar() { return qgis->attributesToolBar(); }
QToolBar *QgisAppInterface::pluginToolBar() { return qgis->pluginToolBar(); }
QToolBar *QgisAppInterface::helpToolBar() { return qgis->helpToolBar(); }
QToolBar *QgisAppInterface::rasterToolBar() { return qgis->rasterToolBar(); }

//! File menu actions
QAction *QgisAppInterface::actionNewProject() { return qgis->actionNewProject(); }
Expand Down
1 change: 1 addition & 0 deletions src/app/qgisappinterface.h
Expand Up @@ -182,6 +182,7 @@ class QgisAppInterface : public QgisInterface
virtual QToolBar *attributesToolBar();
virtual QToolBar *pluginToolBar();
virtual QToolBar *helpToolBar();
virtual QToolBar *rasterToolBar();

//! File menu actions
virtual QAction *actionNewProject();
Expand Down
1 change: 1 addition & 0 deletions src/gui/qgisinterface.h
Expand Up @@ -238,6 +238,7 @@ class GUI_EXPORT QgisInterface : public QObject
virtual QToolBar *attributesToolBar() = 0;
virtual QToolBar *pluginToolBar() = 0;
virtual QToolBar *helpToolBar() = 0;
virtual QToolBar *rasterToolBar() = 0;

//! File menu actions
virtual QAction *actionNewProject() = 0;
Expand Down

0 comments on commit 27ee102

Please sign in to comment.