Skip to content
Permalink
Browse files

move "Add Layer..." buttons to submenu

  • Loading branch information
alexbruy committed Sep 6, 2014
1 parent bd3f593 commit 62a2308abade7bfa12c11592400b0cc8f4ab1943
Showing with 29 additions and 12 deletions.
  1. +3 −0 python/gui/qgisinterface.sip
  2. +2 −0 src/app/qgisapp.h
  3. +1 −0 src/app/qgisappinterface.cpp
  4. +2 −0 src/app/qgisappinterface.h
  5. +3 −0 src/gui/qgisinterface.h
  6. +18 −12 src/ui/qgisapp.ui
@@ -337,6 +337,9 @@ class QgisInterface : QObject
/** \note added in 2.0
*/
virtual QMenu *newLayerMenu() = 0;
/** \note added in 2.5
*/
virtual QMenu *addLayerMenu() = 0;
virtual QMenu *settingsMenu() = 0;
virtual QMenu *pluginMenu() = 0;
virtual QMenu *rasterMenu() = 0;
@@ -394,6 +394,8 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
QMenu *layerMenu() { return mLayerMenu; }
//! @note added in 2.0
QMenu *newLayerMenu() { return mNewLayerMenu; }
//! @note added in 2.5
QMenu *addLayerMenu() { return mAddLayerMenu; }
QMenu *settingsMenu() { return mSettingsMenu; }
QMenu *pluginMenu() { return mPluginMenu; }
QMenu *databaseMenu() { return mDatabaseMenu; }
@@ -449,6 +449,7 @@ QMenu *QgisAppInterface::editMenu() { return qgis->editMenu(); }
QMenu *QgisAppInterface::viewMenu() { return qgis->viewMenu(); }
QMenu *QgisAppInterface::layerMenu() { return qgis->layerMenu(); }
QMenu *QgisAppInterface::newLayerMenu() { return qgis->newLayerMenu(); }
QMenu *QgisAppInterface::addLayerMenu() { return qgis->addLayerMenu(); }
QMenu *QgisAppInterface::settingsMenu() { return qgis->settingsMenu(); }
QMenu *QgisAppInterface::pluginMenu() { return qgis->pluginMenu(); }
QMenu *QgisAppInterface::rasterMenu() { return qgis->rasterMenu(); }
@@ -298,6 +298,8 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
virtual QMenu *layerMenu();
//! @note added in 2.0
virtual QMenu *newLayerMenu();
//! @note added in 2.5
virtual QMenu *addLayerMenu();
virtual QMenu *settingsMenu();
virtual QMenu *pluginMenu();
virtual QMenu *rasterMenu();
@@ -389,6 +389,9 @@ class GUI_EXPORT QgisInterface : public QObject
/** \note added in 2.0
*/
virtual QMenu *newLayerMenu() = 0;
/** \note added in 2.5
*/
virtual QMenu *addLayerMenu() = 0;
virtual QMenu *settingsMenu() = 0;
virtual QMenu *pluginMenu() = 0;
virtual QMenu *rasterMenu() = 0;
@@ -17,7 +17,7 @@
<x>0</x>
<y>0</y>
<width>1050</width>
<height>25</height>
<height>24</height>
</rect>
</property>
<widget class="QMenu" name="mProjectMenu">
@@ -132,20 +132,26 @@
<addaction name="mActionNewVectorLayer"/>
<addaction name="mActionNewSpatiaLiteLayer"/>
</widget>
<widget class="QMenu" name="mAddLayerMenu">
<property name="title">
<string>Add</string>
</property>
<addaction name="mActionAddOgrLayer"/>
<addaction name="mActionAddRasterLayer"/>
<addaction name="mActionAddPgLayer"/>
<addaction name="mActionAddSpatiaLiteLayer"/>
<addaction name="mActionAddMssqlLayer"/>
<addaction name="mActionAddOracleLayer"/>
<addaction name="mActionAddWmsLayer"/>
<addaction name="mActionAddLayerSeparator"/>
<addaction name="mActionAddWcsLayer"/>
<addaction name="mActionAddWfsLayer"/>
<addaction name="mActionAddDelimitedText"/>
</widget>
<addaction name="mNewLayerMenu"/>
<addaction name="mAddLayerMenu"/>
<addaction name="mActionEmbedLayers"/>
<addaction name="mActionAddLayerDefinition"/>
<addaction name="mActionAddOgrLayer"/>
<addaction name="mActionAddRasterLayer"/>
<addaction name="mActionAddPgLayer"/>
<addaction name="mActionAddSpatiaLiteLayer"/>
<addaction name="mActionAddMssqlLayer"/>
<addaction name="mActionAddOracleLayer"/>
<addaction name="mActionAddWmsLayer"/>
<addaction name="mActionAddLayerSeparator"/>
<addaction name="mActionAddWcsLayer"/>
<addaction name="mActionAddWfsLayer"/>
<addaction name="mActionAddDelimitedText"/>
<addaction name="separator"/>
<addaction name="mActionCopyStyle"/>
<addaction name="mActionPasteStyle"/>

0 comments on commit 62a2308

Please sign in to comment.
You can’t perform that action at this time.