|
@@ -434,6 +434,7 @@ class LeftBar(kcgw.KCGWidgets):
|
|
|
if datatype == FILE:
|
|
|
self.openData[unique_id].file_name = file_name
|
|
|
self.openData[unique_id].setText(0, "Live" if datatype == LIVE else file_name.split('/')[-1])
|
|
|
+ self.openData[unique_id].setToolTip(0, "Live" if datatype == LIVE else file_name.split('/')[-1])
|
|
|
self.openData[unique_id].setText(1, "Reading")
|
|
|
if datatype == LIVE: # Insert LIVE on top
|
|
|
self.treeWidget.insertTopLevelItem(0, self.openData[unique_id])
|
|
@@ -537,12 +538,14 @@ class LeftBar(kcgw.KCGWidgets):
|
|
|
brd = " B: "+available_boards.get_board_name_from_id(board_id)
|
|
|
else:
|
|
|
brd = ""
|
|
|
- self.openPlots[unique_sub_id].setText(0, str(nr) + "." + self.possiblePlots[d_type] + " - ADC 1"+brd)
|
|
|
if d_type == 4: # Compare Plot
|
|
|
- self.openPlots[unique_sub_id].setText(0, str(nr) + "." + self.possiblePlots[d_type] + " - ADC 1+2"+brd)
|
|
|
+ adc = "1+2"
|
|
|
+ else:
|
|
|
+ adc = "1"
|
|
|
self.openPlots[unique_sub_id].is_child = True
|
|
|
self.openPlots[unique_sub_id].usid = unique_sub_id
|
|
|
self.openPlots[unique_sub_id].nr = nr
|
|
|
+ self.update_plot(unique_sub_id, d_type, adc+brd)
|
|
|
self.openData[unique_id].addChild(self.openPlots[unique_sub_id])
|
|
|
self.treeWidget.resizeColumnToContents(0)
|
|
|
|
|
@@ -612,17 +615,17 @@ class LeftBar(kcgw.KCGWidgets):
|
|
|
del self.Data[unique_id]
|
|
|
|
|
|
@QtCore.pyqtSlot(int, int, str)
|
|
|
- def update_plot(self, uid, b_type, adc):
|
|
|
+ def update_plot(self, uid, b_type, add):
|
|
|
"""
|
|
|
Updates the plot list when the type of a plot window changes
|
|
|
:param uid: (int) unique id of the plot window to update
|
|
|
:param b_type: (int) type of that plot window
|
|
|
- :param int adc: the adc to update
|
|
|
+ :param str add: the add, board and additional text to update
|
|
|
:return: -
|
|
|
"""
|
|
|
- self.openPlots[uid].setText(
|
|
|
- 0, str(self.openPlots[uid].nr) + "." + self.possiblePlots[b_type] + " - ADC " + str(adc)
|
|
|
- )
|
|
|
+ text = str(self.openPlots[uid].nr) + "." + self.possiblePlots[b_type] + " - ADC " + str(add)
|
|
|
+ self.openPlots[uid].setText(0, text)
|
|
|
+ self.openPlots[uid].setToolTip(0, text)
|
|
|
self.treeWidget.resizeColumnToContents(0)
|
|
|
|
|
|
def handle_dialog(self, value, diag=None,):
|