개정판 af908f42
issue #000: add ui search text box
Change-Id: If57639eafc2f3520d3876b24548fcb9c1fafadbc
DTI_PID/DTI_PID/SymbolEditorDialog.py | ||
---|---|---|
321 | 321 |
''' |
322 | 322 |
@brief Init Forms with type and default values |
323 | 323 |
''' |
324 |
|
|
325 | 324 |
def initForms(self): |
326 | 325 |
self.ui.minMatchPointLineEdit.setValidator(QRegExpValidator(QtCore.QRegExp("^[0-9]\d+$"))) |
327 | 326 |
self.initDefaultSymbolDirectionComboBoxItems() |
... | ... | |
347 | 346 |
if hoberIndex is not -1: |
348 | 347 |
self.ui.comboBoxHoverColor.setCurrentIndex(hoberIndex) |
349 | 348 |
|
349 |
# old color setting not used |
|
350 |
self.ui.comboBoxNormalColor.setHidden(True) |
|
351 |
self.ui.comboBoxHoverColor.setHidden(True) |
|
352 |
self.ui.label.setHidden(True) |
|
353 |
self.ui.label_2.setHidden(True) |
|
354 |
|
|
350 | 355 |
''' |
351 | 356 |
@brief Init Symbol Type ComboBox Items |
352 | 357 |
@author Jeongwoo |
353 | 358 |
@date 2018.04.06 |
354 | 359 |
''' |
355 |
|
|
356 | 360 |
def initSymbolTypeComboBoxItems(self): |
357 | 361 |
app_doc_data = AppDocData.instance() |
358 | 362 |
|
DTI_PID/DTI_PID/SymbolEditor_UI.py | ||
---|---|---|
348 | 348 |
self.groupBox.setObjectName("groupBox") |
349 | 349 |
self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox) |
350 | 350 |
self.gridLayout_8.setObjectName("gridLayout_8") |
351 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
352 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
353 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
354 |
self.horizontalLayout_2.addItem(spacerItem) |
|
355 |
self.lineEditSearch = QtWidgets.QLineEdit(self.groupBox) |
|
356 |
self.lineEditSearch.setObjectName("lineEditSearch") |
|
357 |
self.horizontalLayout_2.addWidget(self.lineEditSearch) |
|
358 |
self.pushButtonSearch = QtWidgets.QPushButton(self.groupBox) |
|
359 |
self.pushButtonSearch.setObjectName("pushButtonSearch") |
|
360 |
self.horizontalLayout_2.addWidget(self.pushButtonSearch) |
|
361 |
self.gridLayout_8.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) |
|
351 | 362 |
self.treeViewSymbolCategory = QtWidgets.QTreeView(self.groupBox) |
352 | 363 |
self.treeViewSymbolCategory.setObjectName("treeViewSymbolCategory") |
353 |
self.gridLayout_8.addWidget(self.treeViewSymbolCategory, 0, 0, 1, 1)
|
|
364 |
self.gridLayout_8.addWidget(self.treeViewSymbolCategory, 4, 0, 1, 1)
|
|
354 | 365 |
self.gridLayout_7.addWidget(self.groupBox, 5, 0, 1, 4) |
355 | 366 |
self.immediateInsertLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
356 | 367 |
font = QtGui.QFont() |
... | ... | |
626 | 637 |
self.label.setText(_translate("Dialog", "Normal Color :")) |
627 | 638 |
self.label_2.setText(_translate("Dialog", "Highlight Color :")) |
628 | 639 |
self.groupBox.setTitle(_translate("Dialog", "Base Symbol")) |
640 |
self.pushButtonSearch.setText(_translate("Dialog", "Search")) |
|
629 | 641 |
self.immediateInsertLabel.setText(_translate("Dialog", "Insert Symbol When Create")) |
630 | 642 |
self.additionalSymbolLabel.setText(_translate("Dialog", "Addition Symbol")) |
631 | 643 |
self.hasInstrumentLabel.setText(_translate("Dialog", "Include Text")) |
DTI_PID/DTI_PID/UI/SymbolEditor.ui | ||
---|---|---|
758 | 758 |
</property> |
759 | 759 |
<layout class="QGridLayout" name="gridLayout_8"> |
760 | 760 |
<item row="0" column="0"> |
761 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
762 |
<item> |
|
763 |
<spacer name="horizontalSpacer"> |
|
764 |
<property name="orientation"> |
|
765 |
<enum>Qt::Horizontal</enum> |
|
766 |
</property> |
|
767 |
<property name="sizeHint" stdset="0"> |
|
768 |
<size> |
|
769 |
<width>40</width> |
|
770 |
<height>20</height> |
|
771 |
</size> |
|
772 |
</property> |
|
773 |
</spacer> |
|
774 |
</item> |
|
775 |
<item> |
|
776 |
<widget class="QLineEdit" name="lineEditSearch"/> |
|
777 |
</item> |
|
778 |
<item> |
|
779 |
<widget class="QPushButton" name="pushButtonSearch"> |
|
780 |
<property name="text"> |
|
781 |
<string>Search</string> |
|
782 |
</property> |
|
783 |
</widget> |
|
784 |
</item> |
|
785 |
</layout> |
|
786 |
</item> |
|
787 |
<item row="4" column="0"> |
|
761 | 788 |
<widget class="QTreeView" name="treeViewSymbolCategory"/> |
762 | 789 |
</item> |
763 | 790 |
</layout> |
내보내기 Unified diff