1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'allowabletypesdlg_base.ui'
5 # Created: Wed Mar 14 12:57:36 2007
6 # by: The PyQt User Interface Compiler (pyuic) 3.16
8 # WARNING! All changes made in this file will be lost!
14 class AllowableTypesDlg_base(QDialog):
15 def __init__(self,parent = None,name = None,modal = 0,fl = 0):
16 QDialog.__init__(self,parent,name,modal,fl)
19 self.setName("AllowableTypesDlg_base")
22 AllowableTypesDlg_baseLayout = QGridLayout(self,1,1,11,6,"AllowableTypesDlg_baseLayout")
24 self.line1_2 = QFrame(self,"line1_2")
25 self.line1_2.setFrameShape(QFrame.HLine)
26 self.line1_2.setFrameShadow(QFrame.Sunken)
27 self.line1_2.setFrameShape(QFrame.HLine)
29 AllowableTypesDlg_baseLayout.addMultiCellWidget(self.line1_2,1,1,0,1)
31 self.textLabel3_2 = QLabel(self,"textLabel3_2")
32 self.textLabel3_2.setSizePolicy(QSizePolicy(QSizePolicy.Preferred,QSizePolicy.Preferred,0,0,self.textLabel3_2.sizePolicy().hasHeightForWidth()))
34 AllowableTypesDlg_baseLayout.addMultiCellWidget(self.textLabel3_2,0,0,0,1)
36 self.pushButton10 = QPushButton(self,"pushButton10")
38 AllowableTypesDlg_baseLayout.addWidget(self.pushButton10,4,1)
39 spacer7 = QSpacerItem(301,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
40 AllowableTypesDlg_baseLayout.addItem(spacer7,4,0)
42 self.allowableTypesListView = QListView(self,"allowableTypesListView")
43 self.allowableTypesListView.addColumn(self.__tr("MIME Type"))
44 self.allowableTypesListView.addColumn(self.__tr("Description"))
45 self.allowableTypesListView.addColumn(self.__tr("Usual File Extension(s)"))
46 self.allowableTypesListView.setSelectionMode(QListView.NoSelection)
47 self.allowableTypesListView.setAllColumnsShowFocus(1)
49 AllowableTypesDlg_baseLayout.addMultiCellWidget(self.allowableTypesListView,2,2,0,1)
51 self.textLabel1 = QLabel(self,"textLabel1")
53 AllowableTypesDlg_baseLayout.addMultiCellWidget(self.textLabel1,3,3,0,1)
57 self.resize(QSize(495,576).expandedTo(self.minimumSizeHint()))
58 self.clearWState(Qt.WState_Polished)
60 self.connect(self.pushButton10,SIGNAL("clicked()"),self.accept)
63 def languageChange(self):
64 self.setCaption(self.__tr("HP Device Manager - Allowable Types"))
65 self.textLabel3_2.setText(self.__tr("<b>File/document types that can be added to the file list.</b>"))
66 self.pushButton10.setText(self.__tr("OK"))
67 self.allowableTypesListView.header().setLabel(0,self.__tr("MIME Type"))
68 self.allowableTypesListView.header().setLabel(1,self.__tr("Description"))
69 self.allowableTypesListView.header().setLabel(2,self.__tr("Usual File Extension(s)"))
70 self.textLabel1.setText(self.__tr("<i>Note: To print or fax file/document types that do not appear on this list, print the document from the application that created it through the appropriate CUPS printer.</i>"))
73 def __tr(self,s,c = None):
74 return qApp.translate("AllowableTypesDlg_base",s,c)