162 lines
9.0 KiB
Python
162 lines
9.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'QDSMain.ui'
|
|
#
|
|
# Created: Tue Sep 23 21:38:12 2014
|
|
# by: PyQt4 UI code generator 4.11.1
|
|
#
|
|
# 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"))
|
|
MainWindow.resize(956, 699)
|
|
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"))
|
|
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
|
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
|
self.splitter = QtGui.QSplitter(self.centralwidget)
|
|
self.splitter.setOrientation(QtCore.Qt.Horizontal)
|
|
self.splitter.setObjectName(_fromUtf8("splitter"))
|
|
self.pgPlotWidget_imag = PlotWidget(self.splitter)
|
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
|
sizePolicy.setHorizontalStretch(3)
|
|
sizePolicy.setVerticalStretch(0)
|
|
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)
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
|
self.menubar = QtGui.QMenuBar(MainWindow)
|
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 956, 22))
|
|
self.menubar.setObjectName(_fromUtf8("menubar"))
|
|
self.menuExtras = QtGui.QMenu(self.menubar)
|
|
self.menuExtras.setObjectName(_fromUtf8("menuExtras"))
|
|
MainWindow.setMenuBar(self.menubar)
|
|
self.statusbar = QtGui.QStatusBar(MainWindow)
|
|
self.statusbar.setObjectName(_fromUtf8("statusbar"))
|
|
MainWindow.setStatusBar(self.statusbar)
|
|
self.toolBar = QtGui.QToolBar(MainWindow)
|
|
self.toolBar.setIconSize(QtCore.QSize(48, 48))
|
|
self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
|
|
self.toolBar.setObjectName(_fromUtf8("toolBar"))
|
|
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
|
|
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)
|
|
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()
|
|
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/save_fit.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
self.actionSave_FitResult.setIcon(icon2)
|
|
self.actionSave_FitResult.setObjectName(_fromUtf8("actionSave_FitResult"))
|
|
self.actionAdd_PowerLaw = QtGui.QAction(MainWindow)
|
|
self.actionAdd_PowerLaw.setCheckable(True)
|
|
self.actionAdd_PowerLaw.setIcon(icon1)
|
|
self.actionAdd_PowerLaw.setObjectName(_fromUtf8("actionAdd_PowerLaw"))
|
|
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"))
|
|
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"))
|
|
self.actionActionAbortFit = QtGui.QAction(MainWindow)
|
|
icon5 = QtGui.QIcon()
|
|
icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/qds_fit_abort.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
self.actionActionAbortFit.setIcon(icon5)
|
|
self.actionActionAbortFit.setObjectName(_fromUtf8("actionActionAbortFit"))
|
|
self.actionShow_Derivative = QtGui.QAction(MainWindow)
|
|
self.actionShow_Derivative.setObjectName(_fromUtf8("actionShow_Derivative"))
|
|
self.menuExtras.addAction(self.actionShow_Derivative)
|
|
self.menubar.addAction(self.menuExtras.menuAction())
|
|
self.toolBar.addAction(self.actionAdd_Peak)
|
|
self.toolBar.addAction(self.actionAdd_Cond)
|
|
self.toolBar.addAction(self.actionAdd_PowerLaw)
|
|
self.toolBar.addAction(self.actionAdd_Eps_Infty)
|
|
self.toolBar.addSeparator()
|
|
self.toolBar.addAction(self.actionYAFF)
|
|
self.toolBar.addSeparator()
|
|
self.toolBar.addAction(self.actionSave_FitResult)
|
|
self.toolBar.addAction(self.actionActionAbortFit)
|
|
|
|
self.retranslateUi(MainWindow)
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
|
|
|
def retranslateUi(self, MainWindow):
|
|
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
|
|
self.menuExtras.setTitle(_translate("MainWindow", "Extras", 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))
|
|
self.actionAdd_PowerLaw.setText(_translate("MainWindow", "Add Power Law", None))
|
|
self.actionAdd_PowerLaw.setToolTip(_translate("MainWindow", "Add (complex) Power Law", None))
|
|
self.actionAdd_Eps_Infty.setText(_translate("MainWindow", "Add e_infty", None))
|
|
self.actionAdd_Eps_Infty.setToolTip(_translate("MainWindow", "Add eps_infty", None))
|
|
self.actionYAFF.setText(_translate("MainWindow", "YAFF", None))
|
|
self.actionYAFF.setToolTip(_translate("MainWindow", "Fit with YAFF", None))
|
|
self.actionActionAbortFit.setText(_translate("MainWindow", "Abort Fit", None))
|
|
self.actionActionAbortFit.setShortcut(_translate("MainWindow", "Ctrl+C", None))
|
|
self.actionShow_Derivative.setText(_translate("MainWindow", "Show Derivative", None))
|
|
|
|
from pyqtgraph import PlotWidget
|
|
import images_rc
|