개정판 640b954a
issue #000: fix minor bug open progress bar, save
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
650 | 650 |
msg.setWindowTitle(self.tr("항목 삭제")) |
651 | 651 |
msg.setStandardButtons(QMessageBox.Ok|QMessageBox.Cancel) |
652 | 652 |
if QMessageBox.Ok == msg.exec_(): |
653 |
|
|
654 |
appDocData = AppDocData.instance() |
|
655 |
appDocData.clearItemList(True) |
|
656 |
|
|
653 | 657 |
items = self.graphicsView.scene.items() |
654 | 658 |
for item in items: |
655 | 659 |
if type(item) is not QGraphicsPixmapItem: |
... | ... | |
866 | 870 |
''' |
867 | 871 |
def onOpenImageDrawing(self, path=None): |
868 | 872 |
from Drawing import Drawing |
873 |
from xml.etree.ElementTree import Element, SubElement, dump, ElementTree, parse |
|
869 | 874 |
|
870 | 875 |
try: |
871 | 876 |
appDocData = AppDocData.instance() |
... | ... | |
895 | 900 |
|
896 | 901 |
## Load data on xml |
897 | 902 |
path = os.path.join(appDocData.getCurrentProject().getTempPath(), appDocData.imgName + '.xml') |
898 |
if os.path.isfile(path): |
|
903 |
if os.path.isfile(path) and len(parse(path).getroot().getchildren()) > 9:
|
|
899 | 904 |
try: |
900 | 905 |
self.progress = QProgressDialog(self.tr("Please wait for a while"), self.tr("Cancel"), 0, 100, self) if not hasattr(self, 'progress') else self.progress |
901 | 906 |
self.progress.setWindowModality(Qt.WindowModal) |
DTI_PID/DTI_PID/translate/ko_kr.ts | ||
---|---|---|
34 | 34 |
<translation type="unfinished"></translation> |
35 | 35 |
</message> |
36 | 36 |
<message> |
37 |
<location filename="../SymbolEditor_UI.py" line="529"/> |
|
38 |
<source>Original Point</source> |
|
39 |
<translation type="unfinished"></translation> |
|
40 |
</message> |
|
41 |
<message> |
|
42 |
<location filename="../SymbolEditor_UI.py" line="531"/> |
|
43 |
<source>Connection Point</source> |
|
44 |
<translation type="unfinished"></translation> |
|
45 |
</message> |
|
46 |
<message> |
|
37 | 47 |
<location filename="../SymbolEditor_UI.py" line="520"/> |
38 | 48 |
<source>심볼명</source> |
39 | 49 |
<translation type="unfinished"></translation> |
... | ... | |
79 | 89 |
<translation type="unfinished"></translation> |
80 | 90 |
</message> |
81 | 91 |
<message> |
82 |
<location filename="../SymbolEditor_UI.py" line="529"/> |
|
83 |
<source>Original Point</source> |
|
84 |
<translation type="unfinished"></translation> |
|
85 |
</message> |
|
86 |
<message> |
|
87 |
<location filename="../SymbolEditor_UI.py" line="531"/> |
|
88 |
<source>Connection Point</source> |
|
89 |
<translation type="unfinished"></translation> |
|
90 |
</message> |
|
91 |
<message> |
|
92 | 92 |
<location filename="../SymbolEditor_UI.py" line="533"/> |
93 | 93 |
<source>삭제</source> |
94 | 94 |
<translation type="unfinished"></translation> |
... | ... | |
400 | 400 |
</message> |
401 | 401 |
<message> |
402 | 402 |
<location filename="../MainWindow.py" line="654"/> |
403 |
<source>ì íí ì¸ìí í목ë¤ì ìì íìê² ìµëê¹?
|
|
404 |
ìì ë í목ë¤ì 복구í ì ììµëë¤.</source>
|
|
403 |
<source>ì íí ì¸ìí í목ë¤ì ìì íìê² ìµëê¹?
|
|
404 |
ìì ë í목ë¤ì ë³µêµ¬í  ì ììµëë¤.</source>
|
|
405 | 405 |
<translation type="unfinished"></translation> |
406 | 406 |
</message> |
407 | 407 |
<message> |
408 | 408 |
<location filename="../MainWindow.py" line="655"/> |
409 |
<source>í목 ìì </source>
|
|
409 |
<source>í목 ìì </source>
|
|
410 | 410 |
<translation type="unfinished"></translation> |
411 | 411 |
</message> |
412 | 412 |
<message> |
내보내기 Unified diff