-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgui_edit_template.py
189 lines (183 loc) · 11.3 KB
/
gui_edit_template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\Apps\DEV\PROJECTS\KoHighlights\gui_edit_template.ui',
# licensing of 'D:\Apps\DEV\PROJECTS\KoHighlights\gui_edit_template.ui' applies.
#
# Created: Mon Nov 4 00:35:08 2024
# by: pyside2-uic running on PySide2 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PySide2 import QtCore, QtGui, QtWidgets
class Ui_EditTemplate(object):
def setupUi(self, EditTemplate):
EditTemplate.setObjectName("EditTemplate")
EditTemplate.resize(500, 500)
EditTemplate.setStyleSheet("")
EditTemplate.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
EditTemplate.setModal(False)
self.verticalLayout_3 = QtWidgets.QVBoxLayout(EditTemplate)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.splitter = QtWidgets.QSplitter(EditTemplate)
self.splitter.setMinimumSize(QtCore.QSize(0, 200))
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setChildrenCollapsible(False)
self.splitter.setObjectName("splitter")
self.groupBox = QtWidgets.QGroupBox(self.splitter)
self.groupBox.setStyleSheet("")
self.groupBox.setObjectName("groupBox")
self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.head_help_lbl = QtWidgets.QLabel(self.groupBox)
self.head_help_lbl.setText("")
self.head_help_lbl.setWordWrap(True)
self.head_help_lbl.setObjectName("head_help_lbl")
self.verticalLayout.addWidget(self.head_help_lbl)
self.frame_2 = QtWidgets.QFrame(self.groupBox)
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.head_split = QtWidgets.QSplitter(self.frame_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.head_split.sizePolicy().hasHeightForWidth())
self.head_split.setSizePolicy(sizePolicy)
self.head_split.setOrientation(QtCore.Qt.Horizontal)
self.head_split.setObjectName("head_split")
self.head_edit_txt = QtWidgets.QTextEdit(self.head_split)
self.head_edit_txt.setFrameShape(QtWidgets.QFrame.WinPanel)
self.head_edit_txt.setAcceptRichText(False)
self.head_edit_txt.setObjectName("head_edit_txt")
self.head_preview_txt = QtWidgets.QTextEdit(self.head_split)
self.head_preview_txt.setFrameShape(QtWidgets.QFrame.WinPanel)
self.head_preview_txt.setReadOnly(True)
self.head_preview_txt.setObjectName("head_preview_txt")
self.horizontalLayout_2.addWidget(self.head_split)
self.verticalLayout.addWidget(self.frame_2)
self.groupBox_2 = QtWidgets.QGroupBox(self.splitter)
self.groupBox_2.setObjectName("groupBox_2")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.body_help_lbl = QtWidgets.QLabel(self.groupBox_2)
self.body_help_lbl.setText("")
self.body_help_lbl.setWordWrap(True)
self.body_help_lbl.setObjectName("body_help_lbl")
self.verticalLayout_2.addWidget(self.body_help_lbl)
self.frame = QtWidgets.QFrame(self.groupBox_2)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.body_split = QtWidgets.QSplitter(self.frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.body_split.sizePolicy().hasHeightForWidth())
self.body_split.setSizePolicy(sizePolicy)
self.body_split.setOrientation(QtCore.Qt.Horizontal)
self.body_split.setObjectName("body_split")
self.body_edit_txt = QtWidgets.QTextEdit(self.body_split)
self.body_edit_txt.setFrameShape(QtWidgets.QFrame.WinPanel)
self.body_edit_txt.setAcceptRichText(False)
self.body_edit_txt.setObjectName("body_edit_txt")
self.body_preview_txt = QtWidgets.QTextEdit(self.body_split)
self.body_preview_txt.setFrameShape(QtWidgets.QFrame.WinPanel)
self.body_preview_txt.setReadOnly(True)
self.body_preview_txt.setObjectName("body_preview_txt")
self.horizontalLayout_3.addWidget(self.body_split)
self.verticalLayout_2.addWidget(self.frame)
self.verticalLayout_3.addWidget(self.splitter)
self.split_chapters_frm = QtWidgets.QFrame(EditTemplate)
self.split_chapters_frm.setObjectName("split_chapters_frm")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.split_chapters_frm)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.split_chapters_chk = QtWidgets.QCheckBox(self.split_chapters_frm)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.split_chapters_chk.sizePolicy().hasHeightForWidth())
self.split_chapters_chk.setSizePolicy(sizePolicy)
self.split_chapters_chk.setObjectName("split_chapters_chk")
self.horizontalLayout_4.addWidget(self.split_chapters_chk)
self.label = QtWidgets.QLabel(self.split_chapters_frm)
self.label.setObjectName("label")
self.horizontalLayout_4.addWidget(self.label)
self.head_min_box = QtWidgets.QComboBox(self.split_chapters_frm)
self.head_min_box.setObjectName("head_min_box")
self.head_min_box.addItem("")
self.head_min_box.addItem("")
self.head_min_box.addItem("")
self.head_min_box.addItem("")
self.head_min_box.addItem("")
self.head_min_box.addItem("")
self.horizontalLayout_4.addWidget(self.head_min_box)
self.label_2 = QtWidgets.QLabel(self.split_chapters_frm)
self.label_2.setObjectName("label_2")
self.horizontalLayout_4.addWidget(self.label_2)
self.head_max_box = QtWidgets.QComboBox(self.split_chapters_frm)
self.head_max_box.setObjectName("head_max_box")
self.head_max_box.addItem("")
self.head_max_box.addItem("")
self.head_max_box.addItem("")
self.head_max_box.addItem("")
self.head_max_box.addItem("")
self.head_max_box.addItem("")
self.horizontalLayout_4.addWidget(self.head_max_box)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem)
self.verticalLayout_3.addWidget(self.split_chapters_frm)
self.btn_box = QtWidgets.QFrame(EditTemplate)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btn_box.sizePolicy().hasHeightForWidth())
self.btn_box.setSizePolicy(sizePolicy)
self.btn_box.setObjectName("btn_box")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.btn_box)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.default_btn = QtWidgets.QPushButton(self.btn_box)
self.default_btn.setObjectName("default_btn")
self.horizontalLayout.addWidget(self.default_btn)
spacerItem1 = QtWidgets.QSpacerItem(175, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.ok_btn = QtWidgets.QPushButton(self.btn_box)
self.ok_btn.setObjectName("ok_btn")
self.horizontalLayout.addWidget(self.ok_btn)
self.cancel_btn = QtWidgets.QPushButton(self.btn_box)
self.cancel_btn.setObjectName("cancel_btn")
self.horizontalLayout.addWidget(self.cancel_btn)
self.verticalLayout_3.addWidget(self.btn_box)
self.retranslateUi(EditTemplate)
self.head_max_box.setCurrentIndex(5)
QtCore.QMetaObject.connectSlotsByName(EditTemplate)
def retranslateUi(self, EditTemplate):
self.groupBox.setTitle(QtWidgets.QApplication.translate("EditTemplate", "Title - Authors", None, -1))
self.groupBox_2.setTitle(QtWidgets.QApplication.translate("EditTemplate", "Highlight", None, -1))
self.split_chapters_chk.setText(QtWidgets.QApplication.translate("EditTemplate", "Split Chapters", None, -1))
self.label.setText(QtWidgets.QApplication.translate("EditTemplate", "using", None, -1))
self.head_min_box.setItemText(0, QtWidgets.QApplication.translate("EditTemplate", "Heading L1", None, -1))
self.head_min_box.setItemText(1, QtWidgets.QApplication.translate("EditTemplate", "Heading L2", None, -1))
self.head_min_box.setItemText(2, QtWidgets.QApplication.translate("EditTemplate", "Heading L3", None, -1))
self.head_min_box.setItemText(3, QtWidgets.QApplication.translate("EditTemplate", "Heading L4", None, -1))
self.head_min_box.setItemText(4, QtWidgets.QApplication.translate("EditTemplate", "Heading L5", None, -1))
self.head_min_box.setItemText(5, QtWidgets.QApplication.translate("EditTemplate", "Heading L6", None, -1))
self.label_2.setText(QtWidgets.QApplication.translate("EditTemplate", "to", None, -1))
self.head_max_box.setItemText(0, QtWidgets.QApplication.translate("EditTemplate", "Heading L1", None, -1))
self.head_max_box.setItemText(1, QtWidgets.QApplication.translate("EditTemplate", "Heading L2", None, -1))
self.head_max_box.setItemText(2, QtWidgets.QApplication.translate("EditTemplate", "Heading L3", None, -1))
self.head_max_box.setItemText(3, QtWidgets.QApplication.translate("EditTemplate", "Heading L4", None, -1))
self.head_max_box.setItemText(4, QtWidgets.QApplication.translate("EditTemplate", "Heading L5", None, -1))
self.head_max_box.setItemText(5, QtWidgets.QApplication.translate("EditTemplate", "Heading L6", None, -1))
self.default_btn.setText(QtWidgets.QApplication.translate("EditTemplate", "Default", None, -1))
self.ok_btn.setToolTip(QtWidgets.QApplication.translate("EditTemplate", "Check online for an updated version", None, -1))
self.ok_btn.setText(QtWidgets.QApplication.translate("EditTemplate", "OK", None, -1))
self.cancel_btn.setText(QtWidgets.QApplication.translate("EditTemplate", "Cancel", None, -1))
import images_rc