|
2 | 2 | from PyQt4.QtGui import *
|
3 | 3 | from PyQt4 import QtCore, QtGui
|
4 | 4 | from sextante.core.SextanteConfig import SextanteConfig
|
| 5 | +from sextante.core.Sextante import Sextante |
| 6 | +from sextante.core.SextanteUtils import SextanteUtils |
5 | 7 |
|
6 | 8 |
|
7 | 9 | class ConfigDialog(QtGui.QDialog):
|
@@ -32,10 +34,19 @@ def setupUi(self):
|
32 | 34 | self.tree.header().setResizeMode(1, QtGui.QHeaderView.Stretch)
|
33 | 35 | self.fillTree()
|
34 | 36 | self.verticalLayout.addWidget(self.tree)
|
| 37 | + self.horizontalLayout = QtGui.QHBoxLayout() |
| 38 | + self.horizontalLayout.setSpacing(2) |
| 39 | + self.horizontalLayout.setMargin(0) |
35 | 40 | self.buttonBox = QtGui.QDialogButtonBox()
|
36 | 41 | self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
37 | 42 | self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
|
38 |
| - self.verticalLayout.addWidget(self.buttonBox) |
| 43 | + if SextanteUtils.isWindows(): |
| 44 | + self.externalAppsButton = QtGui.QPushButton() |
| 45 | + self.externalAppsButton.setText("Configure external apps") |
| 46 | + self.horizontalLayout.addWidget(self.externalAppsButton) |
| 47 | + self.horizontalLayout.addSpacing(100) |
| 48 | + self.horizontalLayout.addWidget(self.buttonBox) |
| 49 | + self.verticalLayout.addLayout(self.horizontalLayout) |
39 | 50 | self.setLayout(self.verticalLayout)
|
40 | 51 | QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), self.okPressed)
|
41 | 52 | QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), self.cancelPressed)
|
|
0 commit comments