| 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_PullForm(object): |
| 16 |
def setupUi(self, PullForm): |
| 17 |
PullForm.setObjectName("PullForm") |
| 18 |
PullForm.resize(404, 194) |
| 19 |
self.verticalLayout = QtWidgets.QVBoxLayout(PullForm) |
| 20 |
self.verticalLayout.setContentsMargins(9, 9, 9, 9) |
| 21 |
self.verticalLayout.setObjectName("verticalLayout") |
| 22 |
self.groupBox = QtWidgets.QGroupBox(PullForm) |
| 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 |
self.location.setEditable(True) |
| 31 |
self.location.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLength) |
| 32 |
self.location.setObjectName("location") |
| 33 |
self.gridLayout.addWidget(self.location, 0, 1, 1, 2) |
| 34 |
self.location_picker = QtWidgets.QPushButton(self.groupBox) |
| 35 |
self.location_picker.setObjectName("location_picker") |
| 36 |
self.gridLayout.addWidget(self.location_picker, 0, 3, 1, 1) |
| 37 |
self.label_3 = QtWidgets.QLabel(self.groupBox) |
| 38 |
self.label_3.setObjectName("label_3") |
| 39 |
self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1) |
| 40 |
self.revision = QtWidgets.QLineEdit(self.groupBox) |
| 41 |
self.revision.setObjectName("revision") |
| 42 |
self.gridLayout.addWidget(self.revision, 1, 1, 1, 1) |
| 43 |
spacerItem = QtWidgets.QSpacerItem(211, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
| 44 |
self.gridLayout.addItem(spacerItem, 1, 2, 1, 2) |
| 45 |
self.remember = QtWidgets.QCheckBox(self.groupBox) |
| 46 |
self.remember.setChecked(False) |
| 47 |
self.remember.setObjectName("remember") |
| 48 |
self.gridLayout.addWidget(self.remember, 2, 0, 1, 4) |
| 49 |
self.overwrite = QtWidgets.QCheckBox(self.groupBox) |
| 50 |
self.overwrite.setObjectName("overwrite") |
| 51 |
self.gridLayout.addWidget(self.overwrite, 3, 0, 1, 4) |
| 52 |
self.verticalLayout.addWidget(self.groupBox) |
| 53 |
self.label_2.setBuddy(self.location) |
| 54 |
self.label_3.setBuddy(self.revision) |
| 55 |
|
| 56 |
self.retranslateUi(PullForm) |
| 57 |
PullForm.disableUi['bool'].connect(self.groupBox.setDisabled) |
| 58 |
QtCore.QMetaObject.connectSlotsByName(PullForm) |
| 59 |
|
| 60 |
def retranslateUi(self, PullForm): |
| 61 |
_translate = QtCore.QCoreApplication.translate |
| 62 |
PullForm.setWindowTitle(_translate("PullForm", "Pull")) |
| 63 |
self.groupBox.setTitle(_translate("PullForm", "Options")) |
| 64 |
self.label_2.setText(_translate("PullForm", "&Location:")) |
| 65 |
self.location_picker.setText(_translate("PullForm", "Browse...")) |
| 66 |
self.label_3.setText(_translate("PullForm", "&Revision:")) |
| 67 |
self.remember.setText(_translate("PullForm", "Remember this location as a default")) |
| 68 |
self.overwrite.setText(_translate("PullForm", "Overwrite differences between branches")) |