| 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_BranchForm(object): |
| 16 |
def setupUi(self, BranchForm): |
| 17 |
BranchForm.setObjectName("BranchForm") |
| 18 |
BranchForm.resize(349, 245) |
| 19 |
self.verticalLayout = QtWidgets.QVBoxLayout(BranchForm) |
| 20 |
self.verticalLayout.setObjectName("verticalLayout") |
| 21 |
self.groupBox = QtWidgets.QGroupBox(BranchForm) |
| 22 |
self.groupBox.setObjectName("groupBox") |
| 23 |
self.formLayout = QtWidgets.QFormLayout(self.groupBox) |
| 24 |
self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow) |
| 25 |
self.formLayout.setObjectName("formLayout") |
| 26 |
self.from_label = QtWidgets.QLabel(self.groupBox) |
| 27 |
self.from_label.setObjectName("from_label") |
| 28 |
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.from_label) |
| 29 |
self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
| 30 |
self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
| 31 |
self.from_location = QtWidgets.QComboBox(self.groupBox) |
| 32 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) |
| 33 |
sizePolicy.setHorizontalStretch(0) |
| 34 |
sizePolicy.setVerticalStretch(0) |
| 35 |
sizePolicy.setHeightForWidth(self.from_location.sizePolicy().hasHeightForWidth()) |
| 36 |
self.from_location.setSizePolicy(sizePolicy) |
| 37 |
self.from_location.setEditable(True) |
| 38 |
self.from_location.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContentsOnFirstShow) |
| 39 |
self.from_location.setObjectName("from_location") |
| 40 |
self.horizontalLayout_2.addWidget(self.from_location) |
| 41 |
self.from_picker = QtWidgets.QPushButton(self.groupBox) |
| 42 |
self.from_picker.setObjectName("from_picker") |
| 43 |
self.horizontalLayout_2.addWidget(self.from_picker) |
| 44 |
self.horizontalLayout_2.setStretch(0, 1) |
| 45 |
self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2) |
| 46 |
self.to_label = QtWidgets.QLabel(self.groupBox) |
| 47 |
self.to_label.setObjectName("to_label") |
| 48 |
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.to_label) |
| 49 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout() |
| 50 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
| 51 |
self.to_location = QtWidgets.QComboBox(self.groupBox) |
| 52 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) |
| 53 |
sizePolicy.setHorizontalStretch(0) |
| 54 |
sizePolicy.setVerticalStretch(0) |
| 55 |
sizePolicy.setHeightForWidth(self.to_location.sizePolicy().hasHeightForWidth()) |
| 56 |
self.to_location.setSizePolicy(sizePolicy) |
| 57 |
self.to_location.setEditable(True) |
| 58 |
self.to_location.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContentsOnFirstShow) |
| 59 |
self.to_location.setObjectName("to_location") |
| 60 |
self.horizontalLayout_3.addWidget(self.to_location) |
| 61 |
self.to_picker = QtWidgets.QPushButton(self.groupBox) |
| 62 |
self.to_picker.setObjectName("to_picker") |
| 63 |
self.horizontalLayout_3.addWidget(self.to_picker) |
| 64 |
self.horizontalLayout_3.setStretch(0, 1) |
| 65 |
self.formLayout.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3) |
| 66 |
self.verticalLayout.addWidget(self.groupBox) |
| 67 |
self.groupBox_2 = QtWidgets.QGroupBox(BranchForm) |
| 68 |
self.groupBox_2.setObjectName("groupBox_2") |
| 69 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2) |
| 70 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
| 71 |
self.bind = QtWidgets.QCheckBox(self.groupBox_2) |
| 72 |
self.bind.setObjectName("bind") |
| 73 |
self.verticalLayout_2.addWidget(self.bind) |
| 74 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
| 75 |
self.horizontalLayout.setObjectName("horizontalLayout") |
| 76 |
self.revision_label = QtWidgets.QLabel(self.groupBox_2) |
| 77 |
self.revision_label.setObjectName("revision_label") |
| 78 |
self.horizontalLayout.addWidget(self.revision_label) |
| 79 |
self.revision = QtWidgets.QLineEdit(self.groupBox_2) |
| 80 |
self.revision.setObjectName("revision") |
| 81 |
self.horizontalLayout.addWidget(self.revision) |
| 82 |
spacerItem = QtWidgets.QSpacerItem(78, 37, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
| 83 |
self.horizontalLayout.addItem(spacerItem) |
| 84 |
self.verticalLayout_2.addLayout(self.horizontalLayout) |
| 85 |
self.verticalLayout.addWidget(self.groupBox_2) |
| 86 |
self.from_label.setBuddy(self.from_location) |
| 87 |
self.to_label.setBuddy(self.to_location) |
| 88 |
self.revision_label.setBuddy(self.revision) |
| 89 |
|
| 90 |
self.retranslateUi(BranchForm) |
| 91 |
BranchForm.disableUi['bool'].connect(self.groupBox.setDisabled) |
| 92 |
QtCore.QMetaObject.connectSlotsByName(BranchForm) |
| 93 |
|
| 94 |
def retranslateUi(self, BranchForm): |
| 95 |
_translate = QtCore.QCoreApplication.translate |
| 96 |
BranchForm.setWindowTitle(_translate("BranchForm", "Branch")) |
| 97 |
self.groupBox.setTitle(_translate("BranchForm", "Locations")) |
| 98 |
self.from_label.setText(_translate("BranchForm", "&From:")) |
| 99 |
self.from_picker.setText(_translate("BranchForm", "Browse...")) |
| 100 |
self.to_label.setText(_translate("BranchForm", "&To:")) |
| 101 |
self.to_picker.setText(_translate("BranchForm", "Browse...")) |
| 102 |
self.groupBox_2.setTitle(_translate("BranchForm", "Options")) |
| 103 |
self.bind.setText(_translate("BranchForm", "Bind new branch to parent location")) |
| 104 |
self.revision_label.setText(_translate("BranchForm", "&Revision:")) |