개정판 09024107
issue #634: add symbol find and symbol replace and insert ongoing
Change-Id: Ib7204deabbd32821b126b37e7650c9fcf159a8ed
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
266 | 266 |
self.actionSave.triggered.connect(self.actionSaveCliked) |
267 | 267 |
self.addMessage.connect(self.onAddMessage) |
268 | 268 |
self.actionFindReplaceText.triggered.connect(self.findReplaceTextClicked) |
269 |
self.actionSymbol_Replace_Insert.triggered.connect(self.ReplaceInsertSymbolClicked) |
|
269 | 270 |
self.actionEditRecognizeLine.triggered.connect(self.on_recognize_line) |
270 | 271 |
self.pushButtonDetectSymbol.clicked.connect(self.show_detect_symbol_dialog) |
271 | 272 |
self.actionUndo.triggered.connect(app_doc_data.scene.undo_stack.undo) |
... | ... | |
646 | 647 |
self.dlgTextItemEdit.show() |
647 | 648 |
self.dlgTextItemEdit.exec_() |
648 | 649 |
|
650 |
def ReplaceInsertSymbolClicked(self): |
|
651 |
"""pop up replace and insert dialog""" |
|
652 |
if not self.graphicsView.hasImage(): |
|
653 |
self.showImageSelectionMessageBox() |
|
654 |
return |
|
655 |
|
|
656 |
from ReplaceSymbolDialog import QReplaceSymbolDialog |
|
657 |
|
|
658 |
self.dlg = QReplaceSymbolDialog(self) |
|
659 |
self.dlg.show() |
|
660 |
self.dlg.exec_() |
|
661 |
|
|
649 | 662 |
def on_recognize_line(self): |
650 | 663 |
"""recognize lines in selected area""" |
651 | 664 |
from RecognizeLineCommand import RecognizeLineCommand |
DTI_PID/DTI_PID/MainWindow_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file '.\UI\MainWindow.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/MainWindow.ui'
|
|
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.14.2
|
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
|
6 | 6 |
# |
7 | 7 |
# WARNING! All changes made in this file will be lost! |
8 | 8 |
|
9 |
|
|
10 | 9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
11 | 10 |
|
12 |
|
|
13 | 11 |
class Ui_MainWindow(object): |
14 | 12 |
def setupUi(self, MainWindow): |
15 | 13 |
MainWindow.setObjectName("MainWindow") |
... | ... | |
579 | 577 |
icon26.addPixmap(QtGui.QPixmap(":/newPrefix/redo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
580 | 578 |
self.actionRedo.setIcon(icon26) |
581 | 579 |
self.actionRedo.setObjectName("actionRedo") |
580 |
self.actionSymbol_Replace_Insert = QtWidgets.QAction(MainWindow) |
|
581 |
self.actionSymbol_Replace_Insert.setObjectName("actionSymbol_Replace_Insert") |
|
582 | 582 |
self.menuExport.addAction(self.actionExportAsSVG) |
583 | 583 |
self.menuExport.addAction(self.actionExportAsXML) |
584 | 584 |
self.menuExport.addAction(self.actionExportAsImage) |
... | ... | |
622 | 622 |
self.menu_5.addAction(self.actionFindReplaceText) |
623 | 623 |
self.menu_5.addAction(self.actionText_Data_List) |
624 | 624 |
self.menu_5.addSeparator() |
625 |
self.menu_5.addAction(self.actionSymbol_Replace_Insert) |
|
626 |
self.menu_5.addSeparator() |
|
625 | 627 |
self.menu_5.addAction(self.actionEditRecognizeLine) |
626 | 628 |
self.menu_5.addAction(self.actionRecognizeTable) |
627 | 629 |
self.menuHelp.addAction(self.actionHelp) |
... | ... | |
729 | 731 |
self.actionSave.setShortcut(_translate("MainWindow", "Ctrl+S")) |
730 | 732 |
self.actionRotate.setText(_translate("MainWindow", "Rotate")) |
731 | 733 |
self.actionRotate.setToolTip(_translate("MainWindow", "Rotate(R)")) |
732 |
self.actionFindReplaceText.setText(_translate("MainWindow", "Find/Replace")) |
|
734 |
self.actionFindReplaceText.setText(_translate("MainWindow", "Text Find/Replace"))
|
|
733 | 735 |
self.actionFindReplaceText.setToolTip(_translate("MainWindow", "Fine/Replace")) |
734 | 736 |
self.actionFindReplaceText.setShortcut(_translate("MainWindow", "Ctrl+F")) |
735 | 737 |
self.actionReplaceText.setText(_translate("MainWindow", "Modify Text")) |
... | ... | |
774 | 776 |
self.actionUndo.setToolTip(_translate("MainWindow", "Undo")) |
775 | 777 |
self.actionRedo.setText(_translate("MainWindow", "Redo")) |
776 | 778 |
self.actionRedo.setToolTip(_translate("MainWindow", "Redo")) |
779 |
self.actionSymbol_Replace_Insert.setText(_translate("MainWindow", "Symbol Replace/Insert")) |
|
780 |
|
|
777 | 781 |
import MainWindow_rc |
782 |
|
|
783 |
if __name__ == "__main__": |
|
784 |
import sys |
|
785 |
app = QtWidgets.QApplication(sys.argv) |
|
786 |
MainWindow = QtWidgets.QMainWindow() |
|
787 |
ui = Ui_MainWindow() |
|
788 |
ui.setupUi(MainWindow) |
|
789 |
MainWindow.show() |
|
790 |
sys.exit(app.exec_()) |
|
791 |
|
DTI_PID/DTI_PID/ReplaceSymbolDialog.py | ||
---|---|---|
1 |
# coding: utf-8 |
|
2 |
""" This is text item edit dialog module """ |
|
3 |
|
|
4 |
import os |
|
5 |
import sys |
|
6 |
from PyQt5.QtCore import * |
|
7 |
from PyQt5.QtGui import * |
|
8 |
from PyQt5.QtWidgets import * |
|
9 |
from AppDocData import AppDocData |
|
10 |
import ReplaceSymbol_UI |
|
11 |
from EngineeringTextItem import QEngineeringTextItem |
|
12 |
from SymbolSvgItem import SymbolSvgItem |
|
13 |
from EngineeringLineItem import QEngineeringLineItem |
|
14 |
|
|
15 |
|
|
16 |
class QReplaceSymbolDialog(QDialog): |
|
17 |
""" This is symbol item replace and insert dialog class """ |
|
18 |
|
|
19 |
def __init__(self, parent): |
|
20 |
QDialog.__init__(self, parent) |
|
21 |
|
|
22 |
self.mainWindow = parent |
|
23 |
self.ui = ReplaceSymbol_UI.Ui_ReplaceSymbolDialog() |
|
24 |
self.ui.setupUi(self) |
|
25 |
|
|
26 |
|
|
27 |
def reject(self): |
|
28 |
"""close a dialog""" |
|
29 |
QDialog.reject(self) |
DTI_PID/DTI_PID/ReplaceSymbol_UI.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
|
|
3 |
# Form implementation generated from reading ui file './UI/ReplaceSymbol.ui' |
|
4 |
# |
|
5 |
# Created by: PyQt5 UI code generator 5.11.3 |
|
6 |
# |
|
7 |
# WARNING! All changes made in this file will be lost! |
|
8 |
|
|
9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
|
10 |
|
|
11 |
class Ui_ReplaceSymbolDialog(object): |
|
12 |
def setupUi(self, ReplaceSymbolDialog): |
|
13 |
ReplaceSymbolDialog.setObjectName("ReplaceSymbolDialog") |
|
14 |
ReplaceSymbolDialog.resize(529, 313) |
|
15 |
ReplaceSymbolDialog.setMinimumSize(QtCore.QSize(350, 0)) |
|
16 |
ReplaceSymbolDialog.setMaximumSize(QtCore.QSize(9999, 9999)) |
|
17 |
font = QtGui.QFont() |
|
18 |
font.setFamily("맑은 고딕") |
|
19 |
font.setBold(True) |
|
20 |
font.setWeight(75) |
|
21 |
ReplaceSymbolDialog.setFont(font) |
|
22 |
self.gridLayout_3 = QtWidgets.QGridLayout(ReplaceSymbolDialog) |
|
23 |
self.gridLayout_3.setObjectName("gridLayout_3") |
|
24 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
|
25 |
self.horizontalLayout.setObjectName("horizontalLayout") |
|
26 |
self.buttonBox = QtWidgets.QDialogButtonBox(ReplaceSymbolDialog) |
|
27 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) |
|
28 |
self.buttonBox.setObjectName("buttonBox") |
|
29 |
self.horizontalLayout.addWidget(self.buttonBox) |
|
30 |
self.gridLayout_3.addLayout(self.horizontalLayout, 1, 0, 1, 1) |
|
31 |
self.widget = QtWidgets.QWidget(ReplaceSymbolDialog) |
|
32 |
self.widget.setObjectName("widget") |
|
33 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.widget) |
|
34 |
self.gridLayout_2.setObjectName("gridLayout_2") |
|
35 |
self.gridLayout = QtWidgets.QGridLayout() |
|
36 |
self.gridLayout.setObjectName("gridLayout") |
|
37 |
self.lineEdit_2 = QtWidgets.QLineEdit(self.widget) |
|
38 |
self.lineEdit_2.setObjectName("lineEdit_2") |
|
39 |
self.gridLayout.addWidget(self.lineEdit_2, 1, 1, 1, 1) |
|
40 |
self.lineEdit = QtWidgets.QLineEdit(self.widget) |
|
41 |
self.lineEdit.setObjectName("lineEdit") |
|
42 |
self.gridLayout.addWidget(self.lineEdit, 0, 1, 1, 1) |
|
43 |
self.labelReplace = QtWidgets.QLabel(self.widget) |
|
44 |
font = QtGui.QFont() |
|
45 |
font.setBold(False) |
|
46 |
font.setWeight(50) |
|
47 |
self.labelReplace.setFont(font) |
|
48 |
self.labelReplace.setObjectName("labelReplace") |
|
49 |
self.gridLayout.addWidget(self.labelReplace, 1, 0, 1, 1) |
|
50 |
self.plainTextEdit = QtWidgets.QPlainTextEdit(self.widget) |
|
51 |
self.plainTextEdit.setObjectName("plainTextEdit") |
|
52 |
self.gridLayout.addWidget(self.plainTextEdit, 2, 1, 1, 2) |
|
53 |
self.pushButtonRun = QtWidgets.QPushButton(self.widget) |
|
54 |
font = QtGui.QFont() |
|
55 |
font.setBold(False) |
|
56 |
font.setWeight(50) |
|
57 |
self.pushButtonRun.setFont(font) |
|
58 |
self.pushButtonRun.setObjectName("pushButtonRun") |
|
59 |
self.gridLayout.addWidget(self.pushButtonRun, 1, 2, 1, 1) |
|
60 |
self.label = QtWidgets.QLabel(self.widget) |
|
61 |
font = QtGui.QFont() |
|
62 |
font.setBold(False) |
|
63 |
font.setWeight(50) |
|
64 |
self.label.setFont(font) |
|
65 |
self.label.setObjectName("label") |
|
66 |
self.gridLayout.addWidget(self.label, 0, 0, 1, 1) |
|
67 |
self.label_3 = QtWidgets.QLabel(self.widget) |
|
68 |
font = QtGui.QFont() |
|
69 |
font.setBold(False) |
|
70 |
font.setWeight(50) |
|
71 |
self.label_3.setFont(font) |
|
72 |
self.label_3.setObjectName("label_3") |
|
73 |
self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) |
|
74 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
75 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
76 |
self.radioButtonReplace = QtWidgets.QRadioButton(self.widget) |
|
77 |
font = QtGui.QFont() |
|
78 |
font.setBold(False) |
|
79 |
font.setWeight(50) |
|
80 |
self.radioButtonReplace.setFont(font) |
|
81 |
self.radioButtonReplace.setChecked(True) |
|
82 |
self.radioButtonReplace.setObjectName("radioButtonReplace") |
|
83 |
self.buttonGroup = QtWidgets.QButtonGroup(ReplaceSymbolDialog) |
|
84 |
self.buttonGroup.setObjectName("buttonGroup") |
|
85 |
self.buttonGroup.addButton(self.radioButtonReplace) |
|
86 |
self.horizontalLayout_2.addWidget(self.radioButtonReplace) |
|
87 |
self.radioButtonInsert = QtWidgets.QRadioButton(self.widget) |
|
88 |
font = QtGui.QFont() |
|
89 |
font.setBold(False) |
|
90 |
font.setWeight(50) |
|
91 |
self.radioButtonInsert.setFont(font) |
|
92 |
self.radioButtonInsert.setObjectName("radioButtonInsert") |
|
93 |
self.buttonGroup.addButton(self.radioButtonInsert) |
|
94 |
self.horizontalLayout_2.addWidget(self.radioButtonInsert) |
|
95 |
self.gridLayout.addLayout(self.horizontalLayout_2, 0, 2, 1, 1) |
|
96 |
self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) |
|
97 |
self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 1) |
|
98 |
|
|
99 |
self.retranslateUi(ReplaceSymbolDialog) |
|
100 |
QtCore.QMetaObject.connectSlotsByName(ReplaceSymbolDialog) |
|
101 |
|
|
102 |
def retranslateUi(self, ReplaceSymbolDialog): |
|
103 |
_translate = QtCore.QCoreApplication.translate |
|
104 |
ReplaceSymbolDialog.setWindowTitle(_translate("ReplaceSymbolDialog", "Symbol Replace")) |
|
105 |
self.labelReplace.setText(_translate("ReplaceSymbolDialog", "Replace :")) |
|
106 |
self.pushButtonRun.setText(_translate("ReplaceSymbolDialog", "Run")) |
|
107 |
self.label.setText(_translate("ReplaceSymbolDialog", "Find : ")) |
|
108 |
self.label_3.setText(_translate("ReplaceSymbolDialog", "Condition: ")) |
|
109 |
self.radioButtonReplace.setText(_translate("ReplaceSymbolDialog", "Replace")) |
|
110 |
self.radioButtonInsert.setText(_translate("ReplaceSymbolDialog", "Insert")) |
|
111 |
|
|
112 |
|
|
113 |
if __name__ == "__main__": |
|
114 |
import sys |
|
115 |
app = QtWidgets.QApplication(sys.argv) |
|
116 |
ReplaceSymbolDialog = QtWidgets.QDialog() |
|
117 |
ui = Ui_ReplaceSymbolDialog() |
|
118 |
ui.setupUi(ReplaceSymbolDialog) |
|
119 |
ReplaceSymbolDialog.show() |
|
120 |
sys.exit(app.exec_()) |
|
121 |
|
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
986 | 986 |
if modifiers == Qt.ShiftModifier: |
987 | 987 |
super(SymbolSvgItem, self).mouseMoveEvent(event) |
988 | 988 |
|
989 |
def dragEnterEvent(self, event: QDragEnterEvent) -> None: |
|
990 |
pass |
|
991 |
|
|
992 | 989 |
def removeSelfAttr(self, attributeName): |
993 | 990 |
target = None |
994 | 991 |
for attr in self.attrs: |
DTI_PID/DTI_PID/TextItemEditDialog.py | ||
---|---|---|
6 | 6 |
from PyQt5.QtCore import * |
7 | 7 |
from PyQt5.QtGui import * |
8 | 8 |
from PyQt5.QtWidgets import * |
9 |
import sqlite3 |
|
10 | 9 |
from AppDocData import AppDocData |
11 |
from AppDocData import Config |
|
12 | 10 |
import TextItemEdit_UI |
13 | 11 |
from EngineeringTextItem import QEngineeringTextItem |
14 | 12 |
from SymbolSvgItem import SymbolSvgItem |
... | ... | |
27 | 25 |
|
28 | 26 |
self.ui.pushButtonFindText.clicked.connect(self.find_text) |
29 | 27 |
self.ui.pushButtonReplaceText.clicked.connect(self.replaceTextClicked) |
30 |
self.ui.checkBoxUID.stateChanged.connect(self.checkBoxChanged) |
|
28 |
self.ui.checkBoxUID.stateChanged.connect(self.checkBoxUIDChanged) |
|
29 |
self.ui.checkBoxSymbol.stateChanged.connect(self.checkBoxSymbolChanged) |
|
31 | 30 |
|
32 | 31 |
self.ui.lineEditFindText.setFocus() |
33 | 32 |
|
... | ... | |
42 | 41 |
|
43 | 42 |
return str(uuid_obj) == text |
44 | 43 |
|
45 |
def checkBoxChanged(self, checkState): |
|
44 |
def checkBoxUIDChanged(self, checkState):
|
|
46 | 45 |
if checkState is int(Qt.Checked): |
47 | 46 |
self.ui.pushButtonReplaceText.setEnabled(False) |
48 | 47 |
self.ui.lineEditReplaceText.setEnabled(False) |
49 |
else:
|
|
48 |
elif not self.ui.checkBoxSymbol.isChecked():
|
|
50 | 49 |
self.ui.pushButtonReplaceText.setEnabled(True) |
51 | 50 |
self.ui.lineEditReplaceText.setEnabled(True) |
52 | 51 |
|
52 |
def checkBoxSymbolChanged(self, checkState): |
|
53 |
if checkState is int(Qt.Checked): |
|
54 |
self.ui.pushButtonReplaceText.setEnabled(False) |
|
55 |
self.ui.lineEditReplaceText.setEnabled(False) |
|
56 |
self.ui.label_2.setText('Symbol : ') |
|
57 |
else: |
|
58 |
if not self.ui.checkBoxUID.isChecked(): |
|
59 |
self.ui.pushButtonReplaceText.setEnabled(True) |
|
60 |
self.ui.lineEditReplaceText.setEnabled(True) |
|
61 |
self.ui.label_2.setText('Text : ') |
|
62 |
|
|
53 | 63 |
def find_text(self): |
54 | 64 |
"""find user input text""" |
55 | 65 |
|
... | ... | |
59 | 69 |
if not text: return |
60 | 70 |
|
61 | 71 |
text_items = [] |
62 |
if int(self.ui.checkBoxUID.checkState()) is int(Qt.Checked):
|
|
72 |
if self.ui.checkBoxUID.isChecked():
|
|
63 | 73 |
text_items = [item for item in self.mainWindow.graphicsView.scene().items() |
64 |
if hasattr(item, 'uid') and str(item.uid).count(text)]
|
|
74 |
if hasattr(item, 'uid') and str(item.uid).count(text)] |
|
65 | 75 |
else: |
66 |
text_items = [item for item in self.mainWindow.graphicsView.scene().items() |
|
67 |
if issubclass(type(item), QEngineeringTextItem) and item.text().count(text)] |
|
76 |
if not self.ui.checkBoxSymbol.isChecked(): |
|
77 |
text_items = [item for item in self.mainWindow.graphicsView.scene().items() |
|
78 |
if issubclass(type(item), QEngineeringTextItem) and item.text().count(text)] |
|
79 |
else: |
|
80 |
text_items = [item for item in self.mainWindow.graphicsView.scene().items() |
|
81 |
if issubclass(type(item), SymbolSvgItem) and text.upper() in item.name.upper()] |
|
68 | 82 |
|
69 | 83 |
if not text_items: |
70 | 84 |
QMessageBox.about(self, self.tr("Notice"), self.tr('Nothing Found.')) |
DTI_PID/DTI_PID/TextItemEdit_UI.py | ||
---|---|---|
1 | 1 |
# -*- coding: utf-8 -*- |
2 | 2 |
|
3 |
# Form implementation generated from reading ui file '.\UI\TextItemEdit.ui'
|
|
3 |
# Form implementation generated from reading ui file './UI/TextItemEdit.ui'
|
|
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.13.0
|
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
|
6 | 6 |
# |
7 | 7 |
# WARNING! All changes made in this file will be lost! |
8 | 8 |
|
9 |
|
|
10 | 9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
11 | 10 |
|
12 |
|
|
13 | 11 |
class Ui_TextItemEditDialog(object): |
14 | 12 |
def setupUi(self, TextItemEditDialog): |
15 | 13 |
TextItemEditDialog.setObjectName("TextItemEditDialog") |
16 | 14 |
TextItemEditDialog.resize(421, 220) |
15 |
TextItemEditDialog.setSizeGripEnabled(True) |
|
16 |
TextItemEditDialog.setModal(False) |
|
17 | 17 |
self.gridLayout = QtWidgets.QGridLayout(TextItemEditDialog) |
18 | 18 |
self.gridLayout.setObjectName("gridLayout") |
19 | 19 |
self.gridLayout_2 = QtWidgets.QGridLayout() |
... | ... | |
49 | 49 |
self.checkBoxUID.setFocusPolicy(QtCore.Qt.NoFocus) |
50 | 50 |
self.checkBoxUID.setObjectName("checkBoxUID") |
51 | 51 |
self.horizontalLayout.addWidget(self.checkBoxUID) |
52 |
self.checkBoxSymbol = QtWidgets.QCheckBox(TextItemEditDialog) |
|
53 |
self.checkBoxSymbol.setObjectName("checkBoxSymbol") |
|
54 |
self.horizontalLayout.addWidget(self.checkBoxSymbol) |
|
52 | 55 |
self.buttonBox = QtWidgets.QDialogButtonBox(TextItemEditDialog) |
53 | 56 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
54 | 57 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) |
... | ... | |
66 | 69 |
TextItemEditDialog.setWindowTitle(_translate("TextItemEditDialog", "Text Find / Replace")) |
67 | 70 |
self.pushButtonFindText.setText(_translate("TextItemEditDialog", "→")) |
68 | 71 |
self.pushButtonReplaceText.setText(_translate("TextItemEditDialog", "Replace")) |
69 |
self.label_2.setText(_translate("TextItemEditDialog", "Text")) |
|
70 |
self.label.setText(_translate("TextItemEditDialog", "Replace")) |
|
72 |
self.label_2.setText(_translate("TextItemEditDialog", "Text : "))
|
|
73 |
self.label.setText(_translate("TextItemEditDialog", "Replace : "))
|
|
71 | 74 |
self.checkBoxUID.setText(_translate("TextItemEditDialog", "UID")) |
75 |
self.checkBoxSymbol.setText(_translate("TextItemEditDialog", "Symbol")) |
|
76 |
|
|
77 |
|
|
78 |
if __name__ == "__main__": |
|
79 |
import sys |
|
80 |
app = QtWidgets.QApplication(sys.argv) |
|
81 |
TextItemEditDialog = QtWidgets.QDialog() |
|
82 |
ui = Ui_TextItemEditDialog() |
|
83 |
ui.setupUi(TextItemEditDialog) |
|
84 |
TextItemEditDialog.show() |
|
85 |
sys.exit(app.exec_()) |
|
86 |
|
DTI_PID/DTI_PID/UI/MainWindow.ui | ||
---|---|---|
142 | 142 |
<addaction name="actionFindReplaceText"/> |
143 | 143 |
<addaction name="actionText_Data_List"/> |
144 | 144 |
<addaction name="separator"/> |
145 |
<addaction name="actionSymbol_Replace_Insert"/> |
|
146 |
<addaction name="separator"/> |
|
145 | 147 |
<addaction name="actionEditRecognizeLine"/> |
146 | 148 |
<addaction name="actionRecognizeTable"/> |
147 | 149 |
</widget> |
... | ... | |
1062 | 1064 |
<normaloff>:/newPrefix/find_replace.png</normaloff>:/newPrefix/find_replace.png</iconset> |
1063 | 1065 |
</property> |
1064 | 1066 |
<property name="text"> |
1065 |
<string>Find/Replace</string> |
|
1067 |
<string>Text Find/Replace</string>
|
|
1066 | 1068 |
</property> |
1067 | 1069 |
<property name="toolTip"> |
1068 | 1070 |
<string>Fine/Replace</string> |
... | ... | |
1244 | 1246 |
</action> |
1245 | 1247 |
<action name="actionExportAsSVG"> |
1246 | 1248 |
<property name="icon"> |
1247 |
<iconset resource="../res/MainWindow.qrc">
|
|
1249 |
<iconset> |
|
1248 | 1250 |
<normaloff>:/newPrefix/svg.png</normaloff>:/newPrefix/svg.png</iconset> |
1249 | 1251 |
</property> |
1250 | 1252 |
<property name="text"> |
... | ... | |
1271 | 1273 |
</action> |
1272 | 1274 |
<action name="actionRecognizeTable"> |
1273 | 1275 |
<property name="icon"> |
1274 |
<iconset resource="../res/MainWindow.qrc">
|
|
1276 |
<iconset> |
|
1275 | 1277 |
<normaloff>:/newPrefix/table_ocr.png</normaloff>:/newPrefix/table_ocr.png</iconset> |
1276 | 1278 |
</property> |
1277 | 1279 |
<property name="text"> |
... | ... | |
1308 | 1310 |
<string>Redo</string> |
1309 | 1311 |
</property> |
1310 | 1312 |
</action> |
1313 |
<action name="actionSymbol_Replace_Insert"> |
|
1314 |
<property name="text"> |
|
1315 |
<string>Symbol Replace/Insert</string> |
|
1316 |
</property> |
|
1317 |
</action> |
|
1311 | 1318 |
</widget> |
1312 | 1319 |
<resources> |
1313 | 1320 |
<include location="../res/MainWindow.qrc"/> |
DTI_PID/DTI_PID/UI/ReplaceSymbol.ui | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<ui version="4.0"> |
|
3 |
<class>ReplaceSymbolDialog</class> |
|
4 |
<widget class="QDialog" name="ReplaceSymbolDialog"> |
|
5 |
<property name="geometry"> |
|
6 |
<rect> |
|
7 |
<x>0</x> |
|
8 |
<y>0</y> |
|
9 |
<width>529</width> |
|
10 |
<height>313</height> |
|
11 |
</rect> |
|
12 |
</property> |
|
13 |
<property name="minimumSize"> |
|
14 |
<size> |
|
15 |
<width>350</width> |
|
16 |
<height>0</height> |
|
17 |
</size> |
|
18 |
</property> |
|
19 |
<property name="maximumSize"> |
|
20 |
<size> |
|
21 |
<width>9999</width> |
|
22 |
<height>9999</height> |
|
23 |
</size> |
|
24 |
</property> |
|
25 |
<property name="font"> |
|
26 |
<font> |
|
27 |
<family>맑은 고딕</family> |
|
28 |
<weight>75</weight> |
|
29 |
<bold>true</bold> |
|
30 |
</font> |
|
31 |
</property> |
|
32 |
<property name="windowTitle"> |
|
33 |
<string>Symbol Replace</string> |
|
34 |
</property> |
|
35 |
<layout class="QGridLayout" name="gridLayout_3"> |
|
36 |
<item row="1" column="0"> |
|
37 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
38 |
<item> |
|
39 |
<widget class="QDialogButtonBox" name="buttonBox"> |
|
40 |
<property name="standardButtons"> |
|
41 |
<set>QDialogButtonBox::Close</set> |
|
42 |
</property> |
|
43 |
</widget> |
|
44 |
</item> |
|
45 |
</layout> |
|
46 |
</item> |
|
47 |
<item row="0" column="0"> |
|
48 |
<widget class="QWidget" name="widget" native="true"> |
|
49 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
50 |
<item row="0" column="0"> |
|
51 |
<layout class="QGridLayout" name="gridLayout"> |
|
52 |
<item row="1" column="1"> |
|
53 |
<widget class="QLineEdit" name="lineEdit_2"/> |
|
54 |
</item> |
|
55 |
<item row="0" column="1"> |
|
56 |
<widget class="QLineEdit" name="lineEdit"/> |
|
57 |
</item> |
|
58 |
<item row="1" column="0"> |
|
59 |
<widget class="QLabel" name="labelReplace"> |
|
60 |
<property name="font"> |
|
61 |
<font> |
|
62 |
<weight>50</weight> |
|
63 |
<bold>false</bold> |
|
64 |
</font> |
|
65 |
</property> |
|
66 |
<property name="text"> |
|
67 |
<string>Replace :</string> |
|
68 |
</property> |
|
69 |
</widget> |
|
70 |
</item> |
|
71 |
<item row="2" column="1" colspan="2"> |
|
72 |
<widget class="QPlainTextEdit" name="plainTextEdit"/> |
|
73 |
</item> |
|
74 |
<item row="1" column="2"> |
|
75 |
<widget class="QPushButton" name="pushButtonRun"> |
|
76 |
<property name="font"> |
|
77 |
<font> |
|
78 |
<weight>50</weight> |
|
79 |
<bold>false</bold> |
|
80 |
</font> |
|
81 |
</property> |
|
82 |
<property name="text"> |
|
83 |
<string>Run</string> |
|
84 |
</property> |
|
85 |
</widget> |
|
86 |
</item> |
|
87 |
<item row="0" column="0"> |
|
88 |
<widget class="QLabel" name="label"> |
|
89 |
<property name="font"> |
|
90 |
<font> |
|
91 |
<weight>50</weight> |
|
92 |
<bold>false</bold> |
|
93 |
</font> |
|
94 |
</property> |
|
95 |
<property name="text"> |
|
96 |
<string>Find : </string> |
|
97 |
</property> |
|
98 |
</widget> |
|
99 |
</item> |
|
100 |
<item row="2" column="0"> |
|
101 |
<widget class="QLabel" name="label_3"> |
|
102 |
<property name="font"> |
|
103 |
<font> |
|
104 |
<weight>50</weight> |
|
105 |
<bold>false</bold> |
|
106 |
</font> |
|
107 |
</property> |
|
108 |
<property name="text"> |
|
109 |
<string>Condition: </string> |
|
110 |
</property> |
|
111 |
</widget> |
|
112 |
</item> |
|
113 |
<item row="0" column="2"> |
|
114 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
115 |
<item> |
|
116 |
<widget class="QRadioButton" name="radioButtonReplace"> |
|
117 |
<property name="font"> |
|
118 |
<font> |
|
119 |
<weight>50</weight> |
|
120 |
<bold>false</bold> |
|
121 |
</font> |
|
122 |
</property> |
|
123 |
<property name="text"> |
|
124 |
<string>Replace</string> |
|
125 |
</property> |
|
126 |
<property name="checked"> |
|
127 |
<bool>true</bool> |
|
128 |
</property> |
|
129 |
<attribute name="buttonGroup"> |
|
130 |
<string notr="true">buttonGroup</string> |
|
131 |
</attribute> |
|
132 |
</widget> |
|
133 |
</item> |
|
134 |
<item> |
|
135 |
<widget class="QRadioButton" name="radioButtonInsert"> |
|
136 |
<property name="font"> |
|
137 |
<font> |
|
138 |
<weight>50</weight> |
|
139 |
<bold>false</bold> |
|
140 |
</font> |
|
141 |
</property> |
|
142 |
<property name="text"> |
|
143 |
<string>Insert</string> |
|
144 |
</property> |
|
145 |
<attribute name="buttonGroup"> |
|
146 |
<string notr="true">buttonGroup</string> |
|
147 |
</attribute> |
|
148 |
</widget> |
|
149 |
</item> |
|
150 |
</layout> |
|
151 |
</item> |
|
152 |
</layout> |
|
153 |
</item> |
|
154 |
</layout> |
|
155 |
</widget> |
|
156 |
</item> |
|
157 |
</layout> |
|
158 |
</widget> |
|
159 |
<resources/> |
|
160 |
<connections/> |
|
161 |
<buttongroups> |
|
162 |
<buttongroup name="buttonGroup"/> |
|
163 |
</buttongroups> |
|
164 |
</ui> |
DTI_PID/DTI_PID/UI/TextItemEdit.ui | ||
---|---|---|
42 | 42 |
<item row="0" column="0"> |
43 | 43 |
<widget class="QLabel" name="label_2"> |
44 | 44 |
<property name="text"> |
45 |
<string>Text</string> |
|
45 |
<string>Text : </string>
|
|
46 | 46 |
</property> |
47 | 47 |
</widget> |
48 | 48 |
</item> |
49 | 49 |
<item row="1" column="0"> |
50 | 50 |
<widget class="QLabel" name="label"> |
51 | 51 |
<property name="text"> |
52 |
<string>Replace</string> |
|
52 |
<string>Replace : </string>
|
|
53 | 53 |
</property> |
54 | 54 |
</widget> |
55 | 55 |
</item> |
... | ... | |
84 | 84 |
</widget> |
85 | 85 |
</item> |
86 | 86 |
<item> |
87 |
<widget class="QCheckBox" name="checkBoxSymbol"> |
|
88 |
<property name="text"> |
|
89 |
<string>Symbol</string> |
|
90 |
</property> |
|
91 |
</widget> |
|
92 |
</item> |
|
93 |
<item> |
|
87 | 94 |
<widget class="QDialogButtonBox" name="buttonBox"> |
88 | 95 |
<property name="orientation"> |
89 | 96 |
<enum>Qt::Horizontal</enum> |
내보내기 Unified diff