개정판 7e56c1e5
setting refresh test
Change-Id: Idb9bb0edd319069170a39010a8c652ce0a6e0ec9
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
144 | 144 |
self.lines.clear() |
145 | 145 |
self._connected_items_lists = QEngineeringInstLineNoTextItem() |
146 | 146 |
|
147 |
def clearData(self): |
|
148 |
self._configs = None |
|
149 |
self._symbolType = {} |
|
150 |
self._symbolNametList = {} |
|
151 |
self._symbolBase = {} |
|
152 |
|
|
153 |
self._lineNoProperties = None |
|
154 |
self._lineNoPropertiesUID = {} |
|
155 |
self._attributeByType = {} |
|
156 |
|
|
147 | 157 |
''' |
148 | 158 |
@brief clear |
149 | 159 |
@author humkyung |
DTI_PID/DTI_PID/AppRibbon.py | ||
---|---|---|
297 | 297 |
pane.ui.toolButtonLineList.clicked.connect(main_wnd.on_line_list) |
298 | 298 |
pane.ui.toolButtonScaleMapping.clicked.connect(main_wnd.on_scale_mapping_clicked) |
299 | 299 |
pane.ui.toolButtonRefreshSetting.clicked.connect(main_wnd.on_refresh_program_setting) |
300 |
pane.ui.toolButtonRefreshSetting.setVisible(False) |
|
300 |
#pane.ui.toolButtonRefreshSetting.setVisible(False)
|
|
301 | 301 |
|
302 | 302 |
cSection.addCustomWidget(pane) |
303 | 303 |
except Exception as ex: |
DTI_PID/DTI_PID/CodeTableDialog.py | ||
---|---|---|
894 | 894 |
|
895 | 895 |
def accept(self): |
896 | 896 |
from CodeTables import CodeTable |
897 |
from NominalPipeSize import NominalPipeSizeTable |
|
897 | 898 |
|
898 | 899 |
for table in QCodeTableDialog.CODE_TABLES: |
899 | 900 |
if table != 'Nominal Diameter': |
... | ... | |
901 | 902 |
|
902 | 903 |
self.saveNomialPipeSize() |
903 | 904 |
CodeTable.clearTables() |
905 |
NominalPipeSizeTable.instance().clear() |
|
904 | 906 |
|
905 | 907 |
QDialog.accept(self) |
906 | 908 |
|
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
3841 | 3841 |
appDocData.lineNos.append(lineItem) |
3842 | 3842 |
|
3843 | 3843 |
def on_refresh_program_setting(self): |
3844 |
from CodeTables import CodeTable |
|
3845 |
from NominalPipeSize import NominalPipeSizeTable |
|
3846 |
|
|
3847 |
app_doc_data = AppDocData.instance() |
|
3848 |
app_doc_data.clearData() |
|
3849 |
CodeTable.clearTables() |
|
3850 |
NominalPipeSizeTable.instance().clear() |
|
3844 | 3851 |
self.symbolTreeWidget.initSymbolTreeView() |
3845 | 3852 |
|
3846 | 3853 |
def init_add_tree_item(self, line_no_tree_item, run_item): |
DTI_PID/DTI_PID/NominalPipeSize.py | ||
---|---|---|
27 | 27 |
if found: return found, origin |
28 | 28 |
|
29 | 29 |
return None, None |
30 |
|
|
31 |
def clear(self): |
|
32 |
self._pipe_sizes = None |
|
30 | 33 |
|
31 | 34 |
@property |
32 | 35 |
def pipe_sizes(self): |
내보내기 Unified diff