2013-06-14 06:44:34 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'QDSMain.ui'
|
|
|
|
#
|
2014-03-20 16:22:33 +00:00
|
|
|
# Created: Thu Mar 20 17:08:04 2014
|
2014-02-25 13:55:29 +00:00
|
|
|
# by: PyQt4 UI code generator 4.10.3
|
2013-06-14 06:44:34 +00:00
|
|
|
#
|
|
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
|
|
|
from PyQt4 import QtCore, QtGui
|
|
|
|
|
|
|
|
try:
|
|
|
|
_fromUtf8 = QtCore.QString.fromUtf8
|
|
|
|
except AttributeError:
|
|
|
|
def _fromUtf8(s):
|
|
|
|
return s
|
|
|
|
|
|
|
|
try:
|
|
|
|
_encoding = QtGui.QApplication.UnicodeUTF8
|
|
|
|
def _translate(context, text, disambig):
|
|
|
|
return QtGui.QApplication.translate(context, text, disambig, _encoding)
|
|
|
|
except AttributeError:
|
|
|
|
def _translate(context, text, disambig):
|
|
|
|
return QtGui.QApplication.translate(context, text, disambig)
|
|
|
|
|
|
|
|
class Ui_MainWindow(object):
|
|
|
|
def setupUi(self, MainWindow):
|
|
|
|
MainWindow.setObjectName(_fromUtf8("MainWindow"))
|
2014-02-25 13:55:29 +00:00
|
|
|
MainWindow.resize(956, 699)
|
2013-06-14 06:44:34 +00:00
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
|
|
|
|
MainWindow.setSizePolicy(sizePolicy)
|
|
|
|
self.centralwidget = QtGui.QWidget(MainWindow)
|
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
|
|
|
|
self.centralwidget.setSizePolicy(sizePolicy)
|
|
|
|
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
|
2014-03-19 18:48:15 +00:00
|
|
|
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
|
|
|
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
2014-03-20 13:30:19 +00:00
|
|
|
self.splitter = QtGui.QSplitter(self.centralwidget)
|
|
|
|
self.splitter.setOrientation(QtCore.Qt.Horizontal)
|
|
|
|
self.splitter.setObjectName(_fromUtf8("splitter"))
|
|
|
|
self.pgPlotWidget_imag = PlotWidget(self.splitter)
|
2014-02-25 13:55:29 +00:00
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
|
|
|
sizePolicy.setHorizontalStretch(3)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
2014-03-20 13:30:19 +00:00
|
|
|
sizePolicy.setHeightForWidth(self.pgPlotWidget_imag.sizePolicy().hasHeightForWidth())
|
|
|
|
self.pgPlotWidget_imag.setSizePolicy(sizePolicy)
|
|
|
|
self.pgPlotWidget_imag.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.CrossCursor))
|
|
|
|
self.pgPlotWidget_imag.setObjectName(_fromUtf8("pgPlotWidget_imag"))
|
|
|
|
self.pgPlotWidget_real = PlotWidget(self.splitter)
|
|
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
|
|
|
sizePolicy.setHorizontalStretch(3)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.pgPlotWidget_real.sizePolicy().hasHeightForWidth())
|
|
|
|
self.pgPlotWidget_real.setSizePolicy(sizePolicy)
|
|
|
|
self.pgPlotWidget_real.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.CrossCursor))
|
|
|
|
self.pgPlotWidget_real.setObjectName(_fromUtf8("pgPlotWidget_real"))
|
|
|
|
self.verticalLayout.addWidget(self.splitter)
|
2013-06-14 06:44:34 +00:00
|
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
|
|
|
self.menubar = QtGui.QMenuBar(MainWindow)
|
2014-02-25 13:55:29 +00:00
|
|
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 956, 22))
|
2013-06-14 06:44:34 +00:00
|
|
|
self.menubar.setObjectName(_fromUtf8("menubar"))
|
|
|
|
MainWindow.setMenuBar(self.menubar)
|
|
|
|
self.statusbar = QtGui.QStatusBar(MainWindow)
|
|
|
|
self.statusbar.setObjectName(_fromUtf8("statusbar"))
|
|
|
|
MainWindow.setStatusBar(self.statusbar)
|
|
|
|
self.toolBar = QtGui.QToolBar(MainWindow)
|
2013-07-12 14:11:29 +00:00
|
|
|
self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
|
2013-06-14 06:44:34 +00:00
|
|
|
self.toolBar.setObjectName(_fromUtf8("toolBar"))
|
|
|
|
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
|
2014-03-19 18:48:15 +00:00
|
|
|
self.dockWidget_3 = QtGui.QDockWidget(MainWindow)
|
|
|
|
self.dockWidget_3.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)
|
|
|
|
self.dockWidget_3.setObjectName(_fromUtf8("dockWidget_3"))
|
|
|
|
self.dockWidgetContents_4 = QtGui.QWidget()
|
|
|
|
self.dockWidgetContents_4.setObjectName(_fromUtf8("dockWidgetContents_4"))
|
|
|
|
self.dockWidget_3.setWidget(self.dockWidgetContents_4)
|
|
|
|
MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget_3)
|
2013-06-14 06:44:34 +00:00
|
|
|
self.actionAdd_Peak = QtGui.QAction(MainWindow)
|
|
|
|
self.actionAdd_Peak.setCheckable(True)
|
|
|
|
icon = QtGui.QIcon()
|
|
|
|
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/add_peak.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
self.actionAdd_Peak.setIcon(icon)
|
|
|
|
self.actionAdd_Peak.setObjectName(_fromUtf8("actionAdd_Peak"))
|
|
|
|
self.actionAdd_Cond = QtGui.QAction(MainWindow)
|
|
|
|
self.actionAdd_Cond.setCheckable(True)
|
|
|
|
icon1 = QtGui.QIcon()
|
|
|
|
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/add_cond.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
self.actionAdd_Cond.setIcon(icon1)
|
|
|
|
self.actionAdd_Cond.setObjectName(_fromUtf8("actionAdd_Cond"))
|
|
|
|
self.actionSave_FitResult = QtGui.QAction(MainWindow)
|
|
|
|
icon2 = QtGui.QIcon()
|
2014-03-20 14:15:40 +00:00
|
|
|
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/save_fit.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
2013-06-14 06:44:34 +00:00
|
|
|
self.actionSave_FitResult.setIcon(icon2)
|
|
|
|
self.actionSave_FitResult.setObjectName(_fromUtf8("actionSave_FitResult"))
|
2014-03-19 21:02:26 +00:00
|
|
|
self.actionAdd_PowerLaw = QtGui.QAction(MainWindow)
|
|
|
|
self.actionAdd_PowerLaw.setCheckable(True)
|
|
|
|
self.actionAdd_PowerLaw.setIcon(icon1)
|
|
|
|
self.actionAdd_PowerLaw.setObjectName(_fromUtf8("actionAdd_PowerLaw"))
|
2014-03-19 23:35:07 +00:00
|
|
|
self.actionAdd_Eps_Infty = QtGui.QAction(MainWindow)
|
|
|
|
self.actionAdd_Eps_Infty.setCheckable(True)
|
|
|
|
icon3 = QtGui.QIcon()
|
|
|
|
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/add_eps_infty.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
self.actionAdd_Eps_Infty.setIcon(icon3)
|
|
|
|
self.actionAdd_Eps_Infty.setObjectName(_fromUtf8("actionAdd_Eps_Infty"))
|
2014-03-20 16:22:33 +00:00
|
|
|
self.actionYAFF = QtGui.QAction(MainWindow)
|
|
|
|
self.actionYAFF.setCheckable(True)
|
|
|
|
icon4 = QtGui.QIcon()
|
|
|
|
icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/add_yaff.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
|
|
self.actionYAFF.setIcon(icon4)
|
|
|
|
self.actionYAFF.setObjectName(_fromUtf8("actionYAFF"))
|
2013-06-14 06:44:34 +00:00
|
|
|
self.toolBar.addAction(self.actionAdd_Peak)
|
|
|
|
self.toolBar.addAction(self.actionAdd_Cond)
|
2014-03-19 21:02:26 +00:00
|
|
|
self.toolBar.addAction(self.actionAdd_PowerLaw)
|
2014-03-19 23:35:07 +00:00
|
|
|
self.toolBar.addAction(self.actionAdd_Eps_Infty)
|
2014-03-20 16:22:33 +00:00
|
|
|
self.toolBar.addSeparator()
|
|
|
|
self.toolBar.addAction(self.actionYAFF)
|
|
|
|
self.toolBar.addSeparator()
|
2013-06-14 06:44:34 +00:00
|
|
|
self.toolBar.addAction(self.actionSave_FitResult)
|
|
|
|
|
|
|
|
self.retranslateUi(MainWindow)
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
|
|
|
|
|
|
|
def retranslateUi(self, MainWindow):
|
|
|
|
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
|
|
|
|
self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None))
|
|
|
|
self.actionAdd_Peak.setText(_translate("MainWindow", "Add Peak", None))
|
|
|
|
self.actionAdd_Cond.setText(_translate("MainWindow", "Add Cond.", None))
|
|
|
|
self.actionAdd_Cond.setToolTip(_translate("MainWindow", "Added Conductivity Term", None))
|
|
|
|
self.actionSave_FitResult.setText(_translate("MainWindow", "Save Fit", None))
|
|
|
|
self.actionSave_FitResult.setToolTip(_translate("MainWindow", "Save Fit Result", None))
|
2014-03-19 23:35:07 +00:00
|
|
|
self.actionAdd_PowerLaw.setText(_translate("MainWindow", "Add Power Law", None))
|
2014-03-19 21:02:26 +00:00
|
|
|
self.actionAdd_PowerLaw.setToolTip(_translate("MainWindow", "Add (complex) Power Law", None))
|
2014-03-19 23:35:07 +00:00
|
|
|
self.actionAdd_Eps_Infty.setText(_translate("MainWindow", "Add e_infty", None))
|
|
|
|
self.actionAdd_Eps_Infty.setToolTip(_translate("MainWindow", "Add eps_infty", None))
|
2014-03-20 16:22:33 +00:00
|
|
|
self.actionYAFF.setText(_translate("MainWindow", "YAFF", None))
|
|
|
|
self.actionYAFF.setToolTip(_translate("MainWindow", "Fit with YAFF", None))
|
2013-06-14 06:44:34 +00:00
|
|
|
|
2014-02-25 13:55:29 +00:00
|
|
|
from pyqtgraph import PlotWidget
|
2013-06-14 06:44:34 +00:00
|
|
|
import images_rc
|