~ubuntu-branches/ubuntu/karmic/eric/karmic

« back to all changes in this revision

Viewing changes to eric/Debugger/ExceptionsFilterForm.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-01-28 18:02:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080128180225-6nrox6yrworh2c4v
Tags: 4.0.4-1ubuntu1
* Add python-qt3 to build-depends becuase that's where Ubuntu puts 
  pyqtconfig
* Change maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
 
3
 
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/Debugger/ExceptionsFilterForm.ui'
4
 
#
5
 
# Created: So Nov 27 16:12:55 2005
6
 
#      by: The PyQt User Interface Compiler (pyuic) 3.15
7
 
#
8
 
# WARNING! All changes made in this file will be lost!
9
 
 
10
 
 
11
 
import sys
12
 
from qt import *
13
 
 
14
 
 
15
 
class ExceptionsFilterForm(QDialog):
16
 
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
17
 
        QDialog.__init__(self,parent,name,modal,fl)
18
 
 
19
 
        if not name:
20
 
            self.setName("ExceptionsFilterForm")
21
 
 
22
 
        self.setSizeGripEnabled(1)
23
 
 
24
 
        ExceptionsFilterFormLayout = QVBoxLayout(self,6,6,"ExceptionsFilterFormLayout")
25
 
 
26
 
        Layout7 = QGridLayout(None,1,1,0,6,"Layout7")
27
 
 
28
 
        self.exceptionListBox = QListBox(self,"exceptionListBox")
29
 
 
30
 
        Layout7.addMultiCellWidget(self.exceptionListBox,0,0,0,2)
31
 
 
32
 
        self.exceptionEdit = QLineEdit(self,"exceptionEdit")
33
 
 
34
 
        Layout7.addWidget(self.exceptionEdit,1,2)
35
 
 
36
 
        self.addButton = QPushButton(self,"addButton")
37
 
        self.addButton.setEnabled(0)
38
 
 
39
 
        Layout7.addWidget(self.addButton,1,1)
40
 
 
41
 
        self.deleteButton = QPushButton(self,"deleteButton")
42
 
 
43
 
        Layout7.addWidget(self.deleteButton,1,0)
44
 
        ExceptionsFilterFormLayout.addLayout(Layout7)
45
 
 
46
 
        Layout1 = QHBoxLayout(None,0,6,"Layout1")
47
 
        Spacer1 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
48
 
        Layout1.addItem(Spacer1)
49
 
 
50
 
        self.okButton = QPushButton(self,"okButton")
51
 
        self.okButton.setDefault(1)
52
 
        Layout1.addWidget(self.okButton)
53
 
 
54
 
        self.cancelButton = QPushButton(self,"cancelButton")
55
 
        Layout1.addWidget(self.cancelButton)
56
 
        Spacer2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
57
 
        Layout1.addItem(Spacer2)
58
 
        ExceptionsFilterFormLayout.addLayout(Layout1)
59
 
 
60
 
        self.languageChange()
61
 
 
62
 
        self.resize(QSize(464,306).expandedTo(self.minimumSizeHint()))
63
 
        self.clearWState(Qt.WState_Polished)
64
 
 
65
 
        self.connect(self.deleteButton,SIGNAL("clicked()"),self.handleDelete)
66
 
        self.connect(self.addButton,SIGNAL("clicked()"),self.handleAdd)
67
 
        self.connect(self.okButton,SIGNAL("clicked()"),self.accept)
68
 
        self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)
69
 
        self.connect(self.exceptionEdit,SIGNAL("textChanged(const QString&)"),self.handleTextChanged)
70
 
 
71
 
 
72
 
    def languageChange(self):
73
 
        self.setCaption(self.__tr("Exception Filter"))
74
 
        QWhatsThis.add(self,self.__tr("<b>Exception Filter</b>\n"
75
 
"<p>This dialog is used to enter the exception types, that shall be highlighted during a debugging session. If this list is empty, all exception types will be highlighted. If the exception reporting flag in the \"Start Debugging\" dialog is unchecked, no exception will be reported at all.</p>\n"
76
 
"<p>Please note, that unhandled exceptions are always highlighted independent of these settings.</p>"))
77
 
        QToolTip.add(self.exceptionListBox,self.__tr("List of exceptions that shall be highlighted"))
78
 
        QToolTip.add(self.exceptionEdit,self.__tr("Enter an exception type that shall be highlighted"))
79
 
        self.addButton.setText(self.__tr("Add"))
80
 
        QToolTip.add(self.addButton,self.__tr("Press to add the entered exception to the list"))
81
 
        self.deleteButton.setText(self.__tr("Delete"))
82
 
        QToolTip.add(self.deleteButton,self.__tr("Press to delete the selcted exception from the list"))
83
 
        self.okButton.setText(self.__tr("&OK"))
84
 
        self.cancelButton.setText(self.__tr("&Cancel"))
85
 
 
86
 
 
87
 
    def handleAdd(self):
88
 
        print "ExceptionsFilterForm.handleAdd(): Not implemented yet"
89
 
 
90
 
    def handleDelete(self):
91
 
        print "ExceptionsFilterForm.handleDelete(): Not implemented yet"
92
 
 
93
 
    def handleTextChanged(self,a0):
94
 
        print "ExceptionsFilterForm.handleTextChanged(const QString&): Not implemented yet"
95
 
 
96
 
    def __tr(self,s,c = None):
97
 
        return qApp.translate("ExceptionsFilterForm",s,c)
98
 
 
99
 
if __name__ == "__main__":
100
 
    a = QApplication(sys.argv)
101
 
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
102
 
    w = ExceptionsFilterForm()
103
 
    a.setMainWidget(w)
104
 
    w.show()
105
 
    a.exec_loop()