개정판 3420de15
issue #1049 : 옵션 창 및 기능
Change-Id: I189e3b07a4899b88bea753e4379374bf6a745479
HYTOS/HYTOS/OptionsDialog.py | ||
---|---|---|
3 | 3 |
|
4 | 4 |
import os |
5 | 5 |
import sys |
6 |
from PyQt5.QtCore import * |
|
7 |
from PyQt5.QtGui import * |
|
6 |
#from PyQt5.QtCore import * |
|
7 |
#from PyQt5.QtGui import * |
|
8 |
#from PyQt5.QtWidgets import * |
|
9 |
|
|
10 |
from PyQt5 import QtCore, QtGui, QtWidgets |
|
8 | 11 |
from PyQt5.QtWidgets import * |
12 |
|
|
9 | 13 |
import sqlite3 |
10 | 14 |
from App import App |
11 | 15 |
from AppDocData import AppDocData |
... | ... | |
21 | 25 |
self.ui = Options_UI.Ui_OptionsDialog() |
22 | 26 |
self.ui.setupUi(self) |
23 | 27 |
|
28 |
_translate = QtCore.QCoreApplication.translate |
|
29 |
|
|
30 |
self.ui.toolButton_WorkSpace.clicked.connect(self.selectWorkSpaceClick) |
|
31 |
self.initTagFontSize() |
|
32 |
self.initWorkSpace() |
|
33 |
|
|
24 | 34 |
self.load_data() |
25 | 35 |
|
26 |
# connect signals and slots |
|
27 |
self.ui.radioButtonFixedSize.toggled.connect(self.onFixedSizeToggled) |
|
36 |
def initWorkSpace(self): |
|
37 |
self.ui.lineEdit_WorkSpace.setText(os.getcwd()) |
|
38 |
|
|
39 |
def initTagFontSize(self): |
|
40 |
self.ui.comboBox_TagFontSize.clear() |
|
41 |
|
|
42 |
for size in range(5, 13): |
|
43 |
self.ui.comboBox_TagFontSize.addItem(str(size), size) |
|
44 |
|
|
45 |
self.ui.comboBox_TagFontSize.setCurrentIndex(4) |
|
46 |
|
|
47 |
def selectWorkSpaceClick(self): |
|
48 |
_translate = QtCore.QCoreApplication.translate |
|
49 |
|
|
50 |
initPath = self.ui.lineEdit_WorkSpace.text() |
|
51 |
|
|
52 |
options = QFileDialog.Options() |
|
53 |
options |= QFileDialog.DontUseNativeDialog |
|
54 |
options |= QFileDialog.ShowDirsOnly |
|
55 |
selectedDir = QFileDialog.getExistingDirectory(self, _translate('Work Space Dialog', "Select folder for Work Space"), initPath , options=options) |
|
56 |
if os.path.isdir(selectedDir): |
|
57 |
self.ui.lineEdit_WorkSpace.setText(selectedDir) |
|
58 |
|
|
28 | 59 |
|
29 | 60 |
def load_data(self): |
61 |
|
|
30 | 62 |
docData = AppDocData.instance() |
31 | 63 |
|
32 |
configs = docData.getConfigs('Symbol Style', 'Opacity') |
|
33 |
self.ui.spinBoxSymbolOpacity.setValue(int(configs[0].value) if configs else 50) |
|
34 |
|
|
35 |
self.ui.labelFontName.setBuddy(self.ui.fontComboBox) |
|
36 |
configs = docData.getConfigs('Text Style', 'Font Name') |
|
37 |
if configs: |
|
38 |
self.ui.fontComboBox.setCurrentFont(QFont(configs[0].value, 10)) |
|
39 |
configs = docData.getConfigs('Text Style', 'Font Size') |
|
40 |
if configs: |
|
41 |
size = int(configs[0].value) |
|
42 |
self.ui.radioButtonAutoSize.setChecked(True if size == -1 else False) |
|
43 |
self.ui.radioButtonFixedSize.setChecked(True if size != -1 else False) |
|
44 |
self.ui.spinBoxFontSize.setValue(size if size != -1 else 10) |
|
45 |
self.ui.spinBoxFontSize.setEnabled(self.ui.radioButtonFixedSize.isChecked()) |
|
46 |
else: |
|
47 |
self.ui.radioButtonAutoSize.setChecked(True) |
|
48 |
self.ui.radioButtonFixedSize.setChecked(False) |
|
49 |
self.ui.spinBoxFontSize.setValue(10) |
|
50 |
self.ui.spinBoxFontSize.setEnabled(self.ui.radioButtonFixedSize.isChecked()) |
|
51 |
|
|
52 |
def onFixedSizeToggled(self, radioButton): |
|
53 |
self.ui.spinBoxFontSize.setEnabled(self.ui.radioButtonFixedSize.isChecked()) |
|
64 |
configs = docData.getAppConfigs('option', 'TagFontSize') |
|
65 |
if configs and len(configs) == 1: |
|
66 |
index = self.getIndexByValue(configs[0].value) |
|
67 |
if index: |
|
68 |
self.ui.comboBox_TagFontSize.setCurrentIndex(index) |
|
69 |
|
|
70 |
|
|
71 |
configs = docData.getAppConfigs('option', 'WorkSpace') |
|
72 |
if configs and len(configs) == 1: |
|
73 |
self.ui.lineEdit_WorkSpace.setText(configs[0].value) |
|
74 |
|
|
75 |
def getIndexByValue(self, value): |
|
76 |
index = None |
|
77 |
|
|
78 |
for index in range(self.ui.comboBox_TagFontSize.count()): |
|
79 |
if int(self.ui.comboBox_TagFontSize.itemData(index)) == int(value): |
|
80 |
return index |
|
81 |
|
|
82 |
return index |
|
54 | 83 |
|
55 | 84 |
def accept(self): |
56 | 85 |
|
... | ... | |
59 | 88 |
|
60 | 89 |
configs = [] |
61 | 90 |
|
62 |
configs.append(Config('Symbol Style', 'Opacity', str(self.ui.spinBoxSymbolOpacity.value()))) |
|
63 |
|
|
64 |
font = self.ui.fontComboBox.currentFont() |
|
65 |
configs.append(Config('Text Style', 'Font Name', font.family())) |
|
66 |
configs.append(Config('Text Style', 'Font Size', str(self.ui.spinBoxFontSize.value()) if self.ui.radioButtonFixedSize.isChecked() else '-1')) |
|
67 |
|
|
68 |
docData.saveConfigs(configs) |
|
91 |
configs.append(Config('option', 'WorkSpace', self.ui.lineEdit_WorkSpace.text())) |
|
92 |
configs.append(Config('option', 'TagFontSize', self.ui.comboBox_TagFontSize.currentData())) |
|
93 |
|
|
94 |
docData.saveAppConfigs(configs) |
|
69 | 95 |
|
70 |
docData.configTable = None |
|
71 | 96 |
except Exception as ex: |
72 | 97 |
from App import App |
73 | 98 |
from AppDocData import MessageType |
... | ... | |
78 | 103 |
QDialog.accept(self) |
79 | 104 |
|
80 | 105 |
def reject(self): |
81 |
QDialog.reject(self) |
|
106 |
QDialog.reject(self) |
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
if __name__ == '__main__': |
|
111 |
from OptionsDialog import QOptionsDialog |
|
112 |
from App import App |
|
113 |
app = App(sys.argv) |
|
114 |
|
|
115 |
|
|
116 |
if True: |
|
117 |
dlg = QOptionsDialog(None) |
|
118 |
dlg.exec_() |
HYTOS/HYTOS/Options_UI.py | ||
---|---|---|
13 | 13 |
class Ui_OptionsDialog(object): |
14 | 14 |
def setupUi(self, OptionsDialog): |
15 | 15 |
OptionsDialog.setObjectName("OptionsDialog") |
16 |
OptionsDialog.resize(363, 194)
|
|
16 |
OptionsDialog.resize(500, 179)
|
|
17 | 17 |
font = QtGui.QFont() |
18 | 18 |
font.setFamily("맑은 고딕") |
19 | 19 |
OptionsDialog.setFont(font) |
20 | 20 |
icon = QtGui.QIcon() |
21 |
icon.addPixmap(QtGui.QPixmap(":/images/Option.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
21 |
icon.addPixmap(QtGui.QPixmap(":/images/HYTOS.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
22 | 22 |
OptionsDialog.setWindowIcon(icon) |
23 |
self.formLayout = QtWidgets.QFormLayout(OptionsDialog) |
|
24 |
self.formLayout.setObjectName("formLayout") |
|
25 |
self.tabWidget = QtWidgets.QTabWidget(OptionsDialog) |
|
26 |
self.tabWidget.setObjectName("tabWidget") |
|
27 |
self.tab = QtWidgets.QWidget() |
|
28 |
self.tab.setObjectName("tab") |
|
29 |
self.gridLayout_3 = QtWidgets.QGridLayout(self.tab) |
|
30 |
self.gridLayout_3.setObjectName("gridLayout_3") |
|
31 |
self.groupBoxText = QtWidgets.QGroupBox(self.tab) |
|
32 |
self.groupBoxText.setTitle("") |
|
33 |
self.groupBoxText.setObjectName("groupBoxText") |
|
34 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBoxText) |
|
23 |
self.gridLayout_2 = QtWidgets.QGridLayout(OptionsDialog) |
|
35 | 24 |
self.gridLayout_2.setObjectName("gridLayout_2") |
36 |
self.verticalLayout_5 = QtWidgets.QVBoxLayout() |
|
37 |
self.verticalLayout_5.setObjectName("verticalLayout_5") |
|
38 |
self.horizontalLayout_14 = QtWidgets.QHBoxLayout() |
|
39 |
self.horizontalLayout_14.setObjectName("horizontalLayout_14") |
|
40 |
self.label_2 = QtWidgets.QLabel(self.groupBoxText) |
|
41 |
self.label_2.setObjectName("label_2") |
|
42 |
self.horizontalLayout_14.addWidget(self.label_2) |
|
43 |
self.spinBoxSymbolOpacity = QtWidgets.QSpinBox(self.groupBoxText) |
|
44 |
self.spinBoxSymbolOpacity.setMaximum(100) |
|
45 |
self.spinBoxSymbolOpacity.setProperty("value", 50) |
|
46 |
self.spinBoxSymbolOpacity.setObjectName("spinBoxSymbolOpacity") |
|
47 |
self.horizontalLayout_14.addWidget(self.spinBoxSymbolOpacity) |
|
48 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
49 |
self.horizontalLayout_14.addItem(spacerItem) |
|
50 |
self.verticalLayout_5.addLayout(self.horizontalLayout_14) |
|
51 |
self.gridLayout_2.addLayout(self.verticalLayout_5, 0, 0, 1, 1) |
|
52 |
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
|
53 |
self.gridLayout_2.addItem(spacerItem1, 1, 0, 1, 1) |
|
54 |
self.gridLayout_3.addWidget(self.groupBoxText, 0, 0, 1, 1) |
|
55 |
self.tabWidget.addTab(self.tab, "") |
|
56 |
self.tab_2 = QtWidgets.QWidget() |
|
57 |
self.tab_2.setObjectName("tab_2") |
|
58 |
self.gridLayout = QtWidgets.QGridLayout(self.tab_2) |
|
25 |
self.groupBox = QtWidgets.QGroupBox(OptionsDialog) |
|
26 |
font = QtGui.QFont() |
|
27 |
font.setBold(True) |
|
28 |
font.setWeight(75) |
|
29 |
self.groupBox.setFont(font) |
|
30 |
self.groupBox.setObjectName("groupBox") |
|
31 |
self.gridLayout = QtWidgets.QGridLayout(self.groupBox) |
|
59 | 32 |
self.gridLayout.setObjectName("gridLayout") |
60 |
self.groupBoxText_2 = QtWidgets.QGroupBox(self.tab_2) |
|
61 |
self.groupBoxText_2.setTitle("") |
|
62 |
self.groupBoxText_2.setObjectName("groupBoxText_2") |
|
63 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBoxText_2) |
|
64 |
self.gridLayout_4.setObjectName("gridLayout_4") |
|
65 |
self.verticalLayout_6 = QtWidgets.QVBoxLayout() |
|
66 |
self.verticalLayout_6.setObjectName("verticalLayout_6") |
|
67 |
self.horizontalLayout_16 = QtWidgets.QHBoxLayout() |
|
68 |
self.horizontalLayout_16.setObjectName("horizontalLayout_16") |
|
69 |
self.labelFontName = QtWidgets.QLabel(self.groupBoxText_2) |
|
70 |
self.labelFontName.setMinimumSize(QtCore.QSize(0, 0)) |
|
71 |
self.labelFontName.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
72 |
self.labelFontName.setObjectName("labelFontName") |
|
73 |
self.horizontalLayout_16.addWidget(self.labelFontName) |
|
74 |
self.fontComboBox = QtWidgets.QFontComboBox(self.groupBoxText_2) |
|
75 |
self.fontComboBox.setObjectName("fontComboBox") |
|
76 |
self.horizontalLayout_16.addWidget(self.fontComboBox) |
|
77 |
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
78 |
self.horizontalLayout_16.addItem(spacerItem2) |
|
79 |
self.verticalLayout_6.addLayout(self.horizontalLayout_16) |
|
80 |
self.horizontalLayout_12 = QtWidgets.QHBoxLayout() |
|
81 |
self.horizontalLayout_12.setObjectName("horizontalLayout_12") |
|
82 |
self.labelFontSize = QtWidgets.QLabel(self.groupBoxText_2) |
|
83 |
self.labelFontSize.setMinimumSize(QtCore.QSize(0, 0)) |
|
84 |
self.labelFontSize.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) |
|
85 |
self.labelFontSize.setObjectName("labelFontSize") |
|
86 |
self.horizontalLayout_12.addWidget(self.labelFontSize) |
|
87 |
self.radioButtonAutoSize = QtWidgets.QRadioButton(self.groupBoxText_2) |
|
88 |
self.radioButtonAutoSize.setObjectName("radioButtonAutoSize") |
|
89 |
self.horizontalLayout_12.addWidget(self.radioButtonAutoSize) |
|
90 |
self.radioButtonFixedSize = QtWidgets.QRadioButton(self.groupBoxText_2) |
|
91 |
self.radioButtonFixedSize.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
92 |
self.radioButtonFixedSize.setObjectName("radioButtonFixedSize") |
|
93 |
self.horizontalLayout_12.addWidget(self.radioButtonFixedSize) |
|
94 |
self.spinBoxFontSize = QtWidgets.QSpinBox(self.groupBoxText_2) |
|
95 |
self.spinBoxFontSize.setObjectName("spinBoxFontSize") |
|
96 |
self.horizontalLayout_12.addWidget(self.spinBoxFontSize) |
|
97 |
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
98 |
self.horizontalLayout_12.addItem(spacerItem3) |
|
99 |
self.verticalLayout_6.addLayout(self.horizontalLayout_12) |
|
100 |
self.gridLayout_4.addLayout(self.verticalLayout_6, 0, 0, 1, 1) |
|
101 |
spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) |
|
102 |
self.gridLayout_4.addItem(spacerItem4, 1, 0, 1, 1) |
|
103 |
self.gridLayout.addWidget(self.groupBoxText_2, 0, 0, 1, 1) |
|
104 |
self.tabWidget.addTab(self.tab_2, "") |
|
105 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.tabWidget) |
|
33 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
|
34 |
self.horizontalLayout.setObjectName("horizontalLayout") |
|
35 |
self.label_2 = QtWidgets.QLabel(self.groupBox) |
|
36 |
self.label_2.setMinimumSize(QtCore.QSize(90, 0)) |
|
37 |
self.label_2.setMaximumSize(QtCore.QSize(90, 16777215)) |
|
38 |
font = QtGui.QFont() |
|
39 |
font.setBold(False) |
|
40 |
font.setWeight(50) |
|
41 |
self.label_2.setFont(font) |
|
42 |
self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) |
|
43 |
self.label_2.setObjectName("label_2") |
|
44 |
self.horizontalLayout.addWidget(self.label_2) |
|
45 |
self.lineEdit_WorkSpace = QtWidgets.QLineEdit(self.groupBox) |
|
46 |
self.lineEdit_WorkSpace.setEnabled(False) |
|
47 |
self.lineEdit_WorkSpace.setObjectName("lineEdit_WorkSpace") |
|
48 |
self.horizontalLayout.addWidget(self.lineEdit_WorkSpace) |
|
49 |
self.toolButton_WorkSpace = QtWidgets.QToolButton(self.groupBox) |
|
50 |
font = QtGui.QFont() |
|
51 |
font.setBold(False) |
|
52 |
font.setWeight(50) |
|
53 |
self.toolButton_WorkSpace.setFont(font) |
|
54 |
self.toolButton_WorkSpace.setObjectName("toolButton_WorkSpace") |
|
55 |
self.horizontalLayout.addWidget(self.toolButton_WorkSpace) |
|
56 |
self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) |
|
57 |
self.gridLayout_2.addWidget(self.groupBox, 1, 0, 1, 1) |
|
106 | 58 |
self.buttonBox = QtWidgets.QDialogButtonBox(OptionsDialog) |
107 | 59 |
self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
108 | 60 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
109 | 61 |
self.buttonBox.setObjectName("buttonBox") |
110 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.buttonBox) |
|
62 |
self.gridLayout_2.addWidget(self.buttonBox, 2, 0, 1, 1) |
|
63 |
self.groupBox_2 = QtWidgets.QGroupBox(OptionsDialog) |
|
64 |
font = QtGui.QFont() |
|
65 |
font.setBold(True) |
|
66 |
font.setWeight(75) |
|
67 |
self.groupBox_2.setFont(font) |
|
68 |
self.groupBox_2.setObjectName("groupBox_2") |
|
69 |
self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2) |
|
70 |
self.gridLayout_3.setObjectName("gridLayout_3") |
|
71 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
|
72 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
|
73 |
self.label = QtWidgets.QLabel(self.groupBox_2) |
|
74 |
self.label.setMinimumSize(QtCore.QSize(90, 0)) |
|
75 |
self.label.setMaximumSize(QtCore.QSize(90, 16777215)) |
|
76 |
font = QtGui.QFont() |
|
77 |
font.setBold(False) |
|
78 |
font.setWeight(50) |
|
79 |
self.label.setFont(font) |
|
80 |
self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) |
|
81 |
self.label.setObjectName("label") |
|
82 |
self.horizontalLayout_2.addWidget(self.label) |
|
83 |
self.comboBox_TagFontSize = QtWidgets.QComboBox(self.groupBox_2) |
|
84 |
self.comboBox_TagFontSize.setMinimumSize(QtCore.QSize(70, 0)) |
|
85 |
self.comboBox_TagFontSize.setMaximumSize(QtCore.QSize(70, 16777215)) |
|
86 |
self.comboBox_TagFontSize.setObjectName("comboBox_TagFontSize") |
|
87 |
self.horizontalLayout_2.addWidget(self.comboBox_TagFontSize) |
|
88 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
|
89 |
self.horizontalLayout_2.addItem(spacerItem) |
|
90 |
self.gridLayout_3.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) |
|
91 |
self.gridLayout_2.addWidget(self.groupBox_2, 0, 0, 1, 1) |
|
111 | 92 |
|
112 | 93 |
self.retranslateUi(OptionsDialog) |
113 |
self.tabWidget.setCurrentIndex(0) |
|
114 | 94 |
self.buttonBox.accepted.connect(OptionsDialog.accept) |
115 | 95 |
self.buttonBox.rejected.connect(OptionsDialog.reject) |
116 | 96 |
QtCore.QMetaObject.connectSlotsByName(OptionsDialog) |
97 |
OptionsDialog.setTabOrder(self.comboBox_TagFontSize, self.lineEdit_WorkSpace) |
|
98 |
OptionsDialog.setTabOrder(self.lineEdit_WorkSpace, self.toolButton_WorkSpace) |
|
117 | 99 |
|
118 | 100 |
def retranslateUi(self, OptionsDialog): |
119 | 101 |
_translate = QtCore.QCoreApplication.translate |
120 |
OptionsDialog.setWindowTitle(_translate("OptionsDialog", "HYTOS Options")) |
|
121 |
self.label_2.setText(_translate("OptionsDialog", "Opacity : ")) |
|
122 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("OptionsDialog", "Symbol")) |
|
123 |
self.labelFontName.setText(_translate("OptionsDialog", "Font Name : ")) |
|
124 |
self.labelFontSize.setText(_translate("OptionsDialog", "Font Size : ")) |
|
125 |
self.radioButtonAutoSize.setText(_translate("OptionsDialog", "Auto")) |
|
126 |
self.radioButtonFixedSize.setText(_translate("OptionsDialog", "Fixed")) |
|
127 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("OptionsDialog", "Text")) |
|
102 |
OptionsDialog.setWindowTitle(_translate("OptionsDialog", "Options")) |
|
103 |
self.groupBox.setTitle(_translate("OptionsDialog", "Directory")) |
|
104 |
self.label_2.setText(_translate("OptionsDialog", "Work Space :")) |
|
105 |
self.toolButton_WorkSpace.setText(_translate("OptionsDialog", "...")) |
|
106 |
self.groupBox_2.setTitle(_translate("OptionsDialog", "Text Style")) |
|
107 |
self.label.setText(_translate("OptionsDialog", "Tag Font Size :")) |
|
128 | 108 |
import Resource_rc |
HYTOS/HYTOS/UI/Options.ui | ||
---|---|---|
6 | 6 |
<rect> |
7 | 7 |
<x>0</x> |
8 | 8 |
<y>0</y> |
9 |
<width>363</width>
|
|
10 |
<height>194</height>
|
|
9 |
<width>500</width>
|
|
10 |
<height>179</height>
|
|
11 | 11 |
</rect> |
12 | 12 |
</property> |
13 | 13 |
<property name="font"> |
... | ... | |
16 | 16 |
</font> |
17 | 17 |
</property> |
18 | 18 |
<property name="windowTitle"> |
19 |
<string>HYTOS Options</string>
|
|
19 |
<string>Options</string> |
|
20 | 20 |
</property> |
21 | 21 |
<property name="windowIcon"> |
22 | 22 |
<iconset resource="../res/Resource.qrc"> |
23 |
<normaloff>:/images/Option.png</normaloff>:/images/Option.png</iconset>
|
|
23 |
<normaloff>:/images/HYTOS.png</normaloff>:/images/HYTOS.png</iconset>
|
|
24 | 24 |
</property> |
25 |
<layout class="QFormLayout" name="formLayout"> |
|
26 |
<item row="0" column="0" colspan="2"> |
|
27 |
<widget class="QTabWidget" name="tabWidget"> |
|
28 |
<property name="currentIndex"> |
|
29 |
<number>1</number> |
|
25 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
26 |
<item row="1" column="0"> |
|
27 |
<widget class="QGroupBox" name="groupBox"> |
|
28 |
<property name="font"> |
|
29 |
<font> |
|
30 |
<weight>75</weight> |
|
31 |
<bold>true</bold> |
|
32 |
</font> |
|
30 | 33 |
</property> |
31 |
<widget class="QWidget" name="tab"> |
|
32 |
<attribute name="title"> |
|
33 |
<string>Symbol</string> |
|
34 |
</attribute> |
|
35 |
<layout class="QGridLayout" name="gridLayout_3"> |
|
36 |
<item row="0" column="0"> |
|
37 |
<widget class="QGroupBox" name="groupBoxText"> |
|
38 |
<property name="title"> |
|
39 |
<string/> |
|
40 |
</property> |
|
41 |
<layout class="QGridLayout" name="gridLayout_2"> |
|
42 |
<item row="0" column="0"> |
|
43 |
<layout class="QVBoxLayout" name="verticalLayout_5"> |
|
44 |
<item> |
|
45 |
<layout class="QHBoxLayout" name="horizontalLayout_14"> |
|
46 |
<item> |
|
47 |
<widget class="QLabel" name="label_2"> |
|
48 |
<property name="text"> |
|
49 |
<string>Opacity : </string> |
|
50 |
</property> |
|
51 |
</widget> |
|
52 |
</item> |
|
53 |
<item> |
|
54 |
<widget class="QSpinBox" name="spinBoxSymbolOpacity"> |
|
55 |
<property name="minimum"> |
|
56 |
<number>1</number> |
|
57 |
</property> |
|
58 |
<property name="maximum"> |
|
59 |
<number>100</number> |
|
60 |
</property> |
|
61 |
<property name="value"> |
|
62 |
<number>50</number> |
|
63 |
</property> |
|
64 |
</widget> |
|
65 |
</item> |
|
66 |
<item> |
|
67 |
<spacer name="horizontalSpacer"> |
|
68 |
<property name="orientation"> |
|
69 |
<enum>Qt::Horizontal</enum> |
|
70 |
</property> |
|
71 |
<property name="sizeHint" stdset="0"> |
|
72 |
<size> |
|
73 |
<width>40</width> |
|
74 |
<height>20</height> |
|
75 |
</size> |
|
76 |
</property> |
|
77 |
</spacer> |
|
78 |
</item> |
|
79 |
</layout> |
|
80 |
</item> |
|
81 |
</layout> |
|
82 |
</item> |
|
83 |
<item row="1" column="0"> |
|
84 |
<spacer name="verticalSpacer"> |
|
85 |
<property name="orientation"> |
|
86 |
<enum>Qt::Vertical</enum> |
|
87 |
</property> |
|
88 |
<property name="sizeHint" stdset="0"> |
|
89 |
<size> |
|
90 |
<width>20</width> |
|
91 |
<height>40</height> |
|
92 |
</size> |
|
93 |
</property> |
|
94 |
</spacer> |
|
95 |
</item> |
|
96 |
</layout> |
|
97 |
</widget> |
|
98 |
</item> |
|
99 |
</layout> |
|
100 |
</widget> |
|
101 |
<widget class="QWidget" name="tab_2"> |
|
102 |
<attribute name="title"> |
|
103 |
<string>Text</string> |
|
104 |
</attribute> |
|
105 |
<layout class="QGridLayout" name="gridLayout"> |
|
106 |
<item row="0" column="0"> |
|
107 |
<widget class="QGroupBox" name="groupBoxText_2"> |
|
108 |
<property name="title"> |
|
109 |
<string/> |
|
110 |
</property> |
|
111 |
<layout class="QGridLayout" name="gridLayout_4"> |
|
112 |
<item row="0" column="0"> |
|
113 |
<layout class="QVBoxLayout" name="verticalLayout_6"> |
|
114 |
<item> |
|
115 |
<layout class="QHBoxLayout" name="horizontalLayout_16"> |
|
116 |
<item> |
|
117 |
<widget class="QLabel" name="labelFontName"> |
|
118 |
<property name="minimumSize"> |
|
119 |
<size> |
|
120 |
<width>0</width> |
|
121 |
<height>0</height> |
|
122 |
</size> |
|
123 |
</property> |
|
124 |
<property name="text"> |
|
125 |
<string>Font Name : </string> |
|
126 |
</property> |
|
127 |
<property name="alignment"> |
|
128 |
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
|
129 |
</property> |
|
130 |
</widget> |
|
131 |
</item> |
|
132 |
<item> |
|
133 |
<widget class="QFontComboBox" name="fontComboBox"/> |
|
134 |
</item> |
|
135 |
<item> |
|
136 |
<spacer name="horizontalSpacer_2"> |
|
137 |
<property name="orientation"> |
|
138 |
<enum>Qt::Horizontal</enum> |
|
139 |
</property> |
|
140 |
<property name="sizeHint" stdset="0"> |
|
141 |
<size> |
|
142 |
<width>40</width> |
|
143 |
<height>20</height> |
|
144 |
</size> |
|
145 |
</property> |
|
146 |
</spacer> |
|
147 |
</item> |
|
148 |
</layout> |
|
149 |
</item> |
|
150 |
<item> |
|
151 |
<layout class="QHBoxLayout" name="horizontalLayout_12"> |
|
152 |
<item> |
|
153 |
<widget class="QLabel" name="labelFontSize"> |
|
154 |
<property name="minimumSize"> |
|
155 |
<size> |
|
156 |
<width>0</width> |
|
157 |
<height>0</height> |
|
158 |
</size> |
|
159 |
</property> |
|
160 |
<property name="text"> |
|
161 |
<string>Font Size : </string> |
|
162 |
</property> |
|
163 |
<property name="alignment"> |
|
164 |
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
|
165 |
</property> |
|
166 |
</widget> |
|
167 |
</item> |
|
168 |
<item> |
|
169 |
<widget class="QRadioButton" name="radioButtonAutoSize"> |
|
170 |
<property name="text"> |
|
171 |
<string>Auto</string> |
|
172 |
</property> |
|
173 |
</widget> |
|
174 |
</item> |
|
175 |
<item> |
|
176 |
<widget class="QRadioButton" name="radioButtonFixedSize"> |
|
177 |
<property name="maximumSize"> |
|
178 |
<size> |
|
179 |
<width>50</width> |
|
180 |
<height>16777215</height> |
|
181 |
</size> |
|
182 |
</property> |
|
183 |
<property name="text"> |
|
184 |
<string>Fixed</string> |
|
185 |
</property> |
|
186 |
</widget> |
|
187 |
</item> |
|
188 |
<item> |
|
189 |
<widget class="QSpinBox" name="spinBoxFontSize"/> |
|
190 |
</item> |
|
191 |
<item> |
|
192 |
<spacer name="horizontalSpacer_3"> |
|
193 |
<property name="orientation"> |
|
194 |
<enum>Qt::Horizontal</enum> |
|
195 |
</property> |
|
196 |
<property name="sizeHint" stdset="0"> |
|
197 |
<size> |
|
198 |
<width>40</width> |
|
199 |
<height>20</height> |
|
200 |
</size> |
|
201 |
</property> |
|
202 |
</spacer> |
|
203 |
</item> |
|
204 |
</layout> |
|
205 |
</item> |
|
206 |
</layout> |
|
207 |
</item> |
|
208 |
<item row="1" column="0"> |
|
209 |
<spacer name="verticalSpacer_2"> |
|
210 |
<property name="orientation"> |
|
211 |
<enum>Qt::Vertical</enum> |
|
212 |
</property> |
|
213 |
<property name="sizeHint" stdset="0"> |
|
214 |
<size> |
|
215 |
<width>20</width> |
|
216 |
<height>40</height> |
|
217 |
</size> |
|
218 |
</property> |
|
219 |
</spacer> |
|
220 |
</item> |
|
221 |
</layout> |
|
222 |
</widget> |
|
223 |
</item> |
|
224 |
</layout> |
|
225 |
</widget> |
|
34 |
<property name="title"> |
|
35 |
<string>Directory</string> |
|
36 |
</property> |
|
37 |
<layout class="QGridLayout" name="gridLayout"> |
|
38 |
<item row="0" column="0"> |
|
39 |
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
40 |
<item> |
|
41 |
<widget class="QLabel" name="label_2"> |
|
42 |
<property name="minimumSize"> |
|
43 |
<size> |
|
44 |
<width>90</width> |
|
45 |
<height>0</height> |
|
46 |
</size> |
|
47 |
</property> |
|
48 |
<property name="maximumSize"> |
|
49 |
<size> |
|
50 |
<width>90</width> |
|
51 |
<height>16777215</height> |
|
52 |
</size> |
|
53 |
</property> |
|
54 |
<property name="font"> |
|
55 |
<font> |
|
56 |
<weight>50</weight> |
|
57 |
<bold>false</bold> |
|
58 |
</font> |
|
59 |
</property> |
|
60 |
<property name="text"> |
|
61 |
<string>Work Space :</string> |
|
62 |
</property> |
|
63 |
<property name="alignment"> |
|
64 |
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
|
65 |
</property> |
|
66 |
</widget> |
|
67 |
</item> |
|
68 |
<item> |
|
69 |
<widget class="QLineEdit" name="lineEdit_WorkSpace"> |
|
70 |
<property name="enabled"> |
|
71 |
<bool>false</bool> |
|
72 |
</property> |
|
73 |
</widget> |
|
74 |
</item> |
|
75 |
<item> |
|
76 |
<widget class="QToolButton" name="toolButton_WorkSpace"> |
|
77 |
<property name="font"> |
|
78 |
<font> |
|
79 |
<weight>50</weight> |
|
80 |
<bold>false</bold> |
|
81 |
</font> |
|
82 |
</property> |
|
83 |
<property name="text"> |
|
84 |
<string>...</string> |
|
85 |
</property> |
|
86 |
</widget> |
|
87 |
</item> |
|
88 |
</layout> |
|
89 |
</item> |
|
90 |
</layout> |
|
226 | 91 |
</widget> |
227 | 92 |
</item> |
228 |
<item row="1" column="1">
|
|
93 |
<item row="2" column="0">
|
|
229 | 94 |
<widget class="QDialogButtonBox" name="buttonBox"> |
230 | 95 |
<property name="orientation"> |
231 | 96 |
<enum>Qt::Horizontal</enum> |
... | ... | |
235 | 100 |
</property> |
236 | 101 |
</widget> |
237 | 102 |
</item> |
103 |
<item row="0" column="0"> |
|
104 |
<widget class="QGroupBox" name="groupBox_2"> |
|
105 |
<property name="font"> |
|
106 |
<font> |
|
107 |
<weight>75</weight> |
|
108 |
<bold>true</bold> |
|
109 |
</font> |
|
110 |
</property> |
|
111 |
<property name="title"> |
|
112 |
<string>Text Style</string> |
|
113 |
</property> |
|
114 |
<layout class="QGridLayout" name="gridLayout_3"> |
|
115 |
<item row="0" column="0"> |
|
116 |
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
117 |
<item> |
|
118 |
<widget class="QLabel" name="label"> |
|
119 |
<property name="minimumSize"> |
|
120 |
<size> |
|
121 |
<width>90</width> |
|
122 |
<height>0</height> |
|
123 |
</size> |
|
124 |
</property> |
|
125 |
<property name="maximumSize"> |
|
126 |
<size> |
|
127 |
<width>90</width> |
|
128 |
<height>16777215</height> |
|
129 |
</size> |
|
130 |
</property> |
|
131 |
<property name="font"> |
|
132 |
<font> |
|
133 |
<weight>50</weight> |
|
134 |
<bold>false</bold> |
|
135 |
</font> |
|
136 |
</property> |
|
137 |
<property name="text"> |
|
138 |
<string>Tag Font Size :</string> |
|
139 |
</property> |
|
140 |
<property name="alignment"> |
|
141 |
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
|
142 |
</property> |
|
143 |
</widget> |
|
144 |
</item> |
|
145 |
<item> |
|
146 |
<widget class="QComboBox" name="comboBox_TagFontSize"> |
|
147 |
<property name="minimumSize"> |
|
148 |
<size> |
|
149 |
<width>70</width> |
|
150 |
<height>0</height> |
|
151 |
</size> |
|
152 |
</property> |
|
153 |
<property name="maximumSize"> |
|
154 |
<size> |
|
155 |
<width>70</width> |
|
156 |
<height>16777215</height> |
|
157 |
</size> |
|
158 |
</property> |
|
159 |
</widget> |
|
160 |
</item> |
|
161 |
<item> |
|
162 |
<spacer name="horizontalSpacer"> |
|
163 |
<property name="orientation"> |
|
164 |
<enum>Qt::Horizontal</enum> |
|
165 |
</property> |
|
166 |
<property name="sizeHint" stdset="0"> |
|
167 |
<size> |
|
168 |
<width>40</width> |
|
169 |
<height>20</height> |
|
170 |
</size> |
|
171 |
</property> |
|
172 |
</spacer> |
|
173 |
</item> |
|
174 |
</layout> |
|
175 |
</item> |
|
176 |
</layout> |
|
177 |
</widget> |
|
178 |
</item> |
|
238 | 179 |
</layout> |
239 | 180 |
</widget> |
181 |
<tabstops> |
|
182 |
<tabstop>comboBox_TagFontSize</tabstop> |
|
183 |
<tabstop>lineEdit_WorkSpace</tabstop> |
|
184 |
<tabstop>toolButton_WorkSpace</tabstop> |
|
185 |
</tabstops> |
|
240 | 186 |
<resources> |
241 | 187 |
<include location="../res/Resource.qrc"/> |
242 | 188 |
</resources> |
내보내기 Unified diff