| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
from PyQt5 import QtCore, QtGui, QtWidgets |
| 11 |
from breezy.plugins.qbrz.lib.i18n import gettext |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
class Ui_InitForm(object): |
| 16 |
def setupUi(self, InitForm): |
| 17 |
InitForm.setObjectName("InitForm") |
| 18 |
InitForm.resize(417, 351) |
| 19 |
self.verticalLayout = QtWidgets.QVBoxLayout(InitForm) |
| 20 |
self.verticalLayout.setContentsMargins(9, 9, 9, 9) |
| 21 |
self.verticalLayout.setObjectName("verticalLayout") |
| 22 |
self.groupBox_3 = QtWidgets.QGroupBox(InitForm) |
| 23 |
self.groupBox_3.setObjectName("groupBox_3") |
| 24 |
self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_3) |
| 25 |
self.horizontalLayout.setObjectName("horizontalLayout") |
| 26 |
self.location = QtWidgets.QLineEdit(self.groupBox_3) |
| 27 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) |
| 28 |
sizePolicy.setHorizontalStretch(1) |
| 29 |
sizePolicy.setVerticalStretch(0) |
| 30 |
sizePolicy.setHeightForWidth(self.location.sizePolicy().hasHeightForWidth()) |
| 31 |
self.location.setSizePolicy(sizePolicy) |
| 32 |
self.location.setObjectName("location") |
| 33 |
self.horizontalLayout.addWidget(self.location) |
| 34 |
self.location_picker = QtWidgets.QPushButton(self.groupBox_3) |
| 35 |
self.location_picker.setObjectName("location_picker") |
| 36 |
self.horizontalLayout.addWidget(self.location_picker) |
| 37 |
self.verticalLayout.addWidget(self.groupBox_3) |
| 38 |
self.groupBox = QtWidgets.QGroupBox(InitForm) |
| 39 |
self.groupBox.setObjectName("groupBox") |
| 40 |
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox) |
| 41 |
self.verticalLayout_3.setObjectName("verticalLayout_3") |
| 42 |
self.but_init = QtWidgets.QRadioButton(self.groupBox) |
| 43 |
self.but_init.setChecked(True) |
| 44 |
self.but_init.setObjectName("but_init") |
| 45 |
self.verticalLayout_3.addWidget(self.but_init) |
| 46 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
| 47 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
| 48 |
spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) |
| 49 |
self.horizontalLayout_3.addItem(spacerItem) |
| 50 |
self.but_append_only = QtWidgets.QCheckBox(self.groupBox) |
| 51 |
self.but_append_only.setObjectName("but_append_only") |
| 52 |
self.horizontalLayout_3.addWidget(self.but_append_only) |
| 53 |
self.verticalLayout_3.addLayout(self.horizontalLayout_3) |
| 54 |
self.radioButton_2 = QtWidgets.QRadioButton(self.groupBox) |
| 55 |
self.radioButton_2.setObjectName("radioButton_2") |
| 56 |
self.verticalLayout_3.addWidget(self.radioButton_2) |
| 57 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout() |
| 58 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
| 59 |
spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) |
| 60 |
self.horizontalLayout_4.addItem(spacerItem1) |
| 61 |
self.but_no_trees = QtWidgets.QCheckBox(self.groupBox) |
| 62 |
self.but_no_trees.setEnabled(False) |
| 63 |
self.but_no_trees.setObjectName("but_no_trees") |
| 64 |
self.horizontalLayout_4.addWidget(self.but_no_trees) |
| 65 |
self.verticalLayout_3.addLayout(self.horizontalLayout_4) |
| 66 |
self.link_help = QtWidgets.QLabel(self.groupBox) |
| 67 |
self.link_help.setObjectName("link_help") |
| 68 |
self.verticalLayout_3.addWidget(self.link_help) |
| 69 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
| 70 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
| 71 |
self.label = QtWidgets.QLabel(self.groupBox) |
| 72 |
self.label.setObjectName("label") |
| 73 |
self.horizontalLayout_2.addWidget(self.label) |
| 74 |
self.combo_format = QtWidgets.QComboBox(self.groupBox) |
| 75 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) |
| 76 |
sizePolicy.setHorizontalStretch(1) |
| 77 |
sizePolicy.setVerticalStretch(0) |
| 78 |
sizePolicy.setHeightForWidth(self.combo_format.sizePolicy().hasHeightForWidth()) |
| 79 |
self.combo_format.setSizePolicy(sizePolicy) |
| 80 |
self.combo_format.setObjectName("combo_format") |
| 81 |
self.horizontalLayout_2.addWidget(self.combo_format) |
| 82 |
self.verticalLayout_3.addLayout(self.horizontalLayout_2) |
| 83 |
self.scrollArea = QtWidgets.QScrollArea(self.groupBox) |
| 84 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
| 85 |
sizePolicy.setHorizontalStretch(0) |
| 86 |
sizePolicy.setVerticalStretch(0) |
| 87 |
sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth()) |
| 88 |
self.scrollArea.setSizePolicy(sizePolicy) |
| 89 |
self.scrollArea.setWidgetResizable(True) |
| 90 |
self.scrollArea.setObjectName("scrollArea") |
| 91 |
self.scrollAreaWidgetContents = QtWidgets.QWidget() |
| 92 |
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 377, 60)) |
| 93 |
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") |
| 94 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents) |
| 95 |
self.verticalLayout_2.setContentsMargins(4, 4, 4, 4) |
| 96 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
| 97 |
self.format_desc = QtWidgets.QLabel(self.scrollAreaWidgetContents) |
| 98 |
self.format_desc.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) |
| 99 |
self.format_desc.setWordWrap(True) |
| 100 |
self.format_desc.setObjectName("format_desc") |
| 101 |
self.verticalLayout_2.addWidget(self.format_desc) |
| 102 |
self.scrollArea.setWidget(self.scrollAreaWidgetContents) |
| 103 |
self.verticalLayout_3.addWidget(self.scrollArea) |
| 104 |
self.link_help_formats = QtWidgets.QLabel(self.groupBox) |
| 105 |
self.link_help_formats.setObjectName("link_help_formats") |
| 106 |
self.verticalLayout_3.addWidget(self.link_help_formats) |
| 107 |
self.verticalLayout.addWidget(self.groupBox) |
| 108 |
|
| 109 |
self.retranslateUi(InitForm) |
| 110 |
self.link_help.linkActivated['QString'].connect(InitForm.linkActivated) |
| 111 |
self.link_help_formats.linkActivated['QString'].connect(InitForm.linkActivated) |
| 112 |
InitForm.disableUi['bool'].connect(self.groupBox_3.setDisabled) |
| 113 |
InitForm.disableUi['bool'].connect(self.groupBox.setDisabled) |
| 114 |
self.but_init.toggled['bool'].connect(self.but_append_only.setEnabled) |
| 115 |
self.radioButton_2.toggled['bool'].connect(self.but_no_trees.setEnabled) |
| 116 |
QtCore.QMetaObject.connectSlotsByName(InitForm) |
| 117 |
|
| 118 |
def retranslateUi(self, InitForm): |
| 119 |
_translate = QtCore.QCoreApplication.translate |
| 120 |
InitForm.setWindowTitle(_translate("InitForm", "Initialize")) |
| 121 |
self.groupBox_3.setTitle(_translate("InitForm", "Local Directory")) |
| 122 |
self.location_picker.setText(_translate("InitForm", "Browse...")) |
| 123 |
self.groupBox.setTitle(_translate("InitForm", "Repository")) |
| 124 |
self.but_init.setText(_translate("InitForm", "Create a new standalone tree")) |
| 125 |
self.but_append_only.setText(_translate("InitForm", "Ensure all revisions are appended to the log")) |
| 126 |
self.radioButton_2.setText(_translate("InitForm", "Create a new shared repository")) |
| 127 |
self.but_no_trees.setText(_translate("InitForm", "Skip the creation of working trees in this repository")) |
| 128 |
self.link_help.setText(_translate("InitForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" |
| 129 |
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" |
| 130 |
"p, li { white-space: pre-wrap; }\n" |
| 131 |
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" |
| 132 |
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Tell me more about <a href=\"bzrtopic:standalone-trees\"><span style=\" text-decoration: underline; color:#0000ff;\">standalone trees</span></a>, <a href=\"bzrtopic:repositories\"><span style=\" text-decoration: underline; color:#0000ff;\">repositories</span></a> and <a href=\"bzrtopic:branches\"><span style=\" text-decoration: underline; color:#0000ff;\">branches</span></a>.</p></body></html>")) |
| 133 |
self.label.setText(_translate("InitForm", "Repository Format:")) |
| 134 |
self.format_desc.setText(_translate("InitForm", "Description of format")) |
| 135 |
self.link_help_formats.setText(_translate("InitForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" |
| 136 |
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" |
| 137 |
"p, li { white-space: pre-wrap; }\n" |
| 138 |
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" |
| 139 |
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"bzrtopic:formats\"><span style=\" text-decoration: underline; color:#0000ff;\">More information about repository formats.</span></a></p></body></html>")) |