main_window_ui.py 8.9 KB
Newer Older
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
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'ui/main_window.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(413, 299)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(1, 1, 1, 1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.textEdit = QtWidgets.QTextEdit(self.centralwidget)
        self.textEdit.setObjectName("textEdit")
        self.verticalLayout.addWidget(self.textEdit)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 413, 20))
        self.menubar.setObjectName("menubar")
        self.menu_File = QtWidgets.QMenu(self.menubar)
        self.menu_File.setObjectName("menu_File")
        self.menuOpen_Recent = QtWidgets.QMenu(self.menu_File)
        self.menuOpen_Recent.setObjectName("menuOpen_Recent")
        self.menu_Edit = QtWidgets.QMenu(self.menubar)
        self.menu_Edit.setObjectName("menu_Edit")
        self.menu_Help = QtWidgets.QMenu(self.menubar)
        self.menu_Help.setObjectName("menu_Help")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtWidgets.QToolBar(MainWindow)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.action_New = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon()
L
Leodanis Pozo Ramos 已提交
47
        icon.addPixmap(
L
Leodanis Pozo Ramos 已提交
48
            QtGui.QPixmap("ui/resources/file-new.png"),
L
Leodanis Pozo Ramos 已提交
49 50 51
            QtGui.QIcon.Normal,
            QtGui.QIcon.Off,
        )
52 53 54 55
        self.action_New.setIcon(icon)
        self.action_New.setObjectName("action_New")
        self.action_Open = QtWidgets.QAction(MainWindow)
        icon1 = QtGui.QIcon()
L
Leodanis Pozo Ramos 已提交
56
        icon1.addPixmap(
L
Leodanis Pozo Ramos 已提交
57
            QtGui.QPixmap("ui/resources/file-open.png"),
L
Leodanis Pozo Ramos 已提交
58 59 60
            QtGui.QIcon.Normal,
            QtGui.QIcon.Off,
        )
61 62 63 64
        self.action_Open.setIcon(icon1)
        self.action_Open.setObjectName("action_Open")
        self.action_Save = QtWidgets.QAction(MainWindow)
        icon2 = QtGui.QIcon()
L
Leodanis Pozo Ramos 已提交
65
        icon2.addPixmap(
L
Leodanis Pozo Ramos 已提交
66
            QtGui.QPixmap("ui/resources/file-save.png"),
L
Leodanis Pozo Ramos 已提交
67 68 69
            QtGui.QIcon.Normal,
            QtGui.QIcon.Off,
        )
70 71 72 73
        self.action_Save.setIcon(icon2)
        self.action_Save.setObjectName("action_Save")
        self.action_Exit = QtWidgets.QAction(MainWindow)
        icon3 = QtGui.QIcon()
L
Leodanis Pozo Ramos 已提交
74
        icon3.addPixmap(
L
Leodanis Pozo Ramos 已提交
75
            QtGui.QPixmap("ui/resources/file-exit.png"),
L
Leodanis Pozo Ramos 已提交
76 77 78
            QtGui.QIcon.Normal,
            QtGui.QIcon.Off,
        )
79 80 81 82
        self.action_Exit.setIcon(icon3)
        self.action_Exit.setObjectName("action_Exit")
        self.action_Copy = QtWidgets.QAction(MainWindow)
        icon4 = QtGui.QIcon()
L
Leodanis Pozo Ramos 已提交
83
        icon4.addPixmap(
L
Leodanis Pozo Ramos 已提交
84
            QtGui.QPixmap("ui/resources/edit-copy.png"),
L
Leodanis Pozo Ramos 已提交
85 86 87
            QtGui.QIcon.Normal,
            QtGui.QIcon.Off,
        )
88 89 90 91
        self.action_Copy.setIcon(icon4)
        self.action_Copy.setObjectName("action_Copy")
        self.action_Paste = QtWidgets.QAction(MainWindow)
        icon5 = QtGui.QIcon()
L
Leodanis Pozo Ramos 已提交
92
        icon5.addPixmap(
L
Leodanis Pozo Ramos 已提交
93
            QtGui.QPixmap("ui/resources/edit-paste.png"),
L
Leodanis Pozo Ramos 已提交
94 95 96
            QtGui.QIcon.Normal,
            QtGui.QIcon.Off,
        )
97 98 99 100
        self.action_Paste.setIcon(icon5)
        self.action_Paste.setObjectName("action_Paste")
        self.action_Cut = QtWidgets.QAction(MainWindow)
        icon6 = QtGui.QIcon()
L
Leodanis Pozo Ramos 已提交
101
        icon6.addPixmap(
L
Leodanis Pozo Ramos 已提交
102
            QtGui.QPixmap("ui/resources/edit-cut.png"),
L
Leodanis Pozo Ramos 已提交
103 104 105
            QtGui.QIcon.Normal,
            QtGui.QIcon.Off,
        )
106 107 108 109 110 111
        self.action_Cut.setIcon(icon6)
        self.action_Cut.setObjectName("action_Cut")
        self.actionOpen_All = QtWidgets.QAction(MainWindow)
        self.actionOpen_All.setObjectName("actionOpen_All")
        self.action_About = QtWidgets.QAction(MainWindow)
        icon7 = QtGui.QIcon()
