|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +# Form implementation generated from reading ui file 'newchandialog.ui' |
| 4 | +# |
| 5 | +# Created: Tue Jun 25 17:03:01 2013 |
| 6 | +# by: PyQt4 UI code generator 4.10.2 |
| 7 | +# |
| 8 | +# WARNING! All changes made in this file will be lost! |
| 9 | + |
| 10 | +from PyQt4 import QtCore, QtGui |
| 11 | + |
| 12 | +try: |
| 13 | + _fromUtf8 = QtCore.QString.fromUtf8 |
| 14 | +except AttributeError: |
| 15 | + def _fromUtf8(s): |
| 16 | + return s |
| 17 | + |
| 18 | +try: |
| 19 | + _encoding = QtGui.QApplication.UnicodeUTF8 |
| 20 | + def _translate(context, text, disambig): |
| 21 | + return QtGui.QApplication.translate(context, text, disambig, _encoding) |
| 22 | +except AttributeError: |
| 23 | + def _translate(context, text, disambig): |
| 24 | + return QtGui.QApplication.translate(context, text, disambig) |
| 25 | + |
| 26 | +class Ui_NewChanDialog(object): |
| 27 | + def setupUi(self, NewChanDialog): |
| 28 | + NewChanDialog.setObjectName(_fromUtf8("NewChanDialog")) |
| 29 | + NewChanDialog.resize(447, 441) |
| 30 | + self.formLayout = QtGui.QFormLayout(NewChanDialog) |
| 31 | + self.formLayout.setObjectName(_fromUtf8("formLayout")) |
| 32 | + self.radioButtonCreateChan = QtGui.QRadioButton(NewChanDialog) |
| 33 | + self.radioButtonCreateChan.setObjectName(_fromUtf8("radioButtonCreateChan")) |
| 34 | + self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.radioButtonCreateChan) |
| 35 | + self.radioButtonJoinChan = QtGui.QRadioButton(NewChanDialog) |
| 36 | + self.radioButtonJoinChan.setChecked(True) |
| 37 | + self.radioButtonJoinChan.setObjectName(_fromUtf8("radioButtonJoinChan")) |
| 38 | + self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.radioButtonJoinChan) |
| 39 | + self.groupBoxJoinChan = QtGui.QGroupBox(NewChanDialog) |
| 40 | + self.groupBoxJoinChan.setObjectName(_fromUtf8("groupBoxJoinChan")) |
| 41 | + self.gridLayout_2 = QtGui.QGridLayout(self.groupBoxJoinChan) |
| 42 | + self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) |
| 43 | + self.label = QtGui.QLabel(self.groupBoxJoinChan) |
| 44 | + self.label.setWordWrap(True) |
| 45 | + self.label.setObjectName(_fromUtf8("label")) |
| 46 | + self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) |
| 47 | + self.label_2 = QtGui.QLabel(self.groupBoxJoinChan) |
| 48 | + self.label_2.setObjectName(_fromUtf8("label_2")) |
| 49 | + self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) |
| 50 | + self.lineEditChanNameJoin = QtGui.QLineEdit(self.groupBoxJoinChan) |
| 51 | + self.lineEditChanNameJoin.setObjectName(_fromUtf8("lineEditChanNameJoin")) |
| 52 | + self.gridLayout_2.addWidget(self.lineEditChanNameJoin, 2, 0, 1, 1) |
| 53 | + self.label_3 = QtGui.QLabel(self.groupBoxJoinChan) |
| 54 | + self.label_3.setObjectName(_fromUtf8("label_3")) |
| 55 | + self.gridLayout_2.addWidget(self.label_3, 3, 0, 1, 1) |
| 56 | + self.lineEditChanBitmessageAddress = QtGui.QLineEdit(self.groupBoxJoinChan) |
| 57 | + self.lineEditChanBitmessageAddress.setObjectName(_fromUtf8("lineEditChanBitmessageAddress")) |
| 58 | + self.gridLayout_2.addWidget(self.lineEditChanBitmessageAddress, 4, 0, 1, 1) |
| 59 | + self.formLayout.setWidget(3, QtGui.QFormLayout.SpanningRole, self.groupBoxJoinChan) |
| 60 | + self.groupBoxCreateChan = QtGui.QGroupBox(NewChanDialog) |
| 61 | + self.groupBoxCreateChan.setObjectName(_fromUtf8("groupBoxCreateChan")) |
| 62 | + self.gridLayout = QtGui.QGridLayout(self.groupBoxCreateChan) |
| 63 | + self.gridLayout.setObjectName(_fromUtf8("gridLayout")) |
| 64 | + self.label_4 = QtGui.QLabel(self.groupBoxCreateChan) |
| 65 | + self.label_4.setWordWrap(True) |
| 66 | + self.label_4.setObjectName(_fromUtf8("label_4")) |
| 67 | + self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1) |
| 68 | + self.label_5 = QtGui.QLabel(self.groupBoxCreateChan) |
| 69 | + self.label_5.setObjectName(_fromUtf8("label_5")) |
| 70 | + self.gridLayout.addWidget(self.label_5, 1, 0, 1, 1) |
| 71 | + self.lineEditChanNameCreate = QtGui.QLineEdit(self.groupBoxCreateChan) |
| 72 | + self.lineEditChanNameCreate.setObjectName(_fromUtf8("lineEditChanNameCreate")) |
| 73 | + self.gridLayout.addWidget(self.lineEditChanNameCreate, 2, 0, 1, 1) |
| 74 | + self.formLayout.setWidget(2, QtGui.QFormLayout.SpanningRole, self.groupBoxCreateChan) |
| 75 | + self.buttonBox = QtGui.QDialogButtonBox(NewChanDialog) |
| 76 | + self.buttonBox.setOrientation(QtCore.Qt.Horizontal) |
| 77 | + self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) |
| 78 | + self.buttonBox.setObjectName(_fromUtf8("buttonBox")) |
| 79 | + self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.buttonBox) |
| 80 | + |
| 81 | + self.retranslateUi(NewChanDialog) |
| 82 | + QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), NewChanDialog.accept) |
| 83 | + QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), NewChanDialog.reject) |
| 84 | + QtCore.QObject.connect(self.radioButtonJoinChan, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.groupBoxJoinChan.setShown) |
| 85 | + QtCore.QObject.connect(self.radioButtonCreateChan, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.groupBoxCreateChan.setShown) |
| 86 | + QtCore.QMetaObject.connectSlotsByName(NewChanDialog) |
| 87 | + |
| 88 | + def retranslateUi(self, NewChanDialog): |
| 89 | + NewChanDialog.setWindowTitle(_translate("NewChanDialog", "Dialog", None)) |
| 90 | + self.radioButtonCreateChan.setText(_translate("NewChanDialog", "Create a new chan", None)) |
| 91 | + self.radioButtonJoinChan.setText(_translate("NewChanDialog", "Join a chan", None)) |
| 92 | + self.groupBoxJoinChan.setTitle(_translate("NewChanDialog", "Join a chan", None)) |
| 93 | + self.label.setText(_translate("NewChanDialog", "<html><head/><body><p>A chan is a set of encryption keys that is shared by a group of people. The keys and bitmessage address used by a chan is generated from a human-friendly word or phrase (the chan name).</p><p>Chans are experimental and are unmoderatable.</p></body></html>", None)) |
| 94 | + self.label_2.setText(_translate("NewChanDialog", "Chan name:", None)) |
| 95 | + self.label_3.setText(_translate("NewChanDialog", "Chan bitmessage address:", None)) |
| 96 | + self.groupBoxCreateChan.setTitle(_translate("NewChanDialog", "Create a chan", None)) |
| 97 | + self.label_4.setText(_translate("NewChanDialog", "Enter a name for your chan. If you choose a sufficiently complex chan name (like a strong and unique passphrase) and none of your friends share it publicly then the chan will be secure and private.", None)) |
| 98 | + self.label_5.setText(_translate("NewChanDialog", "Chan name:", None)) |
| 99 | + |
0 commit comments