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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/Debugger/EditBreakpointForm.ui'
#
# Created: Die Aug 19 19:21:26 2003
#      by: The PyQt User Interface Compiler (pyuic) 3.7
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class EditBreakpointForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("EditBreakpointForm")


        EditBreakpointFormLayout = QGridLayout(self,1,1,6,6,"EditBreakpointFormLayout")

        layout1 = QHBoxLayout(None,0,6,"layout1")
        spacer = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout1.addItem(spacer)

        self.okButton = QPushButton(self,"okButton")
        self.okButton.setDefault(1)
        layout1.addWidget(self.okButton)

        self.cancelButton = QPushButton(self,"cancelButton")
        layout1.addWidget(self.cancelButton)
        spacer_2 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout1.addItem(spacer_2)

        EditBreakpointFormLayout.addMultiCellLayout(layout1,4,4,0,2)

        self.textLabel1 = QLabel(self,"textLabel1")

        EditBreakpointFormLayout.addWidget(self.textLabel1,0,0)

        self.conditionCombo = QComboBox(0,self,"conditionCombo")
        self.conditionCombo.setSizePolicy(QSizePolicy(7,0,0,0,self.conditionCombo.sizePolicy().hasHeightForWidth()))
        self.conditionCombo.setEditable(1)
        self.conditionCombo.setAutoCompletion(1)

        EditBreakpointFormLayout.addMultiCellWidget(self.conditionCombo,0,0,1,2)

        self.textLabel2 = QLabel(self,"textLabel2")

        EditBreakpointFormLayout.addWidget(self.textLabel2,1,0)
        spacer_3 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        EditBreakpointFormLayout.addItem(spacer_3,1,2)

        self.ignoreSpinBox = QSpinBox(self,"ignoreSpinBox")
        self.ignoreSpinBox.setMaxValue(9999)

        EditBreakpointFormLayout.addWidget(self.ignoreSpinBox,1,1)

        self.temporaryCheckBox = QCheckBox(self,"temporaryCheckBox")

        EditBreakpointFormLayout.addMultiCellWidget(self.temporaryCheckBox,2,2,0,1)

        self.enabledCheckBox = QCheckBox(self,"enabledCheckBox")

        EditBreakpointFormLayout.addMultiCellWidget(self.enabledCheckBox,3,3,0,1)

        self.languageChange()

        self.resize(QSize(402,160).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.okButton,SIGNAL("clicked()"),self,SLOT("accept()"))
        self.connect(self.cancelButton,SIGNAL("clicked()"),self,SLOT("reject()"))


    def languageChange(self):
        self.setCaption(self.__tr("Edit Breakpoint"))
        self.okButton.setText(self.__tr("&OK"))
        self.cancelButton.setText(self.__tr("&Cancel"))
        self.textLabel1.setText(self.__tr("Condition:"))
        QToolTip.add(self.conditionCombo,self.__tr("Enter or select a condition for the breakpoint"))
        self.textLabel2.setText(self.__tr("Ignore Count:"))
        QToolTip.add(self.ignoreSpinBox,self.__tr("Enter an ignore count for the breakpoint"))
        self.temporaryCheckBox.setText(self.__tr("Temporary Breakpoint"))
        QToolTip.add(self.temporaryCheckBox,self.__tr("Select whether this is a temporary breakpoint"))
        self.enabledCheckBox.setText(self.__tr("Enabled"))
        QToolTip.add(self.enabledCheckBox,self.__tr("Select, whether the breakpoint is enabled"))


    def __tr(self,s,c = None):
        return qApp.translate("EditBreakpointForm",s,c)

if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = EditBreakpointForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()
