| 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_PushForm(object): |
| 16 |
def setupUi(self, PushForm): |
| 17 |
PushForm.setObjectName("PushForm") |
| 18 |
PushForm.resize(349, 175) |
| 19 |
self.verticalLayout = QtWidgets.QVBoxLayout(PushForm) |
| 20 |
self.verticalLayout.setContentsMargins(9, 9, 9, 9) |
| 21 |
self.verticalLayout.setObjectName("verticalLayout") |
| 22 |
self.groupBox = QtWidgets.QGroupBox(PushForm) |
| 23 |
self.groupBox.setObjectName("groupBox") |
| 24 |
self.gridLayout = QtWidgets.QGridLayout(self.groupBox) |
| 25 |
self.gridLayout.setObjectName("gridLayout") |
| 26 |
self.label_2 = QtWidgets.QLabel(self.groupBox) |
| 27 |
self.label_2.setObjectName("label_2") |
| 28 |
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) |
| 29 |
self.location = QtWidgets.QComboBox(self.groupBox) |
| 30 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) |
| 31 |
sizePolicy.setHorizontalStretch(0) |
| 32 |
sizePolicy.setVerticalStretch(0) |
| 33 |
sizePolicy.setHeightForWidth(self.location.sizePolicy().hasHeightForWidth()) |
| 34 |
self.location.setSizePolicy(sizePolicy) |
| 35 |
self.location.setEditable(True) |
| 36 |
self.location.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLength) |
| 37 |
self.location.setObjectName("location") |
| 38 |
self.gridLayout.addWidget(self.location, 0, 1, 1, 1) |
| 39 |
self.location_picker = QtWidgets.QPushButton(self.groupBox) |
| 40 |
self.location_picker.setObjectName("location_picker") |
| 41 |
self.gridLayout.addWidget(self.location_picker, 0, 2, 1, 1) |
| 42 |
self.remember = QtWidgets.QCheckBox(self.groupBox) |
| 43 |
self.remember.setChecked(False) |
| 44 |
self.remember.setObjectName("remember") |
| 45 |
self.gridLayout.addWidget(self.remember, 1, 0, 1, 3) |
| 46 |
self.overwrite = QtWidgets.QCheckBox(self.groupBox) |
| 47 |
self.overwrite.setObjectName("overwrite") |
| 48 |
self.gridLayout.addWidget(self.overwrite, 2, 0, 1, 3) |
| 49 |
self.use_existing_dir = QtWidgets.QCheckBox(self.groupBox) |
| 50 |
self.use_existing_dir.setObjectName("use_existing_dir") |
| 51 |
self.gridLayout.addWidget(self.use_existing_dir, 3, 0, 1, 3) |
| 52 |
self.create_prefix = QtWidgets.QCheckBox(self.groupBox) |
| 53 |
self.create_prefix.setObjectName("create_prefix") |
| 54 |
self.gridLayout.addWidget(self.create_prefix, 4, 0, 1, 3) |
| 55 |
self.verticalLayout.addWidget(self.groupBox) |
| 56 |
self.label_2.setBuddy(self.location) |
| 57 |
|
| 58 |
self.retranslateUi(PushForm) |
| 59 |
PushForm.disableUi['bool'].connect(self.groupBox.setDisabled) |
| 60 |
QtCore.QMetaObject.connectSlotsByName(PushForm) |
| 61 |
|
| 62 |
def retranslateUi(self, PushForm): |
| 63 |
_translate = QtCore.QCoreApplication.translate |
| 64 |
PushForm.setWindowTitle(_translate("PushForm", "Push")) |
| 65 |
self.groupBox.setTitle(_translate("PushForm", "Options")) |
| 66 |
self.label_2.setText(_translate("PushForm", "&Location:")) |
| 67 |
self.location_picker.setText(_translate("PushForm", "Browse...")) |
| 68 |
self.remember.setText(_translate("PushForm", "Remember this location as a default")) |
| 69 |
self.overwrite.setText(_translate("PushForm", "Overwrite differences between branches")) |
| 70 |
self.use_existing_dir.setText(_translate("PushForm", "Use existing directory")) |
| 71 |
self.create_prefix.setText(_translate("PushForm", "Create the path up to the branch if it does not exist")) |