-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_cryptpad.py
145 lines (137 loc) · 7.81 KB
/
ui_cryptpad.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'cryptpad.ui'
#
# Created: Sun Nov 15 11:02:48 2015
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(800, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.textEdit = QtGui.QTextEdit(self.centralwidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Calibri"))
font.setPointSize(11)
self.textEdit.setFont(font)
self.textEdit.setObjectName(_fromUtf8("textEdit"))
self.verticalLayout.addWidget(self.textEdit)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
self.menuEdit = QtGui.QMenu(self.menubar)
self.menuEdit.setObjectName(_fromUtf8("menuEdit"))
self.menuFormat = QtGui.QMenu(self.menubar)
self.menuFormat.setObjectName(_fromUtf8("menuFormat"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.actionNew = QtGui.QAction(MainWindow)
self.actionNew.setObjectName(_fromUtf8("actionNew"))
self.actionOpen = QtGui.QAction(MainWindow)
self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
self.actionSave = QtGui.QAction(MainWindow)
self.actionSave.setObjectName(_fromUtf8("actionSave"))
self.actionSave_As = QtGui.QAction(MainWindow)
self.actionSave_As.setObjectName(_fromUtf8("actionSave_As"))
self.actionExit = QtGui.QAction(MainWindow)
self.actionExit.setObjectName(_fromUtf8("actionExit"))
self.actionUndo = QtGui.QAction(MainWindow)
self.actionUndo.setObjectName(_fromUtf8("actionUndo"))
self.actionCut = QtGui.QAction(MainWindow)
self.actionCut.setObjectName(_fromUtf8("actionCut"))
self.actionCopy = QtGui.QAction(MainWindow)
self.actionCopy.setObjectName(_fromUtf8("actionCopy"))
self.actionPaste = QtGui.QAction(MainWindow)
self.actionPaste.setObjectName(_fromUtf8("actionPaste"))
self.actionDelete = QtGui.QAction(MainWindow)
self.actionDelete.setObjectName(_fromUtf8("actionDelete"))
self.actionSelect_All = QtGui.QAction(MainWindow)
self.actionSelect_All.setObjectName(_fromUtf8("actionSelect_All"))
self.actionTime_Date = QtGui.QAction(MainWindow)
self.actionTime_Date.setObjectName(_fromUtf8("actionTime_Date"))
self.actionWord_Wrap = QtGui.QAction(MainWindow)
self.actionWord_Wrap.setObjectName(_fromUtf8("actionWord_Wrap"))
self.actionFont = QtGui.QAction(MainWindow)
self.actionFont.setObjectName(_fromUtf8("actionFont"))
self.actionRedo = QtGui.QAction(MainWindow)
self.actionRedo.setObjectName(_fromUtf8("actionRedo"))
self.menuFile.addAction(self.actionNew)
self.menuFile.addAction(self.actionOpen)
self.menuFile.addAction(self.actionSave)
self.menuFile.addAction(self.actionSave_As)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionExit)
self.menuEdit.addAction(self.actionUndo)
self.menuEdit.addAction(self.actionRedo)
self.menuEdit.addSeparator()
self.menuEdit.addAction(self.actionCut)
self.menuEdit.addAction(self.actionCopy)
self.menuEdit.addAction(self.actionPaste)
self.menuEdit.addAction(self.actionDelete)
self.menuEdit.addSeparator()
self.menuEdit.addAction(self.actionSelect_All)
self.menuEdit.addAction(self.actionTime_Date)
self.menuFormat.addAction(self.actionWord_Wrap)
self.menuFormat.addAction(self.actionFont)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuEdit.menuAction())
self.menubar.addAction(self.menuFormat.menuAction())
self.retranslateUi(MainWindow)
QtCore.QObject.connect(self.actionUndo, QtCore.SIGNAL(_fromUtf8("triggered()")), self.textEdit.undo)
QtCore.QObject.connect(self.actionRedo, QtCore.SIGNAL(_fromUtf8("triggered()")), self.textEdit.redo)
QtCore.QObject.connect(self.actionCopy, QtCore.SIGNAL(_fromUtf8("triggered()")), self.textEdit.copy)
QtCore.QObject.connect(self.actionCut, QtCore.SIGNAL(_fromUtf8("triggered()")), self.textEdit.cut)
QtCore.QObject.connect(self.actionPaste, QtCore.SIGNAL(_fromUtf8("triggered()")), self.textEdit.paste)
QtCore.QObject.connect(self.actionExit, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.close)
QtCore.QObject.connect(self.actionSelect_All, QtCore.SIGNAL(_fromUtf8("triggered()")), self.textEdit.selectAll)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "Cryptpad", None))
self.menuFile.setTitle(_translate("MainWindow", "File", None))
self.menuEdit.setTitle(_translate("MainWindow", "Edit", None))
self.menuFormat.setTitle(_translate("MainWindow", "Format", None))
self.actionNew.setText(_translate("MainWindow", "New", None))
self.actionNew.setShortcut(_translate("MainWindow", "Ctrl+N", None))
self.actionOpen.setText(_translate("MainWindow", "Open...", None))
self.actionOpen.setShortcut(_translate("MainWindow", "Ctrl+O", None))
self.actionSave.setText(_translate("MainWindow", "Save", None))
self.actionSave.setShortcut(_translate("MainWindow", "Ctrl+S", None))
self.actionSave_As.setText(_translate("MainWindow", "Save As...", None))
self.actionSave_As.setShortcut(_translate("MainWindow", "Ctrl+Shift+S", None))
self.actionExit.setText(_translate("MainWindow", "Exit", None))
self.actionUndo.setText(_translate("MainWindow", "Undo", None))
self.actionUndo.setShortcut(_translate("MainWindow", "Return", None))
self.actionCut.setText(_translate("MainWindow", "Cut", None))
self.actionCopy.setText(_translate("MainWindow", "Copy", None))
self.actionCopy.setShortcut(_translate("MainWindow", "Ctrl+C", None))
self.actionPaste.setText(_translate("MainWindow", "Paste", None))
self.actionPaste.setShortcut(_translate("MainWindow", "Ctrl+V", None))
self.actionDelete.setText(_translate("MainWindow", "Delete", None))
self.actionDelete.setShortcut(_translate("MainWindow", "Backspace", None))
self.actionSelect_All.setText(_translate("MainWindow", "Select All", None))
self.actionTime_Date.setText(_translate("MainWindow", "Time/Date", None))
self.actionWord_Wrap.setText(_translate("MainWindow", "Word Wrap", None))
self.actionFont.setText(_translate("MainWindow", "Font...", None))
self.actionRedo.setText(_translate("MainWindow", "Redo", None))