개정판 c4ae884a
issue #000: add highlight in text data list
Change-Id: I5ed5a4942bdbfe2ffac68cd759dd21784c89dce2
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
352 | 352 |
@date 2019.04.16 |
353 | 353 |
''' |
354 | 354 |
items = [] |
355 |
owner = '' |
|
356 | 355 |
if type(errorItem.parent) is QEngineeringLineItem: |
357 | 356 |
item = QTableWidgetItem('line') |
358 | 357 |
#item.setFlags(Qt.ItemIsEnabled) |
... | ... | |
966 | 965 |
from ConfigurationDialog import QConfigurationDialog |
967 | 966 |
|
968 | 967 |
self.dlgConfiguration = QConfigurationDialog(self) |
969 |
self.dlgConfiguration.show() |
|
968 |
#self.dlgConfiguration.show()
|
|
970 | 969 |
if QDialog.Accepted == self.dlgConfiguration.exec_(): |
971 | 970 |
QEngineeringLineItem.LINE_TYPE_COLORS.clear() |
972 | 971 |
QEngineeringInstrumentItem.INST_COLOR = None |
... | ... | |
1017 | 1016 |
return |
1018 | 1017 |
|
1019 | 1018 |
dialog = QTextDataListDialog(self) |
1019 |
dialog.show() |
|
1020 | 1020 |
dialog.exec_() |
1021 | 1021 |
except Exception as ex: |
1022 | 1022 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
DTI_PID/DTI_PID/TextDataListDialog.py | ||
---|---|---|
39 | 39 |
|
40 | 40 |
# connect signals and slots |
41 | 41 |
self.ui.tableWidget.cellDoubleClicked.connect(self.listCellDoubleClicked) |
42 |
self.ui.tableWidget.cellClicked.connect(self.listCellClicked) |
|
42 | 43 |
self.ui.pushButtonEdit.clicked.connect(self.pushButtonEditClicked) |
43 | 44 |
self.ui.pushButtonDelete.clicked.connect(self.pushButtonDeleteClicked) |
44 | 45 |
|
... | ... | |
124 | 125 |
from AppDocData import MessageType |
125 | 126 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
126 | 127 |
print(message) |
127 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
128 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
|
129 |
|
|
130 |
def listCellClicked(self, row, col): |
|
131 |
from HighlightCommand import HighlightCommand |
|
132 |
|
|
133 |
HighlightCommand(self.graphicsView).execute(self.ui.tableWidget.item(row, 1).tag) |
내보내기 Unified diff