L
Leodanis Pozo Ramos 已提交
112
        icon7.addPixmap(
L
Leodanis Pozo Ramos 已提交
113
            QtGui.QPixmap("ui/resources/help-content.png"),
L
Leodanis Pozo Ramos 已提交
114 115 116
            QtGui.QIcon.Normal,
            QtGui.QIcon.Off,
        )
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
        self.action_About.setIcon(icon7)
        self.action_About.setObjectName("action_About")
        self.action_Find_Replace = QtWidgets.QAction(MainWindow)
        self.action_Find_Replace.setObjectName("action_Find_Replace")
        self.menuOpen_Recent.addAction(self.actionOpen_All)
        self.menu_File.addAction(self.action_New)
        self.menu_File.addSeparator()
        self.menu_File.addAction(self.action_Open)
        self.menu_File.addAction(self.menuOpen_Recent.menuAction())
        self.menu_File.addSeparator()
        self.menu_File.addAction(self.action_Save)
        self.menu_File.addSeparator()
        self.menu_File.addAction(self.action_Exit)
        self.menu_Edit.addAction(self.action_Copy)
        self.menu_Edit.addAction(self.action_Paste)
        self.menu_Edit.addAction(self.action_Cut)
        self.menu_Edit.addSeparator()
        self.menu_Edit.addAction(self.action_Find_Replace)
        self.menu_Help.addAction(self.action_About)
        self.menubar.addAction(self.menu_File.menuAction())
        self.menubar.addAction(self.menu_Edit.menuAction())
        self.menubar.addAction(self.menu_Help.menuAction())
        self.toolBar.addAction(self.action_New)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.action_Open)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.action_Save)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.action_Copy)
        self.toolBar.addAction(self.action_Paste)
        self.toolBar.addAction(self.action_Cut)
        self.toolBar.addSeparator()
        self.toolBar.addAction(self.action_About)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Sample Editor"))
        self.menu_File.setTitle(_translate("MainWindow", "&File"))
        self.menuOpen_Recent.setTitle(_translate("MainWindow", "Open &Recent"))
        self.menu_Edit.setTitle(_translate("MainWindow", "&Edit"))
        self.menu_Help.setTitle(_translate("MainWindow", "&Help"))
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar"))
        self.action_New.setText(_translate("MainWindow", "&New..."))
L
Leodanis Pozo Ramos 已提交
163 164 165
        self.action_New.setToolTip(
            _translate("MainWindow", "Create a New Document")
        )
166 167
        self.action_New.setShortcut(_translate("MainWindow", "Ctrl+N"))
        self.action_Open.setText(_translate("MainWindow", "&Open..."))
L
Leodanis Pozo Ramos 已提交
168 169 170
        self.action_Open.setToolTip(
            _translate("MainWindow", "Open a Document")
        )
171 172
        self.action_Open.setShortcut(_translate("MainWindow", "Ctrl+O"))
        self.action_Save.setText(_translate("MainWindow", "&Save"))
L
Leodanis Pozo Ramos 已提交
173 174 175
        self.action_Save.setToolTip(
            _translate("MainWindow", "Save the Current Document")
        )
176 177 178
        self.action_Save.setShortcut(_translate("MainWindow", "Ctrl+S"))
        self.action_Exit.setText(_translate("MainWindow", "&Exit"))
        self.action_Copy.setText(_translate("MainWindow", "&Copy"))
L
Leodanis Pozo Ramos 已提交
179 180 181
        self.action_Copy.setToolTip(
            _translate("MainWindow", "Copy Slected Text")
        )
182 183
        self.action_Copy.setShortcut(_translate("MainWindow", "Ctrl+C"))
        self.action_Paste.setText(_translate("MainWindow", "&Paste"))
L
Leodanis Pozo Ramos 已提交
184 185 186
        self.action_Paste.setToolTip(
            _translate("MainWindow", "Paste Copied Text")
        )
187 188
        self.action_Paste.setShortcut(_translate("MainWindow", "Ctrl+V"))
        self.action_Cut.setText(_translate("MainWindow", "C&ut"))
L
Leodanis Pozo Ramos 已提交
189 190 191
        self.action_Cut.setToolTip(
            _translate("MainWindow", "Cut Selected Text")
        )
192 193
        self.action_Cut.setShortcut(_translate("MainWindow", "Ctrl+X"))
        self.actionOpen_All.setText(_translate("MainWindow", "Open All"))
L
Leodanis Pozo Ramos 已提交
194 195 196
        self.actionOpen_All.setToolTip(
            _translate("MainWindow", "Open All Recent Documents")
        )
197
        self.action_About.setText(_translate("MainWindow", "&About..."))
L
Leodanis Pozo Ramos 已提交
198 199 200 201 202 203 204 205 206
        self.action_Find_Replace.setText(
            _translate("MainWindow", "&Find and Replace...")
        )
        self.action_Find_Replace.setToolTip(
            _translate("MainWindow", "Launch Find and Replace Dialog")
        )
        self.action_Find_Replace.setShortcut(
            _translate("MainWindow", "Ctrl+F")
        )