work on export
This commit is contained in:
@ -1095,6 +1095,7 @@ class NMRMainWindow(QtWidgets.QMainWindow, Ui_BaseWindow):
|
||||
def show_tg_dialog(self):
|
||||
if self._tg_dialog is None:
|
||||
self._tg_dialog = TgCalculator(self.management, parent=self)
|
||||
self._tg_dialog.newTg.connect(self.management.addTg)
|
||||
else:
|
||||
self._tg_dialog()
|
||||
self._tg_dialog.show()
|
||||
|
@ -775,6 +775,22 @@ class UpperManagement(QtCore.QObject):
|
||||
|
||||
self.newData.emit(new_data, self.current_graph)
|
||||
|
||||
@QtCore.pyqtSlot(dict, dict, str)
|
||||
def addTg(self, dic1: dict, dic2: dict, graph_id: str):
|
||||
for k, v in dic1.items():
|
||||
p: ExperimentContainer = self[k]
|
||||
col = p.plot_real.linecolor
|
||||
set_id = self.add(v[0], color=col)
|
||||
self.newData.emit([set_id], self.current_graph)
|
||||
for line in v[1]:
|
||||
set_id = self.add(line, color=col)
|
||||
self.newData.emit([set_id], self.current_graph)
|
||||
|
||||
set_id_list = []
|
||||
for v in dic2.values():
|
||||
set_id_list.append(self.add(v))
|
||||
self.newData.emit(set_id_list, '')
|
||||
|
||||
@QtCore.pyqtSlot(int, dict)
|
||||
def smooth_data(self, npoints, param_kwargs):
|
||||
_active = self.graphs[self.current_graph].active
|
||||
|
Reference in New Issue
Block a user