| 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_UpdateCheckoutForm(object): |
| 16 |
def setupUi(self, UpdateCheckoutForm): |
| 17 |
UpdateCheckoutForm.setObjectName("UpdateCheckoutForm") |
| 18 |
UpdateCheckoutForm.resize(317, 170) |
| 19 |
self.verticalLayout = QtWidgets.QVBoxLayout(UpdateCheckoutForm) |
| 20 |
self.verticalLayout.setContentsMargins(9, 9, 9, 9) |
| 21 |
self.verticalLayout.setObjectName("verticalLayout") |
| 22 |
self.label = QtWidgets.QLabel(UpdateCheckoutForm) |
| 23 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) |
| 24 |
sizePolicy.setHorizontalStretch(0) |
| 25 |
sizePolicy.setVerticalStretch(0) |
| 26 |
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) |
| 27 |
self.label.setSizePolicy(sizePolicy) |
| 28 |
self.label.setObjectName("label") |
| 29 |
self.verticalLayout.addWidget(self.label) |
| 30 |
self.groupBox = QtWidgets.QGroupBox(UpdateCheckoutForm) |
| 31 |
self.groupBox.setObjectName("groupBox") |
| 32 |
self.gridLayout = QtWidgets.QGridLayout(self.groupBox) |
| 33 |
self.gridLayout.setObjectName("gridLayout") |
| 34 |
self.but_update = QtWidgets.QRadioButton(self.groupBox) |
| 35 |
self.but_update.setChecked(True) |
| 36 |
self.but_update.setObjectName("but_update") |
| 37 |
self.gridLayout.addWidget(self.but_update, 0, 0, 1, 3) |
| 38 |
self.but_pull = QtWidgets.QRadioButton(self.groupBox) |
| 39 |
self.but_pull.setEnabled(True) |
| 40 |
self.but_pull.setObjectName("but_pull") |
| 41 |
self.gridLayout.addWidget(self.but_pull, 1, 0, 1, 3) |
| 42 |
spacerItem = QtWidgets.QSpacerItem(18, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
| 43 |
self.gridLayout.addItem(spacerItem, 2, 0, 1, 1) |
| 44 |
self.location = QtWidgets.QComboBox(self.groupBox) |
| 45 |
self.location.setEnabled(False) |
| 46 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) |
| 47 |
sizePolicy.setHorizontalStretch(1) |
| 48 |
sizePolicy.setVerticalStretch(0) |
| 49 |
sizePolicy.setHeightForWidth(self.location.sizePolicy().hasHeightForWidth()) |
| 50 |
self.location.setSizePolicy(sizePolicy) |
| 51 |
self.location.setEditable(True) |
| 52 |
self.location.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLength) |
| 53 |
self.location.setObjectName("location") |
| 54 |
self.gridLayout.addWidget(self.location, 2, 1, 1, 1) |
| 55 |
self.location_picker = QtWidgets.QPushButton(self.groupBox) |
| 56 |
self.location_picker.setEnabled(False) |
| 57 |
self.location_picker.setObjectName("location_picker") |
| 58 |
self.gridLayout.addWidget(self.location_picker, 2, 2, 1, 1) |
| 59 |
spacerItem1 = QtWidgets.QSpacerItem(18, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
| 60 |
self.gridLayout.addItem(spacerItem1, 3, 0, 1, 1) |
| 61 |
self.but_pull_overwrite = QtWidgets.QCheckBox(self.groupBox) |
| 62 |
self.but_pull_overwrite.setEnabled(False) |
| 63 |
self.but_pull_overwrite.setObjectName("but_pull_overwrite") |
| 64 |
self.gridLayout.addWidget(self.but_pull_overwrite, 3, 1, 1, 2) |
| 65 |
self.verticalLayout.addWidget(self.groupBox) |
| 66 |
|
| 67 |
self.retranslateUi(UpdateCheckoutForm) |
| 68 |
self.but_pull.toggled['bool'].connect(self.location.setEnabled) |
| 69 |
self.but_pull.toggled['bool'].connect(self.location_picker.setEnabled) |
| 70 |
self.but_pull.toggled['bool'].connect(self.but_pull_overwrite.setEnabled) |
| 71 |
UpdateCheckoutForm.disableUi['bool'].connect(self.groupBox.setDisabled) |
| 72 |
QtCore.QMetaObject.connectSlotsByName(UpdateCheckoutForm) |
| 73 |
|
| 74 |
def retranslateUi(self, UpdateCheckoutForm): |
| 75 |
_translate = QtCore.QCoreApplication.translate |
| 76 |
UpdateCheckoutForm.setWindowTitle(_translate("UpdateCheckoutForm", "Update Checkout")) |
| 77 |
self.label.setText(_translate("UpdateCheckoutForm", "This directory is a checkout of: %s")) |
| 78 |
self.groupBox.setTitle(_translate("UpdateCheckoutForm", "Update source")) |
| 79 |
self.but_update.setText(_translate("UpdateCheckoutForm", "Update the working tree from the bound branch")) |
| 80 |
self.but_pull.setText(_translate("UpdateCheckoutForm", "Pull a different branch")) |
| 81 |
self.location_picker.setText(_translate("UpdateCheckoutForm", "Browse...")) |
| 82 |
self.but_pull_overwrite.setText(_translate("UpdateCheckoutForm", "Overwrite differences between branches")) |