src/eric7/Preferences/ConfigurationPages/Ui_DebuggerGeneralPage.py

branch
eric7
changeset 10980
40e1979abdb7
parent 10935
680150fd2b8c
child 11029
1cd8701ed260
diff -r 960fe726594c -r 40e1979abdb7 src/eric7/Preferences/ConfigurationPages/Ui_DebuggerGeneralPage.py
--- a/src/eric7/Preferences/ConfigurationPages/Ui_DebuggerGeneralPage.py	Tue Oct 15 16:29:36 2024 +0200
+++ b/src/eric7/Preferences/ConfigurationPages/Ui_DebuggerGeneralPage.py	Wed Oct 16 11:26:07 2024 +0200
@@ -98,44 +98,35 @@
         self.verticalLayout_2.addWidget(self.label_3)
         self.passiveDbgGroup = QtWidgets.QGroupBox(parent=self.groupBox_12)
         self.passiveDbgGroup.setCheckable(True)
-        self.passiveDbgGroup.setChecked(False)
         self.passiveDbgGroup.setObjectName("passiveDbgGroup")
         self.gridLayout = QtWidgets.QGridLayout(self.passiveDbgGroup)
         self.gridLayout.setObjectName("gridLayout")
+        self.label = QtWidgets.QLabel(parent=self.passiveDbgGroup)
+        self.label.setObjectName("label")
+        self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
+        spacerItem2 = QtWidgets.QSpacerItem(91, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+        self.gridLayout.addItem(spacerItem2, 1, 2, 1, 2)
+        self.passiveDbgBackendCombo = QtWidgets.QComboBox(parent=self.passiveDbgGroup)
+        self.passiveDbgBackendCombo.setObjectName("passiveDbgBackendCombo")
+        self.gridLayout.addWidget(self.passiveDbgBackendCombo, 2, 1, 1, 2)
+        self.passiveDbgPortSpinBox = QtWidgets.QSpinBox(parent=self.passiveDbgGroup)
+        self.passiveDbgPortSpinBox.setMinimum(1024)
+        self.passiveDbgPortSpinBox.setMaximum(65535)
+        self.passiveDbgPortSpinBox.setProperty("value", 42424)
+        self.passiveDbgPortSpinBox.setObjectName("passiveDbgPortSpinBox")
+        self.gridLayout.addWidget(self.passiveDbgPortSpinBox, 1, 1, 1, 1)
         self.TextLabel1_2_2 = QtWidgets.QLabel(parent=self.passiveDbgGroup)
         self.TextLabel1_2_2.setWordWrap(True)
         self.TextLabel1_2_2.setObjectName("TextLabel1_2_2")
         self.gridLayout.addWidget(self.TextLabel1_2_2, 0, 0, 1, 4)
-        self.passiveDbgCheckBox = QtWidgets.QCheckBox(parent=self.passiveDbgGroup)
-        self.passiveDbgCheckBox.setObjectName("passiveDbgCheckBox")
-        self.gridLayout.addWidget(self.passiveDbgCheckBox, 1, 0, 1, 4)
+        spacerItem3 = QtWidgets.QSpacerItem(91, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+        self.gridLayout.addItem(spacerItem3, 2, 3, 1, 1)
         self.passiveDbgPortLabel = QtWidgets.QLabel(parent=self.passiveDbgGroup)
-        self.passiveDbgPortLabel.setEnabled(False)
         self.passiveDbgPortLabel.setObjectName("passiveDbgPortLabel")
-        self.gridLayout.addWidget(self.passiveDbgPortLabel, 2, 0, 1, 1)
-        self.passiveDbgPortSpinBox = QtWidgets.QSpinBox(parent=self.passiveDbgGroup)
-        self.passiveDbgPortSpinBox.setEnabled(False)
-        self.passiveDbgPortSpinBox.setMinimum(1024)
-        self.passiveDbgPortSpinBox.setMaximum(65535)
-        self.passiveDbgPortSpinBox.setProperty("value", 42424)
-        self.passiveDbgPortSpinBox.setObjectName("passiveDbgPortSpinBox")
-        self.gridLayout.addWidget(self.passiveDbgPortSpinBox, 2, 1, 1, 1)
-        spacerItem2 = QtWidgets.QSpacerItem(91, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
-        self.gridLayout.addItem(spacerItem2, 2, 2, 1, 2)
-        self.label = QtWidgets.QLabel(parent=self.passiveDbgGroup)
-        self.label.setEnabled(False)
-        self.label.setObjectName("label")
-        self.gridLayout.addWidget(self.label, 3, 0, 1, 1)
-        self.passiveDbgBackendCombo = QtWidgets.QComboBox(parent=self.passiveDbgGroup)
-        self.passiveDbgBackendCombo.setEnabled(False)
-        self.passiveDbgBackendCombo.setObjectName("passiveDbgBackendCombo")
-        self.gridLayout.addWidget(self.passiveDbgBackendCombo, 3, 1, 1, 2)
-        spacerItem3 = QtWidgets.QSpacerItem(91, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
-        self.gridLayout.addItem(spacerItem3, 3, 3, 1, 1)
+        self.gridLayout.addWidget(self.passiveDbgPortLabel, 1, 0, 1, 1)
         self.verticalLayout_2.addWidget(self.passiveDbgGroup)
         self.remoteDebuggerGroup = QtWidgets.QGroupBox(parent=self.groupBox_12)
         self.remoteDebuggerGroup.setCheckable(True)
-        self.remoteDebuggerGroup.setChecked(False)
         self.remoteDebuggerGroup.setObjectName("remoteDebuggerGroup")
         self.gridLayout_2 = QtWidgets.QGridLayout(self.remoteDebuggerGroup)
         self.gridLayout_2.setObjectName("gridLayout_2")
@@ -161,7 +152,6 @@
         self.verticalLayout_2.addWidget(self.remoteDebuggerGroup)
         self.dbgPathTranslationGroup = QtWidgets.QGroupBox(parent=self.groupBox_12)
         self.dbgPathTranslationGroup.setCheckable(True)
-        self.dbgPathTranslationGroup.setChecked(False)
         self.dbgPathTranslationGroup.setObjectName("dbgPathTranslationGroup")
         self._2 = QtWidgets.QGridLayout(self.dbgPathTranslationGroup)
         self._2.setObjectName("_2")
@@ -346,10 +336,6 @@
         self.execLabel.setBuddy(self.execLineEdit)
 
         self.retranslateUi(DebuggerGeneralPage)
-        self.passiveDbgCheckBox.toggled['bool'].connect(self.passiveDbgPortLabel.setEnabled) # type: ignore
-        self.passiveDbgCheckBox.toggled['bool'].connect(self.passiveDbgPortSpinBox.setEnabled) # type: ignore
-        self.passiveDbgCheckBox.toggled['bool'].connect(self.label.setEnabled) # type: ignore
-        self.passiveDbgCheckBox.toggled['bool'].connect(self.passiveDbgBackendCombo.setEnabled) # type: ignore
         QtCore.QMetaObject.connectSlotsByName(DebuggerGeneralPage)
         DebuggerGeneralPage.setTabOrder(self.interfaceSelectorComboBox, self.interfacesCombo)
         DebuggerGeneralPage.setTabOrder(self.interfacesCombo, self.serverPortStaticGroup)
@@ -360,8 +346,7 @@
         DebuggerGeneralPage.setTabOrder(self.addAllowedHostButton, self.editAllowedHostButton)
         DebuggerGeneralPage.setTabOrder(self.editAllowedHostButton, self.deleteAllowedHostButton)
         DebuggerGeneralPage.setTabOrder(self.deleteAllowedHostButton, self.passiveDbgGroup)
-        DebuggerGeneralPage.setTabOrder(self.passiveDbgGroup, self.passiveDbgCheckBox)
-        DebuggerGeneralPage.setTabOrder(self.passiveDbgCheckBox, self.passiveDbgPortSpinBox)
+        DebuggerGeneralPage.setTabOrder(self.passiveDbgGroup, self.passiveDbgPortSpinBox)
         DebuggerGeneralPage.setTabOrder(self.passiveDbgPortSpinBox, self.passiveDbgBackendCombo)
         DebuggerGeneralPage.setTabOrder(self.passiveDbgBackendCombo, self.remoteDebuggerGroup)
         DebuggerGeneralPage.setTabOrder(self.remoteDebuggerGroup, self.hostLineEdit)
@@ -408,17 +393,13 @@
         self.groupBox_12.setTitle(_translate("DebuggerGeneralPage", "Remote Debugging"))
         self.label_3.setText(_translate("DebuggerGeneralPage", "<font color=\"#FF0000\"><b>Note:</b> Only one or none of \'Passive\' or \'Remote Debugger must be activated.</font>"))
         self.passiveDbgGroup.setTitle(_translate("DebuggerGeneralPage", "Passive Debugger"))
-        self.TextLabel1_2_2.setText(_translate("DebuggerGeneralPage", "<font color=\"#FF0000\"><b>Note:</b> These settings are activated at the next startup of the application.</font>"))
-        self.passiveDbgCheckBox.setToolTip(_translate("DebuggerGeneralPage", "Enables the passive debug mode"))
-        self.passiveDbgCheckBox.setWhatsThis(_translate("DebuggerGeneralPage", "<b>Passive Debugger Enabled</b>\n"
-"<p>This enables the passive debugging mode. In this mode the debug client (the script) connects to the debug server (the IDE). The script is started outside the IDE. This way mod_python or Zope scripts can be debugged.</p>"))
-        self.passiveDbgCheckBox.setText(_translate("DebuggerGeneralPage", "Passive Debugger Enabled"))
-        self.passiveDbgPortLabel.setText(_translate("DebuggerGeneralPage", "Debug Server Port:"))
+        self.label.setText(_translate("DebuggerGeneralPage", "Debugger Type:"))
+        self.passiveDbgBackendCombo.setToolTip(_translate("DebuggerGeneralPage", "Select the debugger type of the backend"))
         self.passiveDbgPortSpinBox.setToolTip(_translate("DebuggerGeneralPage", "Enter the port the debugger should listen on"))
         self.passiveDbgPortSpinBox.setWhatsThis(_translate("DebuggerGeneralPage", "<b>Debug Server Port</b>\n"
 "<p>Enter the port the debugger should listen on.</p>"))
-        self.label.setText(_translate("DebuggerGeneralPage", "Debugger Type:"))
-        self.passiveDbgBackendCombo.setToolTip(_translate("DebuggerGeneralPage", "Select the debugger type of the backend"))
+        self.TextLabel1_2_2.setText(_translate("DebuggerGeneralPage", "<font color=\"#FF0000\"><b>Note:</b> These settings are activated at the next startup of the application.</font>"))
+        self.passiveDbgPortLabel.setText(_translate("DebuggerGeneralPage", "Debug Server Port:"))
         self.remoteDebuggerGroup.setToolTip(_translate("DebuggerGeneralPage", "Select, if the debugger should be run remotely"))
         self.remoteDebuggerGroup.setTitle(_translate("DebuggerGeneralPage", "Remote Debugger"))
         self.hostLabel.setText(_translate("DebuggerGeneralPage", "Remote Host:"))

eric ide

mercurial