nmreval/src/gui_qt/_py/basewindow.py

654 lines
39 KiB
Python
Raw Normal View History

2022-03-08 09:27:40 +00:00
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'src/resources/_ui/basewindow.ui'
2022-03-08 09:27:40 +00:00
#
# Created by: PyQt5 UI code generator 5.15.9
2022-03-08 09:27:40 +00:00
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
2022-03-08 09:27:40 +00:00
2022-03-08 09:27:40 +00:00
from PyQt5 import QtCore, QtGui, QtWidgets
2022-03-08 09:27:40 +00:00
class Ui_BaseWindow(object):
def setupUi(self, BaseWindow):
BaseWindow.setObjectName("BaseWindow")
BaseWindow.resize(1386, 827)
2022-03-08 09:27:40 +00:00
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/logo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
BaseWindow.setWindowIcon(icon)
BaseWindow.setDockOptions(QtWidgets.QMainWindow.AllowTabbedDocks|QtWidgets.QMainWindow.AnimatedDocks|QtWidgets.QMainWindow.ForceTabbedDocks|QtWidgets.QMainWindow.VerticalTabs)
self.centralwidget = QtWidgets.QWidget(BaseWindow)
self.centralwidget.setObjectName("centralwidget")
2022-04-03 14:42:44 +00:00
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setContentsMargins(3, 3, 3, 3)
self.horizontalLayout.setSpacing(3)
self.horizontalLayout.setObjectName("horizontalLayout")
2022-03-08 09:27:40 +00:00
self.splitter = QtWidgets.QSplitter(self.centralwidget)
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setObjectName("splitter")
self.tabWidget = QtWidgets.QTabWidget(self.splitter)
self.tabWidget.setTabPosition(QtWidgets.QTabWidget.West)
self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
self.tabWidget.setElideMode(QtCore.Qt.ElideRight)
self.tabWidget.setTabsClosable(True)
self.tabWidget.setMovable(False)
self.tabWidget.setTabBarAutoHide(True)
self.tabWidget.setObjectName("tabWidget")
self.datawidget = DataWidget()
self.datawidget.setObjectName("datawidget")
self.tabWidget.addTab(self.datawidget, "")
self.valuewidget = ValueEditWidget()
self.valuewidget.setObjectName("valuewidget")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/value_dock"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabWidget.addTab(self.valuewidget, icon1, "")
self.fit_dialog = QFitDialog()
self.fit_dialog.setObjectName("fit_dialog")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/fit_dock"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabWidget.addTab(self.fit_dialog, icon2, "")
self.editsignalwidget = EditSignalWidget()
self.editsignalwidget.setObjectName("editsignalwidget")
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/signal_dock"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabWidget.addTab(self.editsignalwidget, icon3, "")
self.ptsselectwidget = PointSelectWidget()
self.ptsselectwidget.setObjectName("ptsselectwidget")
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/peakpick_dock"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabWidget.addTab(self.ptsselectwidget, icon4, "")
self.t1tauwidget = QT1Widget()
self.t1tauwidget.setObjectName("t1tauwidget")
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/eval_t1_dock"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.tabWidget.addTab(self.t1tauwidget, icon5, "")
self.drawingswidget = DrawingsWidget()
self.drawingswidget.setObjectName("drawingswidget")
self.tabWidget.addTab(self.drawingswidget, "")
self.integralwidget = IntegralWidget()
self.integralwidget.setObjectName("integralwidget")
self.tabWidget.addTab(self.integralwidget, "")
self.area = MdiAreaTile(self.splitter)
2022-03-08 09:27:40 +00:00
self.area.setObjectName("area")
2022-04-03 14:42:44 +00:00
self.horizontalLayout.addWidget(self.splitter)
2022-03-08 09:27:40 +00:00
BaseWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(BaseWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1386, 20))
2022-03-08 09:27:40 +00:00
self.menubar.setObjectName("menubar")
self.menuFile = QtWidgets.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile")
self.menuSave = QtWidgets.QMenu(self.menuFile)
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/Daleks.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.menuSave.setIcon(icon6)
self.menuSave.setSeparatorsCollapsible(True)
self.menuSave.setObjectName("menuSave")
self.menuData = QtWidgets.QMenu(self.menubar)
self.menuData.setObjectName("menuData")
self.menuHelp = QtWidgets.QMenu(self.menubar)
self.menuHelp.setObjectName("menuHelp")
self.menuExtra = QtWidgets.QMenu(self.menubar)
self.menuExtra.setObjectName("menuExtra")
self.menuNormalize = QtWidgets.QMenu(self.menuExtra)
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":/normal.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.menuNormalize.setIcon(icon7)
self.menuNormalize.setObjectName("menuNormalize")
self.menuFit = QtWidgets.QMenu(self.menubar)
self.menuFit.setObjectName("menuFit")
self.menuMethod = QtWidgets.QMenu(self.menuFit)
self.menuMethod.setObjectName("menuMethod")
self.menuLimits = QtWidgets.QMenu(self.menuFit)
self.menuLimits.setObjectName("menuLimits")
self.menuOptions = QtWidgets.QMenu(self.menubar)
self.menuOptions.setObjectName("menuOptions")
self.menuWindow = QtWidgets.QMenu(self.menubar)
self.menuWindow.setObjectName("menuWindow")
self.menuView = QtWidgets.QMenu(self.menuWindow)
self.menuView.setObjectName("menuView")
self.menuNMR = QtWidgets.QMenu(self.menubar)
self.menuNMR.setObjectName("menuNMR")
self.menuBDS = QtWidgets.QMenu(self.menubar)
self.menuBDS.setObjectName("menuBDS")
self.menuSpectrum = QtWidgets.QMenu(self.menubar)
self.menuSpectrum.setObjectName("menuSpectrum")
self.menuStuff = QtWidgets.QMenu(self.menubar)
self.menuStuff.setTitle("")
self.menuStuff.setObjectName("menuStuff")
self.menuDSC = QtWidgets.QMenu(self.menubar)
self.menuDSC.setObjectName("menuDSC")
2022-03-08 09:27:40 +00:00
BaseWindow.setMenuBar(self.menubar)
self.toolBar = QtWidgets.QToolBar(BaseWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.toolBar.sizePolicy().hasHeightForWidth())
self.toolBar.setSizePolicy(sizePolicy)
self.toolBar.setAllowedAreas(QtCore.Qt.AllToolBarAreas)
self.toolBar.setIconSize(QtCore.QSize(24, 24))
self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
self.toolBar.setObjectName("toolBar")
BaseWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
self.toolbar_edit = QtWidgets.QToolBar(BaseWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.toolbar_edit.sizePolicy().hasHeightForWidth())
self.toolbar_edit.setSizePolicy(sizePolicy)
self.toolbar_edit.setIconSize(QtCore.QSize(24, 24))
self.toolbar_edit.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
self.toolbar_edit.setObjectName("toolbar_edit")
BaseWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolbar_edit)
self.statusBar = QtWidgets.QStatusBar(BaseWindow)
self.statusBar.setObjectName("statusBar")
BaseWindow.setStatusBar(self.statusBar)
self.toolBar_nmr = QtWidgets.QToolBar(BaseWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.toolBar_nmr.sizePolicy().hasHeightForWidth())
self.toolBar_nmr.setSizePolicy(sizePolicy)
self.toolBar_nmr.setIconSize(QtCore.QSize(24, 24))
self.toolBar_nmr.setObjectName("toolBar_nmr")
BaseWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_nmr)
self.toolBar_fit = QtWidgets.QToolBar(BaseWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.toolBar_fit.sizePolicy().hasHeightForWidth())
self.toolBar_fit.setSizePolicy(sizePolicy)
self.toolBar_fit.setIconSize(QtCore.QSize(24, 24))
self.toolBar_fit.setObjectName("toolBar_fit")
BaseWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_fit)
self.toolBar_spectrum = QtWidgets.QToolBar(BaseWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.toolBar_spectrum.sizePolicy().hasHeightForWidth())
self.toolBar_spectrum.setSizePolicy(sizePolicy)
self.toolBar_spectrum.setIconSize(QtCore.QSize(24, 24))
self.toolBar_spectrum.setObjectName("toolBar_spectrum")
BaseWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_spectrum)
self.toolBar_data = QtWidgets.QToolBar(BaseWindow)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.toolBar_data.sizePolicy().hasHeightForWidth())
self.toolBar_data.setSizePolicy(sizePolicy)
self.toolBar_data.setIconSize(QtCore.QSize(24, 24))
self.toolBar_data.setObjectName("toolBar_data")
BaseWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_data)
self.action_close = QtWidgets.QAction(BaseWindow)
self.action_close.setObjectName("action_close")
self.actionExportGraphic = QtWidgets.QAction(BaseWindow)
self.actionExportGraphic.setObjectName("actionExportGraphic")
self.action_open = QtWidgets.QAction(BaseWindow)
self.action_open.setObjectName("action_open")
self.actionExportData = QtWidgets.QAction(BaseWindow)
self.actionExportData.setObjectName("actionExportData")
self.action_calc = QtWidgets.QAction(BaseWindow)
self.action_calc.setObjectName("action_calc")
self.action_delete_sets = QtWidgets.QAction(BaseWindow)
self.action_delete_sets.setObjectName("action_delete_sets")
self.action_save_fit_parameter = QtWidgets.QAction(BaseWindow)
self.action_save_fit_parameter.setObjectName("action_save_fit_parameter")
self.action_sort_pts = QtWidgets.QAction(BaseWindow)
self.action_sort_pts.setObjectName("action_sort_pts")
self.action_reset = QtWidgets.QAction(BaseWindow)
self.action_reset.setObjectName("action_reset")
self.actionDocumentation = QtWidgets.QAction(BaseWindow)
self.actionDocumentation.setObjectName("actionDocumentation")
self.action_FitWidget = QtWidgets.QAction(BaseWindow)
self.action_FitWidget.setObjectName("action_FitWidget")
self.action_norm_max = QtWidgets.QAction(BaseWindow)
self.action_norm_max.setObjectName("action_norm_max")
self.action_norm_first = QtWidgets.QAction(BaseWindow)
self.action_norm_first.setObjectName("action_norm_first")
self.action_norm_area = QtWidgets.QAction(BaseWindow)
self.action_norm_area.setObjectName("action_norm_area")
self.action_norm_max_abs = QtWidgets.QAction(BaseWindow)
self.action_norm_max_abs.setObjectName("action_norm_max_abs")
self.action_norm_last = QtWidgets.QAction(BaseWindow)
self.action_norm_last.setObjectName("action_norm_last")
self.actionSave = QtWidgets.QAction(BaseWindow)
self.actionSave.setObjectName("actionSave")
self.actiontoolbar_display = QtWidgets.QAction(BaseWindow)
self.actiontoolbar_display.setCheckable(True)
self.actiontoolbar_display.setObjectName("actiontoolbar_display")
self.actionEdit_toolbars = QtWidgets.QAction(BaseWindow)
self.actionEdit_toolbars.setCheckable(True)
self.actionEdit_toolbars.setObjectName("actionEdit_toolbars")
self.actionAddlines = QtWidgets.QAction(BaseWindow)
self.actionAddlines.setObjectName("actionAddlines")
self.actionColors = QtWidgets.QAction(BaseWindow)
self.actionColors.setObjectName("actionColors")
self.actionConcatenate_sets = QtWidgets.QAction(BaseWindow)
self.actionConcatenate_sets.setObjectName("actionConcatenate_sets")
self.actionShift = QtWidgets.QAction(BaseWindow)
self.actionShift.setObjectName("actionShift")
self.actionShow_log = QtWidgets.QAction(BaseWindow)
icon = QtGui.QIcon.fromTheme("dialog-information")
self.actionShow_log.setIcon(icon)
self.actionShow_log.setObjectName("actionShow_log")
self.action_create_fit_function = QtWidgets.QAction(BaseWindow)
self.action_create_fit_function.setObjectName("action_create_fit_function")
self.action_colorcycle = QtWidgets.QAction(BaseWindow)
self.action_colorcycle.setObjectName("action_colorcycle")
2022-03-08 09:27:40 +00:00
self.actionSave_session = QtWidgets.QAction(BaseWindow)
self.actionSave_session.setObjectName("actionSave_session")
self.actionMouse_behaviour = QtWidgets.QAction(BaseWindow)
self.actionMouse_behaviour.setCheckable(True)
self.actionMouse_behaviour.setObjectName("actionMouse_behaviour")
self.actionConfiguration = QtWidgets.QAction(BaseWindow)
self.actionConfiguration.setObjectName("actionConfiguration")
self.actionRefresh = QtWidgets.QAction(BaseWindow)
self.actionRefresh.setObjectName("actionRefresh")
self.actionInterpolation = QtWidgets.QAction(BaseWindow)
self.actionInterpolation.setObjectName("actionInterpolation")
self.actionRunning_values = QtWidgets.QAction(BaseWindow)
self.actionRunning_values.setObjectName("actionRunning_values")
self.actionFit_parameter_saving = QtWidgets.QAction(BaseWindow)
self.actionFit_parameter_saving.setObjectName("actionFit_parameter_saving")
self.actionShow_fit_parameter = QtWidgets.QAction(BaseWindow)
self.actionShow_fit_parameter.setObjectName("actionShow_fit_parameter")
self.actionSkip_points = QtWidgets.QAction(BaseWindow)
self.actionSkip_points.setObjectName("actionSkip_points")
self.actionGuide_lines = QtWidgets.QAction(BaseWindow)
self.actionGuide_lines.setObjectName("actionGuide_lines")
self.actionMaximize = QtWidgets.QAction(BaseWindow)
self.actionMaximize.setCheckable(True)
self.actionMaximize.setVisible(False)
self.actionMaximize.setObjectName("actionMaximize")
self.actionTile = QtWidgets.QAction(BaseWindow)
self.actionTile.setObjectName("actionTile")
self.actionTileVertical = QtWidgets.QAction(BaseWindow)
self.actionTileVertical.setObjectName("actionTileVertical")
self.actionTileHorizontal = QtWidgets.QAction(BaseWindow)
self.actionTileHorizontal.setObjectName("actionTileHorizontal")
2022-03-08 09:27:40 +00:00
self.actionMinimize = QtWidgets.QAction(BaseWindow)
self.actionMinimize.setCheckable(True)
self.actionMinimize.setVisible(False)
self.actionMinimize.setObjectName("actionMinimize")
self.actionNew_window = QtWidgets.QAction(BaseWindow)
self.actionNew_window.setObjectName("actionNew_window")
self.actionDelete_window = QtWidgets.QAction(BaseWindow)
self.actionDelete_window.setObjectName("actionDelete_window")
self.actionCascade_windows = QtWidgets.QAction(BaseWindow)
self.actionCascade_windows.setObjectName("actionCascade_windows")
self.actionNext_window = QtWidgets.QAction(BaseWindow)
self.actionNext_window.setObjectName("actionNext_window")
self.actionPrevious = QtWidgets.QAction(BaseWindow)
self.actionPrevious.setObjectName("actionPrevious")
self.t1action = QtWidgets.QAction(BaseWindow)
self.t1action.setObjectName("t1action")
self.t1tau = QtWidgets.QAction(BaseWindow)
self.t1tau.setObjectName("t1tau")
self.action_coup_calc = QtWidgets.QAction(BaseWindow)
self.action_coup_calc.setObjectName("action_coup_calc")
self.action_calc_eps_derivative = QtWidgets.QAction(BaseWindow)
self.action_calc_eps_derivative.setObjectName("action_calc_eps_derivative")
self.actionOpen_FC = QtWidgets.QAction(BaseWindow)
self.actionOpen_FC.setObjectName("actionOpen_FC")
self.action_mean_t1 = QtWidgets.QAction(BaseWindow)
self.action_mean_t1.setObjectName("action_mean_t1")
self.actionFilon = QtWidgets.QAction(BaseWindow)
self.actionFilon.setObjectName("actionFilon")
self.action_new_set = QtWidgets.QAction(BaseWindow)
self.action_new_set.setObjectName("action_new_set")
self.action_magnitude = QtWidgets.QAction(BaseWindow)
self.action_magnitude.setObjectName("action_magnitude")
self.actionCenterMax = QtWidgets.QAction(BaseWindow)
self.actionCenterMax.setObjectName("actionCenterMax")
self.action_depake = QtWidgets.QAction(BaseWindow)
self.action_depake.setObjectName("action_depake")
self.action_edit = QtWidgets.QAction(BaseWindow)
self.action_edit.setObjectName("action_edit")
self.actionPick_position = QtWidgets.QAction(BaseWindow)
self.actionPick_position.setObjectName("actionPick_position")
self.actionIntegrate = QtWidgets.QAction(BaseWindow)
self.actionIntegrate.setObjectName("actionIntegrate")
self.actionDerivation = QtWidgets.QAction(BaseWindow)
self.actionDerivation.setObjectName("actionDerivation")
self.actionIntegration = QtWidgets.QAction(BaseWindow)
self.actionIntegration.setObjectName("actionIntegration")
self.action_cut = QtWidgets.QAction(BaseWindow)
self.action_cut.setObjectName("action_cut")
self.actionMove_between_plots = QtWidgets.QAction(BaseWindow)
self.actionMove_between_plots.setObjectName("actionMove_between_plots")
self.actionBaseline = QtWidgets.QAction(BaseWindow)
self.actionBaseline.setObjectName("actionBaseline")
self.actionCalculateT1 = QtWidgets.QAction(BaseWindow)
self.actionCalculateT1.setObjectName("actionCalculateT1")
self.actionChange_datatypes = QtWidgets.QAction(BaseWindow)
self.actionChange_datatypes.setObjectName("actionChange_datatypes")
self.actionPrint = QtWidgets.QAction(BaseWindow)
self.actionPrint.setObjectName("actionPrint")
self.action_lm_fit = QtWidgets.QAction(BaseWindow)
self.action_lm_fit.setCheckable(True)
self.action_lm_fit.setChecked(True)
self.action_lm_fit.setObjectName("action_lm_fit")
self.action_nm_fit = QtWidgets.QAction(BaseWindow)
self.action_nm_fit.setCheckable(True)
self.action_nm_fit.setObjectName("action_nm_fit")
self.action_odr_fit = QtWidgets.QAction(BaseWindow)
self.action_odr_fit.setCheckable(True)
self.action_odr_fit.setObjectName("action_odr_fit")
self.action_no_range = QtWidgets.QAction(BaseWindow)
self.action_no_range.setCheckable(True)
self.action_no_range.setChecked(False)
self.action_no_range.setObjectName("action_no_range")
self.action_x_range = QtWidgets.QAction(BaseWindow)
self.action_x_range.setCheckable(True)
self.action_x_range.setChecked(True)
self.action_x_range.setObjectName("action_x_range")
self.action_custom_range = QtWidgets.QAction(BaseWindow)
self.action_custom_range.setCheckable(True)
self.action_custom_range.setObjectName("action_custom_range")
self.actionSnake = QtWidgets.QAction(BaseWindow)
self.actionSnake.setObjectName("actionSnake")
self.actionFunction_editor = QtWidgets.QAction(BaseWindow)
self.actionFunction_editor.setObjectName("actionFunction_editor")
self.actionLife = QtWidgets.QAction(BaseWindow)
self.actionLife.setObjectName("actionLife")
self.actionTetris = QtWidgets.QAction(BaseWindow)
self.actionTetris.setObjectName("actionTetris")
self.actionUpdate = QtWidgets.QAction(BaseWindow)
self.actionUpdate.setObjectName("actionUpdate")
self.actionMine = QtWidgets.QAction(BaseWindow)
self.actionMine.setObjectName("actionMine")
self.action_draw_object = QtWidgets.QAction(BaseWindow)
self.action_draw_object.setObjectName("action_draw_object")
self.actionBugs = QtWidgets.QAction(BaseWindow)
self.actionBugs.setObjectName("actionBugs")
self.actionShow_error_log = QtWidgets.QAction(BaseWindow)
self.actionShow_error_log.setObjectName("actionShow_error_log")
self.actionCreate_starter = QtWidgets.QAction(BaseWindow)
self.actionCreate_starter.setObjectName("actionCreate_starter")
self.actionAbout = QtWidgets.QAction(BaseWindow)
self.actionAbout.setObjectName("actionAbout")
self.actionTNMH_model = QtWidgets.QAction(BaseWindow)
self.actionTNMH_model.setObjectName("actionTNMH_model")
2023-06-15 15:24:35 +00:00
self.actionBinning = QtWidgets.QAction(BaseWindow)
self.actionBinning.setObjectName("actionBinning")
2023-06-26 17:57:23 +00:00
self.actionTNMH = QtWidgets.QAction(BaseWindow)
self.actionTNMH.setObjectName("actionTNMH")
2022-03-08 09:27:40 +00:00
self.menuSave.addAction(self.actionSave)
self.menuSave.addAction(self.actionExportGraphic)
self.menuSave.addAction(self.action_save_fit_parameter)
self.menuFile.addAction(self.action_open)
self.menuFile.addAction(self.actionOpen_FC)
self.menuFile.addAction(self.menuSave.menuAction())
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionPrint)
self.menuFile.addAction(self.action_reset)
self.menuFile.addSeparator()
self.menuFile.addAction(self.action_close)
self.menuFile.addSeparator()
self.menuData.addAction(self.action_new_set)
self.menuData.addAction(self.action_delete_sets)
self.menuData.addAction(self.actionMove_between_plots)
self.menuData.addAction(self.actionConcatenate_sets)
self.menuData.addAction(self.actionAddlines)
self.menuData.addSeparator()
self.menuData.addAction(self.action_sort_pts)
self.menuData.addAction(self.actionSkip_points)
self.menuData.addSeparator()
self.menuData.addAction(self.action_cut)
self.menuData.addSeparator()
self.menuData.addAction(self.actionChange_datatypes)
self.menuHelp.addAction(self.actionShow_error_log)
2022-03-08 09:27:40 +00:00
self.menuHelp.addAction(self.actionUpdate)
self.menuHelp.addAction(self.actionBugs)
self.menuHelp.addAction(self.actionAbout)
2022-03-08 09:27:40 +00:00
self.menuNormalize.addAction(self.action_norm_max)
self.menuNormalize.addAction(self.action_norm_max_abs)
self.menuNormalize.addSeparator()
self.menuNormalize.addAction(self.action_norm_first)
self.menuNormalize.addAction(self.action_norm_last)
self.menuNormalize.addSeparator()
self.menuNormalize.addAction(self.action_norm_area)
self.menuExtra.addAction(self.action_mean_t1)
self.menuExtra.addSeparator()
self.menuExtra.addAction(self.actionFilon)
self.menuExtra.addAction(self.actionDerivation)
self.menuExtra.addAction(self.actionIntegration)
self.menuExtra.addSeparator()
self.menuExtra.addAction(self.menuNormalize.menuAction())
self.menuExtra.addAction(self.actionInterpolation)
2023-06-15 15:24:35 +00:00
self.menuExtra.addAction(self.actionBinning)
2022-03-08 09:27:40 +00:00
self.menuExtra.addAction(self.actionRunning_values)
self.menuExtra.addAction(self.actionShift)
self.menuExtra.addSeparator()
self.menuExtra.addAction(self.action_calc)
self.menuMethod.addAction(self.action_lm_fit)
self.menuMethod.addAction(self.action_nm_fit)
self.menuMethod.addAction(self.action_odr_fit)
self.menuLimits.addAction(self.action_no_range)
self.menuLimits.addAction(self.action_x_range)
self.menuLimits.addAction(self.action_custom_range)
self.menuFit.addAction(self.action_FitWidget)
self.menuFit.addSeparator()
self.menuFit.addAction(self.action_create_fit_function)
self.menuFit.addAction(self.actionFunction_editor)
self.menuFit.addSeparator()
self.menuFit.addAction(self.menuMethod.menuAction())
self.menuFit.addAction(self.menuLimits.menuAction())
self.menuOptions.addAction(self.actionMouse_behaviour)
self.menuOptions.addSeparator()
self.menuOptions.addAction(self.action_colorcycle)
2022-03-08 09:27:40 +00:00
self.menuOptions.addAction(self.actionConfiguration)
self.menuOptions.addAction(self.actionCreate_starter)
2022-03-08 09:27:40 +00:00
self.menuView.addAction(self.actionTile)
self.menuView.addAction(self.actionTileVertical)
self.menuView.addAction(self.actionTileHorizontal)
2022-03-08 09:27:40 +00:00
self.menuView.addAction(self.actionCascade_windows)
self.menuWindow.addAction(self.actionNew_window)
self.menuWindow.addAction(self.actionDelete_window)
self.menuWindow.addSeparator()
self.menuWindow.addAction(self.actionNext_window)
self.menuWindow.addAction(self.actionPrevious)
self.menuWindow.addAction(self.actionMaximize)
self.menuWindow.addAction(self.actionMinimize)
self.menuWindow.addAction(self.menuView.menuAction())
self.menuWindow.addSeparator()
self.menuWindow.addAction(self.actionRefresh)
self.menuWindow.addSeparator()
self.menuWindow.addAction(self.action_draw_object)
2022-03-08 09:27:40 +00:00
self.menuNMR.addAction(self.t1action)
self.menuNMR.addAction(self.actionCalculateT1)
self.menuNMR.addAction(self.action_coup_calc)
self.menuBDS.addAction(self.action_calc_eps_derivative)
self.menuSpectrum.addAction(self.action_magnitude)
self.menuSpectrum.addAction(self.actionCenterMax)
self.menuSpectrum.addAction(self.action_depake)
self.menuSpectrum.addSeparator()
self.menuSpectrum.addAction(self.action_edit)
self.menuSpectrum.addAction(self.actionBaseline)
self.menuSpectrum.addAction(self.actionPick_position)
self.menuStuff.addAction(self.actionSnake)
self.menuStuff.addAction(self.actionLife)
self.menuStuff.addAction(self.actionTetris)
self.menuStuff.addAction(self.actionMine)
self.menuDSC.addAction(self.actionTNMH_model)
2022-03-08 09:27:40 +00:00
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuWindow.menuAction())
self.menubar.addAction(self.menuData.menuAction())
self.menubar.addAction(self.menuExtra.menuAction())
self.menubar.addAction(self.menuSpectrum.menuAction())
self.menubar.addAction(self.menuFit.menuAction())
self.menubar.addAction(self.menuNMR.menuAction())
self.menubar.addAction(self.menuBDS.menuAction())
self.menubar.addAction(self.menuDSC.menuAction())
2022-03-08 09:27:40 +00:00
self.menubar.addAction(self.menuOptions.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.menubar.addAction(self.menuStuff.menuAction())
self.toolBar.addAction(self.action_open)
self.toolBar.addAction(self.actionSave)
self.toolBar.addSeparator()
self.toolBar.addAction(self.actionMouse_behaviour)
2022-03-22 19:07:59 +00:00
self.toolBar.addSeparator()
self.toolBar.addAction(self.actionPrevious)
self.toolBar.addAction(self.actionNext_window)
2022-03-08 09:27:40 +00:00
self.toolbar_edit.addAction(self.action_calc)
self.toolbar_edit.addAction(self.action_mean_t1)
self.toolbar_edit.addAction(self.actionShift)
self.toolBar_nmr.addAction(self.t1action)
self.toolBar_nmr.addAction(self.actionCalculateT1)
self.toolBar_fit.addAction(self.action_FitWidget)
self.toolBar_spectrum.addAction(self.action_edit)
self.toolBar_spectrum.addAction(self.actionPick_position)
self.toolBar_data.addAction(self.actionConcatenate_sets)
self.toolBar_data.addAction(self.action_sort_pts)
self.retranslateUi(BaseWindow)
self.tabWidget.setCurrentIndex(0)
self.action_close.triggered.connect(BaseWindow.close) # type: ignore
2022-03-08 09:27:40 +00:00
QtCore.QMetaObject.connectSlotsByName(BaseWindow)
def retranslateUi(self, BaseWindow):
_translate = QtCore.QCoreApplication.translate
BaseWindow.setWindowTitle(_translate("BaseWindow", "Mr. Godot told me to tell you he won\'t come this evening but surely tomorrow."))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.datawidget), _translate("BaseWindow", "Data"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.valuewidget), _translate("BaseWindow", "Values"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.fit_dialog), _translate("BaseWindow", "Fit"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.editsignalwidget), _translate("BaseWindow", "Signals"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.ptsselectwidget), _translate("BaseWindow", "Pick points"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.t1tauwidget), _translate("BaseWindow", "SLR"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.drawingswidget), _translate("BaseWindow", "Drawings"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.integralwidget), _translate("BaseWindow", "Integrate"))
2022-03-08 09:27:40 +00:00
self.menuFile.setTitle(_translate("BaseWindow", "&File"))
self.menuSave.setTitle(_translate("BaseWindow", "&Save..."))
self.menuData.setTitle(_translate("BaseWindow", "&Data"))
self.menuHelp.setTitle(_translate("BaseWindow", "&Help"))
self.menuExtra.setTitle(_translate("BaseWindow", "Math"))
self.menuNormalize.setTitle(_translate("BaseWindow", "&Normalize"))
self.menuFit.setTitle(_translate("BaseWindow", "F&it"))
self.menuMethod.setTitle(_translate("BaseWindow", "Method"))
self.menuLimits.setTitle(_translate("BaseWindow", "Limits"))
self.menuOptions.setTitle(_translate("BaseWindow", "Options"))
self.menuWindow.setTitle(_translate("BaseWindow", "Plots"))
self.menuView.setTitle(_translate("BaseWindow", "View"))
self.menuNMR.setTitle(_translate("BaseWindow", "NMR"))
self.menuBDS.setTitle(_translate("BaseWindow", "BDS"))
self.menuSpectrum.setTitle(_translate("BaseWindow", "Spectrum"))
self.menuDSC.setTitle(_translate("BaseWindow", "DSC"))
2022-03-08 09:27:40 +00:00
self.toolBar.setWindowTitle(_translate("BaseWindow", "Main"))
2022-04-03 14:42:44 +00:00
self.toolbar_edit.setWindowTitle(_translate("BaseWindow", "Math"))
2022-03-08 09:27:40 +00:00
self.toolBar_nmr.setWindowTitle(_translate("BaseWindow", "NMR"))
self.toolBar_fit.setWindowTitle(_translate("BaseWindow", "Fit"))
self.toolBar_spectrum.setWindowTitle(_translate("BaseWindow", "Spectrum"))
2022-04-03 14:42:44 +00:00
self.toolBar_data.setWindowTitle(_translate("BaseWindow", "Data"))
2022-03-08 09:27:40 +00:00
self.action_close.setText(_translate("BaseWindow", "&Quit"))
self.action_close.setShortcut(_translate("BaseWindow", "Ctrl+Q"))
self.actionExportGraphic.setText(_translate("BaseWindow", "Export graphic..."))
self.actionExportGraphic.setShortcut(_translate("BaseWindow", "Ctrl+Shift+S"))
self.action_open.setText(_translate("BaseWindow", "&Open..."))
self.action_open.setShortcut(_translate("BaseWindow", "Ctrl+O"))
self.actionExportData.setText(_translate("BaseWindow", "Export data..."))
self.actionExportData.setShortcut(_translate("BaseWindow", "Ctrl+Shift+S"))
self.action_calc.setText(_translate("BaseWindow", "&Evaluate expression..."))
self.action_delete_sets.setText(_translate("BaseWindow", "&Delete Set"))
self.action_delete_sets.setShortcut(_translate("BaseWindow", "Ctrl+Del"))
self.action_save_fit_parameter.setText(_translate("BaseWindow", "Save fit &parameter..."))
self.action_sort_pts.setText(_translate("BaseWindow", "Sort &points"))
self.action_reset.setText(_translate("BaseWindow", "&Reset"))
self.action_reset.setShortcut(_translate("BaseWindow", "Ctrl+R"))
self.actionDocumentation.setText(_translate("BaseWindow", "&Documentation"))
self.actionDocumentation.setShortcut(_translate("BaseWindow", "F1"))
self.action_FitWidget.setText(_translate("BaseWindow", "Open &Fit"))
self.action_FitWidget.setShortcut(_translate("BaseWindow", "Ctrl+F"))
self.action_norm_max.setText(_translate("BaseWindow", "&Max"))
self.action_norm_first.setText(_translate("BaseWindow", "&First point"))
self.action_norm_area.setText(_translate("BaseWindow", "&Area"))
self.action_norm_max_abs.setText(_translate("BaseWindow", "Ma&x(Abs)"))
self.action_norm_last.setText(_translate("BaseWindow", "&Last point"))
self.actionSave.setText(_translate("BaseWindow", "S&ave..."))
self.actionSave.setShortcut(_translate("BaseWindow", "Ctrl+S"))
self.actiontoolbar_display.setText(_translate("BaseWindow", "&Views"))
self.actionEdit_toolbars.setText(_translate("BaseWindow", "&Edit"))
self.actionAddlines.setText(_translate("BaseWindow", "Set by function..."))
self.actionColors.setText(_translate("BaseWindow", "&Reset color"))
self.actionConcatenate_sets.setText(_translate("BaseWindow", "Join sets"))
self.actionShift.setText(_translate("BaseWindow", "&Shift/scale..."))
self.actionShow_log.setText(_translate("BaseWindow", "&Show log..."))
self.action_create_fit_function.setText(_translate("BaseWindow", "&Create fit function..."))
self.action_colorcycle.setText(_translate("BaseWindow", "Color cycles..."))
2022-03-08 09:27:40 +00:00
self.actionSave_session.setText(_translate("BaseWindow", "Update session"))
self.actionMouse_behaviour.setText(_translate("BaseWindow", "Mouse behaviour"))
self.actionMouse_behaviour.setToolTip(_translate("BaseWindow", "Switch between zoom and pan in graph."))
self.actionConfiguration.setText(_translate("BaseWindow", "Configuration..."))
self.actionRefresh.setText(_translate("BaseWindow", "Refresh"))
self.actionRefresh.setShortcut(_translate("BaseWindow", "F5"))
self.actionInterpolation.setText(_translate("BaseWindow", "Interpolation..."))
self.actionRunning_values.setText(_translate("BaseWindow", "Smoothing..."))
self.actionFit_parameter_saving.setText(_translate("BaseWindow", "Fit parameter saving..."))
self.actionShow_fit_parameter.setText(_translate("BaseWindow", "Parameter..."))
self.actionSkip_points.setText(_translate("BaseWindow", "Skip points..."))
self.actionGuide_lines.setText(_translate("BaseWindow", "Draw lines..."))
2022-03-08 09:27:40 +00:00
self.actionMaximize.setText(_translate("BaseWindow", "Maximize"))
self.actionTile.setText(_translate("BaseWindow", "Tile windows"))
self.actionTileVertical.setText(_translate("BaseWindow", "Tile windows vertically"))
self.actionTileHorizontal.setText(_translate("BaseWindow", "Tile windows horizontally"))
2022-03-08 09:27:40 +00:00
self.actionMinimize.setText(_translate("BaseWindow", "Minimize"))
self.actionNew_window.setText(_translate("BaseWindow", "New graph"))
self.actionDelete_window.setText(_translate("BaseWindow", "Delete graph"))
2022-03-08 09:27:40 +00:00
self.actionCascade_windows.setText(_translate("BaseWindow", "Cascade windows"))
self.actionNext_window.setText(_translate("BaseWindow", "Next"))
self.actionNext_window.setShortcut(_translate("BaseWindow", "Alt+Right"))
self.actionPrevious.setText(_translate("BaseWindow", "Previous"))
self.actionPrevious.setShortcut(_translate("BaseWindow", "Alt+Left"))
self.t1action.setText(_translate("BaseWindow", "Evaluate T1 minimum..."))
self.t1tau.setText(_translate("BaseWindow", "Calculate T1..."))
self.action_coup_calc.setText(_translate("BaseWindow", "Coupling values..."))
self.action_calc_eps_derivative.setText(_translate("BaseWindow", "Calculate derivative loss"))
self.actionOpen_FC.setText(_translate("BaseWindow", "Read FC data..."))
self.action_mean_t1.setText(_translate("BaseWindow", "Convert mean values..."))
self.actionFilon.setText(_translate("BaseWindow", "Log FT..."))
self.action_new_set.setText(_translate("BaseWindow", "New set"))
self.action_magnitude.setText(_translate("BaseWindow", "Calculate magnitude"))
self.actionCenterMax.setText(_translate("BaseWindow", "Center on max"))
self.action_depake.setText(_translate("BaseWindow", "De-paked spectrum"))
self.action_edit.setText(_translate("BaseWindow", "Edit signals..."))
self.actionPick_position.setText(_translate("BaseWindow", "Pick points..."))
self.actionIntegrate.setText(_translate("BaseWindow", "Integrate"))
self.actionDerivation.setText(_translate("BaseWindow", "Differentiation..."))
self.actionIntegration.setText(_translate("BaseWindow", "Integration..."))
self.action_cut.setText(_translate("BaseWindow", "Cut to visible range"))
self.actionMove_between_plots.setText(_translate("BaseWindow", "Move sets..."))
self.actionBaseline.setText(_translate("BaseWindow", "Baseline..."))
self.actionCalculateT1.setText(_translate("BaseWindow", "Calculate relaxation..."))
self.actionChange_datatypes.setText(_translate("BaseWindow", "Change datatypes..."))
self.actionPrint.setText(_translate("BaseWindow", "Print..."))
self.actionPrint.setShortcut(_translate("BaseWindow", "Ctrl+P"))
self.action_lm_fit.setText(_translate("BaseWindow", "Default stuff"))
self.action_nm_fit.setText(_translate("BaseWindow", "Nelder-Mead"))
self.action_odr_fit.setText(_translate("BaseWindow", "ODR"))
self.action_no_range.setText(_translate("BaseWindow", "None"))
self.action_x_range.setText(_translate("BaseWindow", "Visible x range"))
self.action_custom_range.setText(_translate("BaseWindow", "Custom"))
self.actionSnake.setText(_translate("BaseWindow", "Worm"))
2022-03-08 09:27:40 +00:00
self.actionFunction_editor.setText(_translate("BaseWindow", "Function editor..."))
self.actionLife.setText(_translate("BaseWindow", "Life..."))
self.actionTetris.setText(_translate("BaseWindow", "Not Tetris"))
self.actionUpdate.setText(_translate("BaseWindow", "Look for updates"))
self.actionMine.setText(_translate("BaseWindow", "Mine"))
self.action_draw_object.setText(_translate("BaseWindow", "Draw objects..."))
self.actionBugs.setText(_translate("BaseWindow", "Bugs! Problems! Wishes!"))
self.actionShow_error_log.setText(_translate("BaseWindow", "Show error log"))
self.actionCreate_starter.setText(_translate("BaseWindow", "Create starter.."))
self.actionAbout.setText(_translate("BaseWindow", "About..."))
2023-07-05 17:51:06 +00:00
self.actionTNMH_model.setText(_translate("BaseWindow", "Tg , Hodge, TNMH,,,"))
2023-06-15 15:24:35 +00:00
self.actionBinning.setText(_translate("BaseWindow", "Binning..."))
2023-06-26 17:57:23 +00:00
self.actionTNMH.setText(_translate("BaseWindow", "TNMH..."))
2022-03-08 09:27:40 +00:00
from ..data.datawidget.datawidget import DataWidget
from ..data.integral_widget import IntegralWidget
2022-03-08 09:27:40 +00:00
from ..data.point_select import PointSelectWidget
from ..data.signaledit.editsignalwidget import EditSignalWidget
from ..data.valueeditwidget import ValueEditWidget
from ..fit.fitwindow import QFitDialog
from ..graphs.drawings import DrawingsWidget
from ..lib.mdiarea import MdiAreaTile
2022-03-08 09:27:40 +00:00
from ..nmr.t1widget import QT1Widget