Skip to content

Commit

Permalink
[processing] improve in-place feature editing icon & toolbar position
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Sep 20, 2018
1 parent 3ceecbf commit 5ec3d5d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -321,6 +321,7 @@
<file>themes/default/mActionPan.svg</file>
<file>themes/default/mActionPanToSelected.svg</file>
<file>themes/default/mActionPinLabels.svg</file>
<file>themes/default/mActionProcessSelected.svg</file>
<file>themes/default/mActionProjectProperties.svg</file>
<file>themes/default/mActionPropertiesWidget.svg</file>
<file>themes/default/mActionPropertyItem.svg</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/mActionProcessSelected.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 11 additions & 7 deletions python/plugins/processing/ProcessingPlugin.py
Expand Up @@ -231,21 +231,25 @@ def initGui(self):
self.resultsDock.visibilityChanged.connect(self.resultsAction.setChecked)
self.resultsAction.toggled.connect(self.resultsDock.setUserVisible)

self.optionsAction = QAction(
QgsApplication.getThemeIcon("/mActionOptions.svg"),
self.tr('Options'), self.iface.mainWindow())
self.optionsAction.setObjectName('optionsAction')
self.optionsAction.triggered.connect(self.openProcessingOptions)
self.toolbox.processingToolbar.addAction(self.optionsAction)
self.toolbox.processingToolbar.addSeparator()

self.editSelectedAction = QAction(
QgsApplication.getThemeIcon("/mActionToggleEditing.svg"),
QgsApplication.getThemeIcon("/mActionProcessSelected.svg"),
self.tr('Edit Selected Features'), self.iface.mainWindow())
self.editSelectedAction.setObjectName('editSelectedFeatures')
self.editSelectedAction.setCheckable(True)
self.editSelectedAction.toggled.connect(self.editSelected)
self.toolbox.processingToolbar.addAction(self.editSelectedAction)

self.toolbox.processingToolbar.addSeparator()

self.optionsAction = QAction(
QgsApplication.getThemeIcon("/mActionOptions.svg"),
self.tr('Options'), self.iface.mainWindow())
self.optionsAction.setObjectName('optionsAction')
self.optionsAction.triggered.connect(self.openProcessingOptions)
self.toolbox.processingToolbar.addAction(self.optionsAction)

menuBar = self.iface.mainWindow().menuBar()
menuBar.insertMenu(
self.iface.firstRightStandardMenu().menuAction(), self.menu)
Expand Down

0 comments on commit 5ec3d5d

Please sign in to comment.