# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/Preferences/ConfigurationPages/DebuggerGeneral1Page.ui'
#
# Created: Sat Feb  3 15:33:44 2007
#      by: PyQt4 UI code generator 4-snapshot-20070125
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_DebuggerGeneral1Page(object):
    def setupUi(self, DebuggerGeneral1Page):
        DebuggerGeneral1Page.setObjectName("DebuggerGeneral1Page")
        DebuggerGeneral1Page.resize(QtCore.QSize(QtCore.QRect(0,0,470,588).size()).expandedTo(DebuggerGeneral1Page.minimumSizeHint()))

        self.vboxlayout = QtGui.QVBoxLayout(DebuggerGeneral1Page)
        self.vboxlayout.setMargin(6)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setObjectName("vboxlayout")

        self.headerLabel = QtGui.QLabel(DebuggerGeneral1Page)
        self.headerLabel.setObjectName("headerLabel")
        self.vboxlayout.addWidget(self.headerLabel)

        self.line11 = QtGui.QFrame(DebuggerGeneral1Page)
        self.line11.setFrameShape(QtGui.QFrame.HLine)
        self.line11.setFrameShadow(QtGui.QFrame.Sunken)
        self.line11.setFrameShape(QtGui.QFrame.HLine)
        self.line11.setFrameShadow(QtGui.QFrame.Sunken)
        self.line11.setObjectName("line11")
        self.vboxlayout.addWidget(self.line11)

        self.groupBox_3 = QtGui.QGroupBox(DebuggerGeneral1Page)
        self.groupBox_3.setObjectName("groupBox_3")

        self.gridlayout = QtGui.QGridLayout(self.groupBox_3)
        self.gridlayout.setMargin(6)
        self.gridlayout.setSpacing(6)
        self.gridlayout.setObjectName("gridlayout")

        self.interfacesCombo = QtGui.QComboBox(self.groupBox_3)
        self.interfacesCombo.setEnabled(False)
        self.interfacesCombo.setObjectName("interfacesCombo")
        self.gridlayout.addWidget(self.interfacesCombo,2,0,1,2)

        self.TextLabel1_2_3 = QtGui.QLabel(self.groupBox_3)
        self.TextLabel1_2_3.setObjectName("TextLabel1_2_3")
        self.gridlayout.addWidget(self.TextLabel1_2_3,0,0,1,2)

        self.allInterfacesButton = QtGui.QRadioButton(self.groupBox_3)
        self.allInterfacesButton.setObjectName("allInterfacesButton")
        self.gridlayout.addWidget(self.allInterfacesButton,1,0,1,1)

        self.selectedInterfaceButton = QtGui.QRadioButton(self.groupBox_3)
        self.selectedInterfaceButton.setObjectName("selectedInterfaceButton")
        self.gridlayout.addWidget(self.selectedInterfaceButton,1,1,1,1)
        self.vboxlayout.addWidget(self.groupBox_3)

        self.groupBox_4 = QtGui.QGroupBox(DebuggerGeneral1Page)
        self.groupBox_4.setObjectName("groupBox_4")

        self.gridlayout1 = QtGui.QGridLayout(self.groupBox_4)
        self.gridlayout1.setMargin(6)
        self.gridlayout1.setSpacing(6)
        self.gridlayout1.setObjectName("gridlayout1")

        spacerItem = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.gridlayout1.addItem(spacerItem,3,1,1,1)

        self.deleteAllowedHostButton = QtGui.QPushButton(self.groupBox_4)
        self.deleteAllowedHostButton.setEnabled(False)
        self.deleteAllowedHostButton.setObjectName("deleteAllowedHostButton")
        self.gridlayout1.addWidget(self.deleteAllowedHostButton,2,1,1,1)

        self.editAllowedHostButton = QtGui.QPushButton(self.groupBox_4)
        self.editAllowedHostButton.setEnabled(False)
        self.editAllowedHostButton.setObjectName("editAllowedHostButton")
        self.gridlayout1.addWidget(self.editAllowedHostButton,1,1,1,1)

        self.addAllowedHostButton = QtGui.QPushButton(self.groupBox_4)
        self.addAllowedHostButton.setObjectName("addAllowedHostButton")
        self.gridlayout1.addWidget(self.addAllowedHostButton,0,1,1,1)

        self.allowedHostsList = QtGui.QListWidget(self.groupBox_4)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Policy(7),QtGui.QSizePolicy.Policy(5))
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.allowedHostsList.sizePolicy().hasHeightForWidth())
        self.allowedHostsList.setSizePolicy(sizePolicy)
        self.allowedHostsList.setObjectName("allowedHostsList")
        self.gridlayout1.addWidget(self.allowedHostsList,0,0,4,1)
        self.vboxlayout.addWidget(self.groupBox_4)

        self.groupBox = QtGui.QGroupBox(DebuggerGeneral1Page)
        self.groupBox.setObjectName("groupBox")

        self.gridlayout2 = QtGui.QGridLayout(self.groupBox)
        self.gridlayout2.setMargin(6)
        self.gridlayout2.setSpacing(6)
        self.gridlayout2.setObjectName("gridlayout2")

        self.TextLabel1_2_2 = QtGui.QLabel(self.groupBox)
        self.TextLabel1_2_2.setObjectName("TextLabel1_2_2")
        self.gridlayout2.addWidget(self.TextLabel1_2_2,0,0,1,3)

        spacerItem1 = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.gridlayout2.addItem(spacerItem1,2,2,1,1)

        self.passiveDbgPortSpinBox = QtGui.QSpinBox(self.groupBox)
        self.passiveDbgPortSpinBox.setEnabled(False)
        self.passiveDbgPortSpinBox.setMaximum(65535)
        self.passiveDbgPortSpinBox.setMinimum(1024)
        self.passiveDbgPortSpinBox.setProperty("value",QtCore.QVariant(42424))
        self.passiveDbgPortSpinBox.setObjectName("passiveDbgPortSpinBox")
        self.gridlayout2.addWidget(self.passiveDbgPortSpinBox,2,1,1,1)

        self.passiveDbgPortLabel = QtGui.QLabel(self.groupBox)
        self.passiveDbgPortLabel.setEnabled(False)
        self.passiveDbgPortLabel.setObjectName("passiveDbgPortLabel")
        self.gridlayout2.addWidget(self.passiveDbgPortLabel,2,0,1,1)

        self.passiveDbgCheckBox = QtGui.QCheckBox(self.groupBox)
        self.passiveDbgCheckBox.setObjectName("passiveDbgCheckBox")
        self.gridlayout2.addWidget(self.passiveDbgCheckBox,1,0,1,3)
        self.vboxlayout.addWidget(self.groupBox)

        self.groupBox_2 = QtGui.QGroupBox(DebuggerGeneral1Page)
        self.groupBox_2.setObjectName("groupBox_2")

        self.gridlayout3 = QtGui.QGridLayout(self.groupBox_2)
        self.gridlayout3.setMargin(6)
        self.gridlayout3.setSpacing(6)
        self.gridlayout3.setObjectName("gridlayout3")

        self.execLabel = QtGui.QLabel(self.groupBox_2)
        self.execLabel.setEnabled(False)
        self.execLabel.setObjectName("execLabel")
        self.gridlayout3.addWidget(self.execLabel,2,0,1,1)

        self.execLineEdit = QtGui.QLineEdit(self.groupBox_2)
        self.execLineEdit.setEnabled(False)
        self.execLineEdit.setObjectName("execLineEdit")
        self.gridlayout3.addWidget(self.execLineEdit,2,1,1,1)

        self.hostLineEdit = QtGui.QLineEdit(self.groupBox_2)
        self.hostLineEdit.setEnabled(False)
        self.hostLineEdit.setObjectName("hostLineEdit")
        self.gridlayout3.addWidget(self.hostLineEdit,1,1,1,1)

        self.hostLabel = QtGui.QLabel(self.groupBox_2)
        self.hostLabel.setEnabled(False)
        self.hostLabel.setObjectName("hostLabel")
        self.gridlayout3.addWidget(self.hostLabel,1,0,1,1)

        self.remoteCheckBox = QtGui.QCheckBox(self.groupBox_2)
        self.remoteCheckBox.setObjectName("remoteCheckBox")
        self.gridlayout3.addWidget(self.remoteCheckBox,0,0,1,2)
        self.vboxlayout.addWidget(self.groupBox_2)
        self.execLabel.setBuddy(self.execLineEdit)
        self.hostLabel.setBuddy(self.hostLineEdit)

        self.retranslateUi(DebuggerGeneral1Page)
        QtCore.QObject.connect(self.passiveDbgCheckBox,QtCore.SIGNAL("toggled(bool)"),self.passiveDbgPortLabel.setEnabled)
        QtCore.QObject.connect(self.passiveDbgCheckBox,QtCore.SIGNAL("toggled(bool)"),self.passiveDbgPortSpinBox.setEnabled)
        QtCore.QObject.connect(self.remoteCheckBox,QtCore.SIGNAL("toggled(bool)"),self.execLineEdit.setEnabled)
        QtCore.QObject.connect(self.remoteCheckBox,QtCore.SIGNAL("toggled(bool)"),self.execLabel.setEnabled)
        QtCore.QObject.connect(self.remoteCheckBox,QtCore.SIGNAL("toggled(bool)"),self.hostLabel.setEnabled)
        QtCore.QObject.connect(self.remoteCheckBox,QtCore.SIGNAL("toggled(bool)"),self.hostLineEdit.setEnabled)
        QtCore.QObject.connect(self.selectedInterfaceButton,QtCore.SIGNAL("toggled(bool)"),self.interfacesCombo.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(DebuggerGeneral1Page)
        DebuggerGeneral1Page.setTabOrder(self.allInterfacesButton,self.selectedInterfaceButton)
        DebuggerGeneral1Page.setTabOrder(self.selectedInterfaceButton,self.interfacesCombo)
        DebuggerGeneral1Page.setTabOrder(self.interfacesCombo,self.allowedHostsList)
        DebuggerGeneral1Page.setTabOrder(self.allowedHostsList,self.addAllowedHostButton)
        DebuggerGeneral1Page.setTabOrder(self.addAllowedHostButton,self.editAllowedHostButton)
        DebuggerGeneral1Page.setTabOrder(self.editAllowedHostButton,self.deleteAllowedHostButton)
        DebuggerGeneral1Page.setTabOrder(self.deleteAllowedHostButton,self.passiveDbgCheckBox)
        DebuggerGeneral1Page.setTabOrder(self.passiveDbgCheckBox,self.passiveDbgPortSpinBox)
        DebuggerGeneral1Page.setTabOrder(self.passiveDbgPortSpinBox,self.remoteCheckBox)
        DebuggerGeneral1Page.setTabOrder(self.remoteCheckBox,self.hostLineEdit)
        DebuggerGeneral1Page.setTabOrder(self.hostLineEdit,self.execLineEdit)

    def retranslateUi(self, DebuggerGeneral1Page):
        self.headerLabel.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "<b>Configure general debugger settings (Part 1)</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setTitle(QtGui.QApplication.translate("DebuggerGeneral1Page", "Network Interface", None, QtGui.QApplication.UnicodeUTF8))
        self.interfacesCombo.setToolTip(QtGui.QApplication.translate("DebuggerGeneral1Page", "Select the network interface to listen on", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel1_2_3.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "<font color=\"#FF0000\"><b>Note:</b> These settings are activated at the next startup of the application.</font>", None, QtGui.QApplication.UnicodeUTF8))
        self.allInterfacesButton.setToolTip(QtGui.QApplication.translate("DebuggerGeneral1Page", "Select to listen on all available network interfaces", None, QtGui.QApplication.UnicodeUTF8))
        self.allInterfacesButton.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "All network interfaces", None, QtGui.QApplication.UnicodeUTF8))
        self.selectedInterfaceButton.setToolTip(QtGui.QApplication.translate("DebuggerGeneral1Page", "Select to listen on the configured interface", None, QtGui.QApplication.UnicodeUTF8))
        self.selectedInterfaceButton.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "Only selected interface", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_4.setTitle(QtGui.QApplication.translate("DebuggerGeneral1Page", "Allowed hosts", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteAllowedHostButton.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "Delete", None, QtGui.QApplication.UnicodeUTF8))
        self.editAllowedHostButton.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "Edit...", None, QtGui.QApplication.UnicodeUTF8))
        self.addAllowedHostButton.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "Add...", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("DebuggerGeneral1Page", "Passive Debugger", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel1_2_2.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "<font color=\"#FF0000\"><b>Note:</b> These settings are activated at the next startup of the application.</font>", None, QtGui.QApplication.UnicodeUTF8))
        self.passiveDbgPortSpinBox.setToolTip(QtGui.QApplication.translate("DebuggerGeneral1Page", "Enter the port the debugger should listen on", None, QtGui.QApplication.UnicodeUTF8))
        self.passiveDbgPortSpinBox.setWhatsThis(QtGui.QApplication.translate("DebuggerGeneral1Page", "<b>Debug Server Port</b>\n"
        "<p>Enter the port the debugger should listen on.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.passiveDbgPortLabel.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "Debug Server Port:", None, QtGui.QApplication.UnicodeUTF8))
        self.passiveDbgCheckBox.setToolTip(QtGui.QApplication.translate("DebuggerGeneral1Page", "Enables the passive debug mode", None, QtGui.QApplication.UnicodeUTF8))
        self.passiveDbgCheckBox.setWhatsThis(QtGui.QApplication.translate("DebuggerGeneral1Page", "<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>", None, QtGui.QApplication.UnicodeUTF8))
        self.passiveDbgCheckBox.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "Passive Debugger Enabled", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("DebuggerGeneral1Page", "Remote Debugger", None, QtGui.QApplication.UnicodeUTF8))
        self.execLabel.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "Remote Execution:", None, QtGui.QApplication.UnicodeUTF8))
        self.execLineEdit.setToolTip(QtGui.QApplication.translate("DebuggerGeneral1Page", "Enter the remote execution command.", None, QtGui.QApplication.UnicodeUTF8))
        self.execLineEdit.setWhatsThis(QtGui.QApplication.translate("DebuggerGeneral1Page", "<b>Remote Execution</b>\n"
        "<p>Enter the remote execution command (e.g. ssh). This command is used to log into the remote host and execute the remote debugger.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.hostLineEdit.setToolTip(QtGui.QApplication.translate("DebuggerGeneral1Page", "Enter the hostname of the remote machine.", None, QtGui.QApplication.UnicodeUTF8))
        self.hostLineEdit.setWhatsThis(QtGui.QApplication.translate("DebuggerGeneral1Page", "<b>Remote Host</b>\n"
        "<p>Enter the hostname of the remote machine.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.hostLabel.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "Remote Host:", None, QtGui.QApplication.UnicodeUTF8))
        self.remoteCheckBox.setToolTip(QtGui.QApplication.translate("DebuggerGeneral1Page", "Enable remote debugging", None, QtGui.QApplication.UnicodeUTF8))
        self.remoteCheckBox.setWhatsThis(QtGui.QApplication.translate("DebuggerGeneral1Page", "This enables the remote debugger. Please enter the hostname of the remote machine and the command for the remote execution (e.g. ssh) below.", None, QtGui.QApplication.UnicodeUTF8))
        self.remoteCheckBox.setText(QtGui.QApplication.translate("DebuggerGeneral1Page", "Remote Debugging Enabled", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    DebuggerGeneral1Page = QtGui.QWidget()
    ui = Ui_DebuggerGeneral1Page()
    ui.setupUi(DebuggerGeneral1Page)
    DebuggerGeneral1Page.show()
    sys.exit(app.exec_())
