src/eric7/UI/Ui_DiffDialog.py

branch
eric7
changeset 10743
5d3a5a05114e
child 10745
2921faddeaec
equal deleted inserted replaced
10742:7aa41173b44b 10743:5d3a5a05114e
1 # Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_default/src/eric7/UI/DiffDialog.ui'
2 #
3 # Created by: PyQt6 UI code generator 6.7.0
4 #
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is
6 # run again. Do not edit this file unless you know what you are doing.
7
8
9 from PyQt6 import QtCore, QtGui, QtWidgets
10
11
12 class Ui_DiffDialog(object):
13 def setupUi(self, DiffDialog):
14 DiffDialog.setObjectName("DiffDialog")
15 DiffDialog.resize(750, 800)
16 self.verticalLayout = QtWidgets.QVBoxLayout(DiffDialog)
17 self.verticalLayout.setObjectName("verticalLayout")
18 self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
19 self.horizontalLayout_2.setObjectName("horizontalLayout_2")
20 self.textLabel1 = QtWidgets.QLabel(parent=DiffDialog)
21 self.textLabel1.setObjectName("textLabel1")
22 self.horizontalLayout_2.addWidget(self.textLabel1)
23 self.file1Picker = EricPathPicker(parent=DiffDialog)
24 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred)
25 sizePolicy.setHorizontalStretch(0)
26 sizePolicy.setVerticalStretch(0)
27 sizePolicy.setHeightForWidth(self.file1Picker.sizePolicy().hasHeightForWidth())
28 self.file1Picker.setSizePolicy(sizePolicy)
29 self.file1Picker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
30 self.file1Picker.setObjectName("file1Picker")
31 self.horizontalLayout_2.addWidget(self.file1Picker)
32 self.verticalLayout.addLayout(self.horizontalLayout_2)
33 self.horizontalLayout = QtWidgets.QHBoxLayout()
34 self.horizontalLayout.setObjectName("horizontalLayout")
35 self.textLabel2 = QtWidgets.QLabel(parent=DiffDialog)
36 self.textLabel2.setObjectName("textLabel2")
37 self.horizontalLayout.addWidget(self.textLabel2)
38 self.file2Picker = EricPathPicker(parent=DiffDialog)
39 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred)
40 sizePolicy.setHorizontalStretch(0)
41 sizePolicy.setVerticalStretch(0)
42 sizePolicy.setHeightForWidth(self.file2Picker.sizePolicy().hasHeightForWidth())
43 self.file2Picker.setSizePolicy(sizePolicy)
44 self.file2Picker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
45 self.file2Picker.setObjectName("file2Picker")
46 self.horizontalLayout.addWidget(self.file2Picker)
47 self.verticalLayout.addLayout(self.horizontalLayout)
48 self.diffFormatGroup = QtWidgets.QGroupBox(parent=DiffDialog)
49 self.diffFormatGroup.setObjectName("diffFormatGroup")
50 self.hboxlayout = QtWidgets.QHBoxLayout(self.diffFormatGroup)
51 self.hboxlayout.setObjectName("hboxlayout")
52 self.unifiedRadioButton = QtWidgets.QRadioButton(parent=self.diffFormatGroup)
53 self.unifiedRadioButton.setChecked(True)
54 self.unifiedRadioButton.setObjectName("unifiedRadioButton")
55 self.hboxlayout.addWidget(self.unifiedRadioButton)
56 self.contextRadioButton = QtWidgets.QRadioButton(parent=self.diffFormatGroup)
57 self.contextRadioButton.setObjectName("contextRadioButton")
58 self.hboxlayout.addWidget(self.contextRadioButton)
59 spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
60 self.hboxlayout.addItem(spacerItem)
61 self.verticalLayout.addWidget(self.diffFormatGroup)
62 self.searchWidget = EricTextEditSearchWidget(parent=DiffDialog)
63 self.searchWidget.setFocusPolicy(QtCore.Qt.FocusPolicy.WheelFocus)
64 self.searchWidget.setObjectName("searchWidget")
65 self.verticalLayout.addWidget(self.searchWidget)
66 self.contents = QtWidgets.QPlainTextEdit(parent=DiffDialog)
67 self.contents.setLineWrapMode(QtWidgets.QPlainTextEdit.LineWrapMode.NoWrap)
68 self.contents.setReadOnly(True)
69 self.contents.setTabStopDistance(8.0)
70 self.contents.setObjectName("contents")
71 self.verticalLayout.addWidget(self.contents)
72 self.buttonBox = QtWidgets.QDialogButtonBox(parent=DiffDialog)
73 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
74 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close)
75 self.buttonBox.setObjectName("buttonBox")
76 self.verticalLayout.addWidget(self.buttonBox)
77 self.textLabel1.setBuddy(self.file1Picker)
78 self.textLabel2.setBuddy(self.file2Picker)
79
80 self.retranslateUi(DiffDialog)
81 self.buttonBox.rejected.connect(DiffDialog.close) # type: ignore
82 QtCore.QMetaObject.connectSlotsByName(DiffDialog)
83 DiffDialog.setTabOrder(self.file1Picker, self.file2Picker)
84 DiffDialog.setTabOrder(self.file2Picker, self.unifiedRadioButton)
85 DiffDialog.setTabOrder(self.unifiedRadioButton, self.contextRadioButton)
86 DiffDialog.setTabOrder(self.contextRadioButton, self.searchWidget)
87 DiffDialog.setTabOrder(self.searchWidget, self.contents)
88
89 def retranslateUi(self, DiffDialog):
90 _translate = QtCore.QCoreApplication.translate
91 DiffDialog.setWindowTitle(_translate("DiffDialog", "File Differences"))
92 self.textLabel1.setText(_translate("DiffDialog", "File &1:"))
93 self.file1Picker.setToolTip(_translate("DiffDialog", "Enter the name of the first file"))
94 self.textLabel2.setText(_translate("DiffDialog", "File &2:"))
95 self.file2Picker.setToolTip(_translate("DiffDialog", "Enter the name of the second file"))
96 self.diffFormatGroup.setTitle(_translate("DiffDialog", "Select Diff Kind"))
97 self.unifiedRadioButton.setToolTip(_translate("DiffDialog", "Select to generate a unified diff"))
98 self.unifiedRadioButton.setText(_translate("DiffDialog", "&Unified Diff"))
99 self.unifiedRadioButton.setShortcut(_translate("DiffDialog", "Alt+U"))
100 self.contextRadioButton.setToolTip(_translate("DiffDialog", "Select to generate a context diff"))
101 self.contextRadioButton.setText(_translate("DiffDialog", "Co&ntext Diff"))
102 self.contextRadioButton.setShortcut(_translate("DiffDialog", "Alt+N"))
103 from eric7.EricWidgets.EricPathPicker import EricPathPicker
104 from eric7.EricWidgets.EricTextEditSearchWidget import EricTextEditSearchWidget

eric ide

mercurial