Merge branch 'develop' into map_projection

This commit is contained in:
Marcel Paffrath 2017-04-12 10:22:39 +02:00
commit 786879d4ad

View File

@ -1229,7 +1229,7 @@ class PropertiesDlg(QDialog):
self.tabWidget.addTab(GraphicsTab(self), "Graphics") self.tabWidget.addTab(GraphicsTab(self), "Graphics")
#self.tabWidget.addTab(LocalisationTab(self), "Loc. Tools") #self.tabWidget.addTab(LocalisationTab(self), "Loc. Tools")
self.tabWidget.addTab(LocalisationTab(self), "NonLinLoc") self.tabWidget.addTab(LocalisationTab(self), "NonLinLoc")
self.tabWidget.addTab(ParametersTab(self), "Picking Parameters") self.tabWidget.addTab(ParametersTab(self, infile), "Picking Parameters")
self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok |
QDialogButtonBox.Apply | QDialogButtonBox.Apply |
QDialogButtonBox.Close | QDialogButtonBox.Close |
@ -1480,8 +1480,6 @@ class ParametersTab(PropTab):
def __init__(self, parent=None, infile=None): def __init__(self, parent=None, infile=None):
super(ParametersTab, self).__init__(parent) super(ParametersTab, self).__init__(parent)
settings = QSettings()
self.commonpicksettings = QPushButton("Common Settings autoPyLoT") self.commonpicksettings = QPushButton("Common Settings autoPyLoT")
self.specialpicksettings = QPushButton("Special Settings autoPyLoT") self.specialpicksettings = QPushButton("Special Settings autoPyLoT")
self.CFsettings = QPushButton("Special Settings for Calculating CF's") self.CFsettings = QPushButton("Special Settings for Calculating CF's")
@ -1499,6 +1497,35 @@ class ParametersTab(PropTab):
self.setLayout(layout) self.setLayout(layout)
self.commonpicksettings.clicked.connect(lambda: self.ButtonCommonPickSettings(infile))
def ButtonCommonPickSettings(self, infile):
para = AutoPickParameter(infile)
pstart = para.get('pstart')
pstop = para.get('pstop')
sstart = para.get('sstart')
sstop = para.get('sstop')
settings = QSettings()
self.widget = QWidget()
self.widget.setWindowTitle("Common Settings autoPyLoT")
self.pCFcalcwinLabel = QLabel("P-Start ; P-Stop: ")
self.pCFcalcwinEdit = QLineEdit()
self.pCFcalcwinEdit.setText("%6.1fs %6.1fs" % (pstart, pstop))
self.sCFcalcwinLabel = QLabel("S-Start ; S-Stop: ")
self.sCFcalcwinEdit = QLineEdit()
self.sCFcalcwinEdit.setText("%6.1fs %6.1fs" % (sstart, sstop))
layout = QGridLayout()
layout.addWidget(self.pCFcalcwinLabel, 0, 0)
layout.addWidget(self.pCFcalcwinEdit, 0, 1)
layout.addWidget(self.sCFcalcwinLabel, 1, 0)
layout.addWidget(self.sCFcalcwinEdit, 1, 1)
self.widget.setLayout(layout)
self.widget.show()
class NewEventDlg(QDialog): class NewEventDlg(QDialog):
def __init__(self, parent=None, titleString="Create a new event"): def __init__(self, parent=None, titleString="Create a new event"):