Tizen 2.1 base
[platform/upstream/hplip.git] / ui / faxaddrbookeditform_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'ui/faxaddrbookeditform_base.ui'
4 #
5 # Created: Wed Jul 18 16:05:44 2007
6 #      by: The PyQt User Interface Compiler (pyuic) 3.17
7 #
8 # WARNING! All changes made in this file will be lost!
9
10
11 from qt import *
12
13
14 class FaxAddrBookEditForm_base(QDialog):
15     def __init__(self,parent = None,name = None,modal = 0,fl = 0):
16         QDialog.__init__(self,parent,name,modal,fl)
17
18         if not name:
19             self.setName("FaxAddrBookEditForm_base")
20
21
22         FaxAddrBookEditForm_baseLayout = QGridLayout(self,1,1,11,6,"FaxAddrBookEditForm_baseLayout")
23
24         self.pushButton34 = QPushButton(self,"pushButton34")
25
26         FaxAddrBookEditForm_baseLayout.addWidget(self.pushButton34,8,1)
27
28         self.line5 = QFrame(self,"line5")
29         self.line5.setFrameShape(QFrame.HLine)
30         self.line5.setFrameShadow(QFrame.Sunken)
31         self.line5.setFrameShape(QFrame.HLine)
32
33         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.line5,6,6,0,2)
34
35         self.OKButton = QPushButton(self,"OKButton")
36         self.OKButton.setEnabled(0)
37
38         FaxAddrBookEditForm_baseLayout.addWidget(self.OKButton,8,2)
39         spacer31 = QSpacerItem(401,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
40         FaxAddrBookEditForm_baseLayout.addItem(spacer31,8,0)
41
42         self.line5_2_2 = QFrame(self,"line5_2_2")
43         self.line5_2_2.setFrameShape(QFrame.HLine)
44         self.line5_2_2.setFrameShadow(QFrame.Sunken)
45         self.line5_2_2.setFrameShape(QFrame.HLine)
46
47         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.line5_2_2,9,9,0,2)
48
49         self.line5_2 = QFrame(self,"line5_2")
50         self.line5_2.setFrameShape(QFrame.HLine)
51         self.line5_2.setFrameShadow(QFrame.Sunken)
52         self.line5_2.setFrameShape(QFrame.HLine)
53
54         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.line5_2,4,4,0,2)
55
56         layout1 = QHBoxLayout(None,0,6,"layout1")
57
58         self.textLabel7 = QLabel(self,"textLabel7")
59         layout1.addWidget(self.textLabel7)
60
61         self.faxEdit = QLineEdit(self,"faxEdit")
62         layout1.addWidget(self.faxEdit)
63
64         FaxAddrBookEditForm_baseLayout.addMultiCellLayout(layout1,5,5,0,2)
65
66         layout2 = QHBoxLayout(None,0,6,"layout2")
67
68         self.textLabel3 = QLabel(self,"textLabel3")
69         layout2.addWidget(self.textLabel3)
70
71         self.nicknameEdit = QLineEdit(self,"nicknameEdit")
72         layout2.addWidget(self.nicknameEdit)
73
74         FaxAddrBookEditForm_baseLayout.addMultiCellLayout(layout2,0,0,0,2)
75
76         layout6 = QHBoxLayout(None,0,6,"layout6")
77
78         self.textLabel4 = QLabel(self,"textLabel4")
79         layout6.addWidget(self.textLabel4)
80
81         self.groupListView = QListView(self,"groupListView")
82         self.groupListView.addColumn(self.__tr("Group Name"))
83         self.groupListView.setSelectionMode(QListView.NoSelection)
84         layout6.addWidget(self.groupListView)
85
86         FaxAddrBookEditForm_baseLayout.addMultiCellLayout(layout6,3,3,0,2)
87
88         layout7 = QVBoxLayout(None,0,6,"layout7")
89
90         self.textLabel6 = QLabel(self,"textLabel6")
91         layout7.addWidget(self.textLabel6)
92
93         self.notesEdit = QTextEdit(self,"notesEdit")
94         layout7.addWidget(self.notesEdit)
95
96         FaxAddrBookEditForm_baseLayout.addMultiCellLayout(layout7,7,7,0,2)
97
98         self.textLabel12 = QLabel(self,"textLabel12")
99
100         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.textLabel12,10,10,0,2)
101
102         self.line12 = QFrame(self,"line12")
103         self.line12.setFrameShape(QFrame.HLine)
104         self.line12.setFrameShadow(QFrame.Sunken)
105         self.line12.setFrameShape(QFrame.HLine)
106
107         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.line12,1,1,0,2)
108
109         layout11 = QGridLayout(None,1,1,0,6,"layout11")
110
111         layout9 = QVBoxLayout(None,0,6,"layout9")
112
113         self.textLabel5 = QLabel(self,"textLabel5")
114         layout9.addWidget(self.textLabel5)
115
116         self.textLabel1 = QLabel(self,"textLabel1")
117         layout9.addWidget(self.textLabel1)
118
119         self.textLabel2 = QLabel(self,"textLabel2")
120         layout9.addWidget(self.textLabel2)
121
122         layout11.addLayout(layout9,0,0)
123
124         layout10 = QVBoxLayout(None,0,6,"layout10")
125
126         self.titleEdit = QLineEdit(self,"titleEdit")
127         layout10.addWidget(self.titleEdit)
128
129         self.firstnameEdit = QLineEdit(self,"firstnameEdit")
130         layout10.addWidget(self.firstnameEdit)
131
132         self.lastnameEdit = QLineEdit(self,"lastnameEdit")
133         layout10.addWidget(self.lastnameEdit)
134
135         layout11.addLayout(layout10,0,1)
136
137         FaxAddrBookEditForm_baseLayout.addMultiCellLayout(layout11,2,2,0,2)
138
139         self.languageChange()
140
141         self.resize(QSize(532,555).expandedTo(self.minimumSizeHint()))
142         self.clearWState(Qt.WState_Polished)
143
144         self.connect(self.pushButton34,SIGNAL("clicked()"),self.reject)
145         self.connect(self.OKButton,SIGNAL("clicked()"),self.accept)
146         self.connect(self.firstnameEdit,SIGNAL("textChanged(const QString&)"),self.firstnameEdit_textChanged)
147         self.connect(self.lastnameEdit,SIGNAL("textChanged(const QString&)"),self.lastnameEdit_textChanged)
148         self.connect(self.nicknameEdit,SIGNAL("textChanged(const QString&)"),self.nicknameEdit_textChanged)
149         self.connect(self.faxEdit,SIGNAL("textChanged(const QString&)"),self.faxEdit_textChanged)
150
151         self.setTabOrder(self.nicknameEdit,self.titleEdit)
152         self.setTabOrder(self.titleEdit,self.firstnameEdit)
153         self.setTabOrder(self.firstnameEdit,self.lastnameEdit)
154         self.setTabOrder(self.lastnameEdit,self.faxEdit)
155         self.setTabOrder(self.faxEdit,self.notesEdit)
156         self.setTabOrder(self.notesEdit,self.pushButton34)
157         self.setTabOrder(self.pushButton34,self.OKButton)
158
159
160     def languageChange(self):
161         self.setCaption(self.__tr("HP Device Manager - Fax Address Book Entry"))
162         self.pushButton34.setText(self.__tr("Cancel"))
163         self.OKButton.setText(self.__tr("OK"))
164         self.textLabel7.setText(self.__tr("<b>Fax Number:</b>"))
165         self.textLabel3.setText(self.__tr("<b>Name/Nickname:<b>"))
166         self.textLabel4.setText(self.__tr("Member of Group(s):"))
167         self.groupListView.header().setLabel(0,self.__tr("Group Name"))
168         self.textLabel6.setText(self.__tr("Notes/Other Information:"))
169         self.textLabel12.setText(self.__tr("Note: Items in <b>bold</b> are required fields."))
170         self.textLabel5.setText(self.__tr("Title:"))
171         self.textLabel1.setText(self.__tr("First Name:"))
172         self.textLabel2.setText(self.__tr("Last Name:"))
173
174
175     def firstnameEdit_textChanged(self,a0):
176         print "FaxAddrBookEditForm_base.firstnameEdit_textChanged(const QString&): Not implemented yet"
177
178     def lastnameEdit_textChanged(self,a0):
179         print "FaxAddrBookEditForm_base.lastnameEdit_textChanged(const QString&): Not implemented yet"
180
181     def checkBox3_toggled(self,a0):
182         print "FaxAddrBookEditForm_base.checkBox3_toggled(bool): Not implemented yet"
183
184     def isGroupCheckBox_toggled(self,a0):
185         print "FaxAddrBookEditForm_base.isGroupCheckBox_toggled(bool): Not implemented yet"
186
187     def groupsButton2_clicked(self):
188         print "FaxAddrBookEditForm_base.groupsButton2_clicked(): Not implemented yet"
189
190     def nicknameEdit_textChanged(self,a0):
191         print "FaxAddrBookEditForm_base.nicknameEdit_textChanged(const QString&): Not implemented yet"
192
193     def faxEdit_textChanged(self,a0):
194         print "FaxAddrBookEditForm_base.faxEdit_textChanged(const QString&): Not implemented yet"
195
196     def __tr(self,s,c = None):
197         return qApp.translate("FaxAddrBookEditForm_base",s,c)