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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_6/eric3/Debugger/VariablesFilterForm.ui'
#
# Created: Do Dez 30 14:12:36 2004
#      by: The PyQt User Interface Compiler (pyuic) snapshot-20041229
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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

        self.setSizeGripEnabled(1)


        LayoutWidget = QWidget(self,"topLayout")
        LayoutWidget.setGeometry(QRect(6,6,376,291))
        topLayout = QGridLayout(LayoutWidget,1,1,0,6,"topLayout")

        self.localsListbox = QListBox(LayoutWidget,"localsListbox")
        self.localsListbox.setSelectionMode(QListBox.Extended)

        topLayout.addWidget(self.localsListbox,1,0)

        self.localsLabel = QLabel(LayoutWidget,"localsLabel")

        topLayout.addWidget(self.localsLabel,0,0)

        self.globalsLabel = QLabel(LayoutWidget,"globalsLabel")

        topLayout.addWidget(self.globalsLabel,0,1)

        self.globalsListbox = QListBox(LayoutWidget,"globalsListbox")
        self.globalsListbox.setSelectionMode(QListBox.Extended)

        topLayout.addWidget(self.globalsListbox,1,1)

        LayoutWidget_2 = QWidget(self,"Layout3")
        LayoutWidget_2.setGeometry(QRect(7,304,411,29))
        Layout3 = QHBoxLayout(LayoutWidget_2,0,6,"Layout3")
        lSpacer = QSpacerItem(73,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout3.addItem(lSpacer)

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

        self.defaultButton = QPushButton(LayoutWidget_2,"defaultButton")
        Layout3.addWidget(self.defaultButton)

        self.cancelButton = QPushButton(LayoutWidget_2,"cancelButton")
        Layout3.addWidget(self.cancelButton)
        rSpacer = QSpacerItem(73,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout3.addItem(rSpacer)

        self.languageChange()

        self.resize(QSize(386,338).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

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

        self.localsLabel.setBuddy(self.localsListbox)
        self.globalsLabel.setBuddy(self.globalsListbox)


    def languageChange(self):
        self.setCaption(self.__tr("Variables Type Filter"))
        QWhatsThis.add(self,self.__tr("<h2>Filter Dialog</h2>\n"
"<p> This dialog gives the user the possibility to select what kind of variables should <b>not</b> be shown during a debugging session.</p>"))
        QToolTip.add(self.localsListbox,self.__tr("Locals Filter List"))
        QWhatsThis.add(self.localsListbox,self.__tr("<h2>Locals Filter List</h2>\n"
"<p>Select the variable types you want to be filtered out of the locals variables list.</p<"))
        self.localsLabel.setText(self.__tr("&Locals Filter"))
        self.globalsLabel.setText(self.__tr("&Globals Filter"))
        QToolTip.add(self.globalsListbox,self.__tr("Globals Filter List"))
        QWhatsThis.add(self.globalsListbox,self.__tr("<h2>Globals Filter List</h2>\n"
"<p>Select the variable types you want to be filtered out of the globals variables list.</p<"))
        self.okButton.setText(self.__tr("&OK"))
        self.defaultButton.setText(self.__tr("Save Default"))
        self.cancelButton.setText(self.__tr("&Cancel"))


    def handleDefault(self):
        print "VariablesFilterForm.handleDefault(): Not implemented yet"

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

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