-
Notifications
You must be signed in to change notification settings - Fork 116
/
ui_mainwindow.py
180 lines (173 loc) · 9.31 KB
/
ui_mainwindow.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
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'mainwindow.ui'
##
## Created by: Qt User Interface Compiler version 6.5.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
QCursor, QFont, QFontDatabase, QGradient,
QIcon, QImage, QKeySequence, QLinearGradient,
QPainter, QPalette, QPixmap, QRadialGradient,
QTransform)
from PySide6.QtWidgets import (QApplication, QHeaderView, QListView, QMainWindow,
QMenu, QMenuBar, QSizePolicy, QSplitter,
QStatusBar, QTableView, QTextEdit, QWidget)
import resource
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(1072, 704)
MainWindow.setBaseSize(QSize(1080, 720))
icon = QIcon()
icon.addFile(u":/favicon.ico", QSize(), QIcon.Normal, QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setDocumentMode(False)
self.actionLoadNotes = QAction(MainWindow)
self.actionLoadNotes.setObjectName(u"actionLoadNotes")
self.actionShow = QAction(MainWindow)
self.actionShow.setObjectName(u"actionShow")
self.actionSave = QAction(MainWindow)
self.actionSave.setObjectName(u"actionSave")
self.actionAuthor = QAction(MainWindow)
self.actionAuthor.setObjectName(u"actionAuthor")
self.actionLicense = QAction(MainWindow)
self.actionLicense.setObjectName(u"actionLicense")
self.actionLoadShelf = QAction(MainWindow)
self.actionLoadShelf.setObjectName(u"actionLoadShelf")
self.actionLoadHot = QAction(MainWindow)
self.actionLoadHot.setObjectName(u"actionLoadHot")
self.actionLoadCover = QAction(MainWindow)
self.actionLoadCover.setObjectName(u"actionLoadCover")
self.actionback = QAction(MainWindow)
self.actionback.setObjectName(u"actionback")
self.actionforward = QAction(MainWindow)
self.actionforward.setObjectName(u"actionforward")
self.actionShelf = QAction(MainWindow)
self.actionShelf.setObjectName(u"actionShelf")
self.actionLibrary = QAction(MainWindow)
self.actionLibrary.setObjectName(u"actionLibrary")
self.actionOpen = QAction(MainWindow)
self.actionOpen.setObjectName(u"actionOpen")
self.browser = QWidget(MainWindow)
self.browser.setObjectName(u"browser")
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.browser.sizePolicy().hasHeightForWidth())
self.browser.setSizePolicy(sizePolicy)
self.browser.setBaseSize(QSize(1080, 700))
self.browser.setAutoFillBackground(True)
self.splitter_2 = QSplitter(self.browser)
self.splitter_2.setObjectName(u"splitter_2")
self.splitter_2.setGeometry(QRect(5, 0, 1070, 700))
self.splitter_2.setOrientation(Qt.Horizontal)
self.splitter = QSplitter(self.splitter_2)
self.splitter.setObjectName(u"splitter")
self.splitter.setOrientation(Qt.Vertical)
self.listView = QListView(self.splitter)
self.listView.setObjectName(u"listView")
self.splitter.addWidget(self.listView)
self.tableView = QTableView(self.splitter)
self.tableView.setObjectName(u"tableView")
self.splitter.addWidget(self.tableView)
self.splitter_2.addWidget(self.splitter)
self.noteEdit = QTextEdit(self.splitter_2)
self.noteEdit.setObjectName(u"noteEdit")
self.splitter_2.addWidget(self.noteEdit)
MainWindow.setCentralWidget(self.browser)
self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 1072, 21))
self.menuTool = QMenu(self.menubar)
self.menuTool.setObjectName(u"menuTool")
self.menuNote = QMenu(self.menubar)
self.menuNote.setObjectName(u"menuNote")
self.menuAbout = QMenu(self.menubar)
self.menuAbout.setObjectName(u"menuAbout")
self.menuView = QMenu(self.menubar)
self.menuView.setObjectName(u"menuView")
MainWindow.setMenuBar(self.menubar)
self.statusBar = QStatusBar(MainWindow)
self.statusBar.setObjectName(u"statusBar")
MainWindow.setStatusBar(self.statusBar)
self.menubar.addAction(self.menuNote.menuAction())
self.menubar.addAction(self.menuTool.menuAction())
self.menubar.addAction(self.menuView.menuAction())
self.menubar.addAction(self.menuAbout.menuAction())
self.menuTool.addAction(self.actionLoadShelf)
self.menuTool.addSeparator()
self.menuTool.addAction(self.actionLoadNotes)
self.menuTool.addAction(self.actionLoadCover)
self.menuNote.addSeparator()
self.menuNote.addAction(self.actionShow)
self.menuNote.addAction(self.actionSave)
self.menuNote.addSeparator()
self.menuNote.addAction(self.actionLoadHot)
self.menuNote.addAction(self.actionOpen)
self.menuAbout.addAction(self.actionAuthor)
self.menuAbout.addAction(self.actionLicense)
self.menuView.addAction(self.actionback)
self.menuView.addAction(self.actionforward)
self.menuView.addSeparator()
self.menuView.addAction(self.actionShelf)
self.menuView.addAction(self.actionLibrary)
self.menuView.addSeparator()
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"\u5fae\u4fe1\u8bfb\u4e66\u52a9\u624b-wereader", None))
self.actionLoadNotes.setText(QCoreApplication.translate("MainWindow", u"\u4e0b\u8f7d\u5168\u90e8\u7b14\u8bb0", None))
self.actionShow.setText(QCoreApplication.translate("MainWindow", u"\u5207\u6362\u7b14\u8bb0\u6a21\u5f0f", None))
#if QT_CONFIG(shortcut)
self.actionShow.setShortcut(QCoreApplication.translate("MainWindow", u"Ctrl+Tab", None))
#endif // QT_CONFIG(shortcut)
self.actionSave.setText(QCoreApplication.translate("MainWindow", u"\u4fdd\u5b58\u7b14\u8bb0", None))
#if QT_CONFIG(shortcut)
self.actionSave.setShortcut(QCoreApplication.translate("MainWindow", u"Ctrl+S", None))
#endif // QT_CONFIG(shortcut)
self.actionAuthor.setText(QCoreApplication.translate("MainWindow", u"Author <[email protected]>", None))
#if QT_CONFIG(tooltip)
self.actionAuthor.setToolTip(QCoreApplication.translate("MainWindow", u"Author", None))
#endif // QT_CONFIG(tooltip)
self.actionLicense.setText(QCoreApplication.translate("MainWindow", u"License", None))
self.actionLoadShelf.setText(QCoreApplication.translate("MainWindow", u"\u52a0\u8f7d\u4e66\u67b6", None))
#if QT_CONFIG(tooltip)
self.actionLoadShelf.setToolTip(QCoreApplication.translate("MainWindow", u"Download shelf", None))
#endif // QT_CONFIG(tooltip)
self.actionLoadHot.setText(QCoreApplication.translate("MainWindow", u"\u70ed\u95e8\u7b14\u8bb0", None))
self.actionLoadCover.setText(QCoreApplication.translate("MainWindow", u"\u4e0b\u8f7d\u5c01\u9762", None))
self.actionback.setText(QCoreApplication.translate("MainWindow", u"\u540e\u9000", None))
#if QT_CONFIG(tooltip)
self.actionback.setToolTip(QCoreApplication.translate("MainWindow", u"\u540e\u9000", None))
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(shortcut)
self.actionback.setShortcut(QCoreApplication.translate("MainWindow", u"B", None))
#endif // QT_CONFIG(shortcut)
self.actionforward.setText(QCoreApplication.translate("MainWindow", u"\u524d\u8fdb", None))
#if QT_CONFIG(tooltip)
self.actionforward.setToolTip(QCoreApplication.translate("MainWindow", u"\u524d\u8fdb", None))
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(shortcut)
self.actionforward.setShortcut(QCoreApplication.translate("MainWindow", u"F", None))
#endif // QT_CONFIG(shortcut)
self.actionShelf.setText(QCoreApplication.translate("MainWindow", u"\u4e66\u67b6", None))
#if QT_CONFIG(shortcut)
self.actionShelf.setShortcut(QCoreApplication.translate("MainWindow", u"S", None))
#endif // QT_CONFIG(shortcut)
self.actionLibrary.setText(QCoreApplication.translate("MainWindow", u"\u4e66\u57ce", None))
#if QT_CONFIG(shortcut)
self.actionLibrary.setShortcut(QCoreApplication.translate("MainWindow", u"L", None))
#endif // QT_CONFIG(shortcut)
self.actionOpen.setText(QCoreApplication.translate("MainWindow", u"\u6253\u5f00\u7b14\u8bb0", None))
self.menuTool.setTitle(QCoreApplication.translate("MainWindow", u"\u5de5\u5177", None))
self.menuNote.setTitle(QCoreApplication.translate("MainWindow", u"\u7b14\u8bb0", None))
self.menuAbout.setTitle(QCoreApplication.translate("MainWindow", u"\u5173\u4e8e", None))
self.menuView.setTitle(QCoreApplication.translate("MainWindow", u"\u89c6\u56fe", None))
# retranslateUi