Tizen 2.1 base
[platform/upstream/hplip.git] / ui / faxsettingsform_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'faxsettingsform_base.ui'
4 #
5 # Created: Mon Dec 12 16:15:55 2005
6 #      by: The PyQt User Interface Compiler (pyuic) 3.14.1
7 #
8 # WARNING! All changes made in this file will be lost!
9
10
11 from qt import *
12
13
14 class FaxSettingsForm_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("FaxSettingsForm_base")
20
21
22         FaxSettingsForm_baseLayout = QGridLayout(self,1,1,11,6,"FaxSettingsForm_baseLayout")
23
24         self.tabWidget2 = QTabWidget(self,"tabWidget2")
25
26         self.tab = QWidget(self.tabWidget2,"tab")
27         tabLayout = QGridLayout(self.tab,1,1,11,6,"tabLayout")
28
29         self.groupBox1 = QGroupBox(self.tab,"groupBox1")
30         self.groupBox1.setColumnLayout(0,Qt.Vertical)
31         self.groupBox1.layout().setSpacing(6)
32         self.groupBox1.layout().setMargin(11)
33         groupBox1Layout = QGridLayout(self.groupBox1.layout())
34         groupBox1Layout.setAlignment(Qt.AlignTop)
35
36         self.textLabel2 = QLabel(self.groupBox1,"textLabel2")
37
38         groupBox1Layout.addWidget(self.textLabel2,2,0)
39
40         self.faxEdit = QLineEdit(self.groupBox1,"faxEdit")
41
42         groupBox1Layout.addWidget(self.faxEdit,2,1)
43
44         self.textLabel1 = QLabel(self.groupBox1,"textLabel1")
45
46         groupBox1Layout.addWidget(self.textLabel1,1,0)
47
48         self.nameEdit = QLineEdit(self.groupBox1,"nameEdit")
49
50         groupBox1Layout.addWidget(self.nameEdit,1,1)
51
52         self.textLabel3 = QLabel(self.groupBox1,"textLabel3")
53         self.textLabel3.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
54
55         groupBox1Layout.addMultiCellWidget(self.textLabel3,0,0,0,1)
56
57         tabLayout.addWidget(self.groupBox1,0,0)
58         spacer10 = QSpacerItem(20,60,QSizePolicy.Minimum,QSizePolicy.Expanding)
59         tabLayout.addItem(spacer10,2,0)
60
61         self.groupBox4 = QGroupBox(self.tab,"groupBox4")
62         self.groupBox4.setColumnLayout(0,Qt.Vertical)
63         self.groupBox4.layout().setSpacing(6)
64         self.groupBox4.layout().setMargin(11)
65         groupBox4Layout = QGridLayout(self.groupBox4.layout())
66         groupBox4Layout.setAlignment(Qt.AlignTop)
67
68         self.emailEdit = QLineEdit(self.groupBox4,"emailEdit")
69
70         groupBox4Layout.addWidget(self.emailEdit,2,1)
71
72         self.textLabel1_2 = QLabel(self.groupBox4,"textLabel1_2")
73
74         groupBox4Layout.addWidget(self.textLabel1_2,1,0)
75
76         self.voiceEdit = QLineEdit(self.groupBox4,"voiceEdit")
77
78         groupBox4Layout.addWidget(self.voiceEdit,1,1)
79
80         self.textLabel2_2 = QLabel(self.groupBox4,"textLabel2_2")
81
82         groupBox4Layout.addWidget(self.textLabel2_2,2,0)
83
84         self.textLabel3_2 = QLabel(self.groupBox4,"textLabel3_2")
85         self.textLabel3_2.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
86
87         groupBox4Layout.addMultiCellWidget(self.textLabel3_2,0,0,0,1)
88
89         tabLayout.addWidget(self.groupBox4,1,0)
90         self.tabWidget2.insertTab(self.tab,QString.fromLatin1(""))
91
92         FaxSettingsForm_baseLayout.addMultiCellWidget(self.tabWidget2,2,2,0,3)
93
94         self.textLabel3_2_2 = QLabel(self,"textLabel3_2_2")
95
96         FaxSettingsForm_baseLayout.addMultiCellWidget(self.textLabel3_2_2,0,0,0,3)
97
98         self.line1_2_2 = QFrame(self,"line1_2_2")
99         self.line1_2_2.setFrameShape(QFrame.HLine)
100         self.line1_2_2.setFrameShadow(QFrame.Sunken)
101         self.line1_2_2.setFrameShape(QFrame.HLine)
102
103         FaxSettingsForm_baseLayout.addMultiCellWidget(self.line1_2_2,1,1,0,3)
104
105         self.pushButton31 = QPushButton(self,"pushButton31")
106
107         FaxSettingsForm_baseLayout.addWidget(self.pushButton31,3,2)
108
109         self.pushButtonOK = QPushButton(self,"pushButtonOK")
110         self.pushButtonOK.setEnabled(0)
111
112         FaxSettingsForm_baseLayout.addWidget(self.pushButtonOK,3,3)
113         spacer40 = QSpacerItem(386,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
114         FaxSettingsForm_baseLayout.addItem(spacer40,3,1)
115
116         self.languageChange()
117
118         self.resize(QSize(600,388).expandedTo(self.minimumSizeHint()))
119         self.clearWState(Qt.WState_Polished)
120
121         self.connect(self.pushButton31,SIGNAL("clicked()"),self.reject)
122         self.connect(self.pushButtonOK,SIGNAL("clicked()"),self.accept)
123         self.connect(self.faxEdit,SIGNAL("textChanged(const QString&)"),self.faxEdit_textChanged)
124         self.connect(self.nameEdit,SIGNAL("textChanged(const QString&)"),self.nameEdit_textChanged)
125
126         self.setTabOrder(self.nameEdit,self.faxEdit)
127         self.setTabOrder(self.faxEdit,self.voiceEdit)
128         self.setTabOrder(self.voiceEdit,self.emailEdit)
129         self.setTabOrder(self.emailEdit,self.pushButton31)
130         self.setTabOrder(self.pushButton31,self.pushButtonOK)
131         self.setTabOrder(self.pushButtonOK,self.tabWidget2)
132
133
134     def languageChange(self):
135         self.setCaption(self.__tr("HP Device Manager - Fax Settings"))
136         self.groupBox1.setTitle(self.__tr("Fax Header Information"))
137         self.textLabel2.setText(self.__tr("Device Fax Number:"))
138         self.textLabel1.setText(self.__tr("Name and/or Company:"))
139         self.textLabel3.setText(self.__tr("<i>This information will appear at the top of each fax that you send.</i>"))
140         self.groupBox4.setTitle(self.__tr("Coverpage Information"))
141         self.textLabel1_2.setText(self.__tr("Voice phone number:"))
142         self.textLabel2_2.setText(self.__tr("Email address:"))
143         self.textLabel3_2.setText(self.__tr("<i>This information will appear on any coverpage that you send.</i>"))
144         self.tabWidget2.changeTab(self.tab,self.__tr("Information"))
145         self.textLabel3_2_2.setText(self.__tr("<b>Configure device settings for sending faxes.</b>"))
146         self.pushButton31.setText(self.__tr("Cancel"))
147         self.pushButtonOK.setText(self.__tr("OK"))
148
149
150     def faxEdit_textChanged(self,a0):
151         print "FaxSettingsForm_base.faxEdit_textChanged(const QString&): Not implemented yet"
152
153     def nameEdit_textChanged(self,a0):
154         print "FaxSettingsForm_base.nameEdit_textChanged(const QString&): Not implemented yet"
155
156     def __tr(self,s,c = None):
157         return qApp.translate("FaxSettingsForm_base",s,c)