Skip to content
Permalink
Browse files

[processing] improve in-place feature editing icon & toolbar position

  • Loading branch information
nirvn committed Sep 20, 2018
1 parent 3ceecbf commit 5ec3d5d99053edfbda12f07bd8955cb4be7f2d8e
@@ -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>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M2.538 2.538h12.924v12.924H2.538z" overflow="visible" fill="#fce94f" stroke="#c4a000" stroke-width="1.077" stroke-linecap="round"/><g stroke-linejoin="round" stroke-dashoffset=".5"><path d="M12.03 17.13l3.877 2.239-4.627 3.351z" overflow="visible" fill="#505050" stroke="#505050" stroke-width=".559545" stroke-linecap="round"/><path d="M18.372 6.147l3.876 2.238-6.341 10.984-3.877-2.238 6.342-10.984" overflow="visible" fill="#fce94f" stroke="#8b7617" stroke-width=".559545" stroke-linecap="round"/><path d="M19.614 7.726l-5.596 9.691" overflow="visible" opacity=".5" fill="none" stroke="#fcffff" stroke-width="1.49212"/><path d="M20.906 8.472l-5.595 9.691" overflow="visible" opacity=".25" fill-opacity=".588" stroke="#000" stroke-width="1.49212"/><path d="M20.583 8.285l-5.969 10.338" overflow="visible" opacity=".5" fill="#fce94f" stroke="#8b7617" stroke-width=".559545" stroke-linecap="round"/><path d="M12.266 21.747l3.134-2.45-1.29-.744z" overflow="visible" fill="#969696" stroke="#969696" stroke-width=".37303" stroke-linecap="square"/><path d="M18.968 7.353L12.999 17.69" overflow="visible" opacity=".5" fill="#fce94f" stroke="#8b7617" stroke-width=".559545" stroke-linecap="round"/><path d="M18.639 5.34l4.174 2.41-.812 1.408-4.175-2.41z" overflow="visible" fill="#e6e6e6" stroke="#969696" stroke-width=".37303" stroke-linecap="round"/><path d="M11.732 21.575l.613-4.041 1.29.745z" overflow="visible" fill="#e6e6e6" stroke="#e6e6e6" stroke-width=".37303" stroke-linecap="square"/></g></svg>
@@ -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)

0 comments on commit 5ec3d5d

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