Debian Codegraph @

lib/ui_update_branch.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'ui/update_branch.ui'
4 #
5 # Created by: PyQt5 UI code generator 5.12.3
6 #
7 # WARNING! All changes made in this file will be lost!
8
9
10 from PyQt5 import QtCore, QtGui, QtWidgets
11 from breezy.plugins.qbrz.lib.i18n import gettext
12
13
14
15 class Ui_UpdateBranchForm(object):
16 def setupUi(self, UpdateBranchForm):
17 UpdateBranchForm.setObjectName("UpdateBranchForm")
18 UpdateBranchForm.resize(407, 198)
19 self.verticalLayout_3 = QtWidgets.QVBoxLayout(UpdateBranchForm)
20 self.verticalLayout_3.setContentsMargins(9, 9, 9, 9)
21 self.verticalLayout_3.setObjectName("verticalLayout_3")
22 self.label = QtWidgets.QLabel(UpdateBranchForm)
23 self.label.setScaledContents(False)
24 self.label.setWordWrap(False)
25 self.label.setObjectName("label")
26 self.verticalLayout_3.addWidget(self.label)
27 self.groupBox = QtWidgets.QGroupBox(UpdateBranchForm)
28 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
29 sizePolicy.setHorizontalStretch(0)
30 sizePolicy.setVerticalStretch(1)
31 sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
32 self.groupBox.setSizePolicy(sizePolicy)
33 self.groupBox.setObjectName("groupBox")
34 self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
35 self.gridLayout.setObjectName("gridLayout")
36 self.location_picker = QtWidgets.QPushButton(self.groupBox)
37 self.location_picker.setObjectName("location_picker")
38 self.gridLayout.addWidget(self.location_picker, 1, 2, 1, 1)
39 self.but_pull = QtWidgets.QRadioButton(self.groupBox)
40 self.but_pull.setChecked(True)
41 self.but_pull.setObjectName("but_pull")
42 self.gridLayout.addWidget(self.but_pull, 0, 0, 1, 3)
43 self.but_pull_remember = QtWidgets.QCheckBox(self.groupBox)
44 self.but_pull_remember.setEnabled(True)
45 self.but_pull_remember.setChecked(False)
46 self.but_pull_remember.setObjectName("but_pull_remember")
47 self.gridLayout.addWidget(self.but_pull_remember, 2, 1, 1, 2)
48 self.but_pull_overwrite = QtWidgets.QCheckBox(self.groupBox)
49 self.but_pull_overwrite.setObjectName("but_pull_overwrite")
50 self.gridLayout.addWidget(self.but_pull_overwrite, 3, 1, 1, 2)
51 spacerItem = QtWidgets.QSpacerItem(17, 18, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
52 self.gridLayout.addItem(spacerItem, 3, 0, 1, 1)
53 self.location = QtWidgets.QComboBox(self.groupBox)
54 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
55 sizePolicy.setHorizontalStretch(1)
56 sizePolicy.setVerticalStretch(0)
57 sizePolicy.setHeightForWidth(self.location.sizePolicy().hasHeightForWidth())
58 self.location.setSizePolicy(sizePolicy)
59 self.location.setEditable(True)
60 self.location.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLength)
61 self.location.setObjectName("location")
62 self.location.addItem("")
63 self.gridLayout.addWidget(self.location, 1, 1, 1, 1)
64 spacerItem1 = QtWidgets.QSpacerItem(18, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
65 self.gridLayout.addItem(spacerItem1, 1, 0, 1, 1)
66 spacerItem2 = QtWidgets.QSpacerItem(18, 17, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
67 self.gridLayout.addItem(spacerItem2, 2, 0, 1, 1)
68 self.but_update = QtWidgets.QRadioButton(self.groupBox)
69 self.but_update.setObjectName("but_update")
70 self.gridLayout.addWidget(self.but_update, 4, 0, 1, 3)
71 self.location_picker.raise_()
72 self.but_pull.raise_()
73 self.but_pull_remember.raise_()
74 self.but_pull_overwrite.raise_()
75 self.location.raise_()
76 self.but_update.raise_()
77 self.verticalLayout_3.addWidget(self.groupBox)
78
79 self.retranslateUi(UpdateBranchForm)
80 self.but_pull.toggled['bool'].connect(self.but_pull_remember.setEnabled)
81 self.but_pull.toggled['bool'].connect(self.but_pull_overwrite.setEnabled)
82 self.but_pull.toggled['bool'].connect(self.location.setEnabled)
83 self.but_pull.toggled['bool'].connect(self.location_picker.setEnabled)
84 UpdateBranchForm.disableUi['bool'].connect(self.label.setDisabled)
85 UpdateBranchForm.disableUi['bool'].connect(self.groupBox.setDisabled)
86 QtCore.QMetaObject.connectSlotsByName(UpdateBranchForm)
87
88 def retranslateUi(self, UpdateBranchForm):
89 _translate = QtCore.QCoreApplication.translate
90 UpdateBranchForm.setWindowTitle(_translate("UpdateBranchForm", "Update Branch"))
91 self.label.setText(_translate("UpdateBranchForm", "This directory is a branch. Please select what you would like to update"))
92 self.groupBox.setTitle(_translate("UpdateBranchForm", "Update source"))
93 self.location_picker.setText(_translate("UpdateBranchForm", "Browse..."))
94 self.but_pull.setText(_translate("UpdateBranchForm", "Pull most recent changes from:"))
95 self.but_pull_remember.setText(_translate("UpdateBranchForm", "Remember this as the new parent branch"))
96 self.but_pull_overwrite.setText(_translate("UpdateBranchForm", "Overwrite differences between branches"))
97 self.location.setItemText(0, _translate("UpdateBranchForm", "<Parent Branch shown here>"))
98 self.but_update.setText(_translate("UpdateBranchForm", "Update working tree to the latest changes in the branch"))