Tizen 2.1 base
[platform/upstream/hplip.git] / ui / imagepropertiesdlg_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file '/home/dwelch/linux-imaging-and-printing/src/ui/imagepropertiesdlg_base.ui'
4 #
5 # Created: Fri Apr 1 14:51:29 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 import sys
12 from qt import *
13
14
15 class ImagePropertiesDlg_base(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("ImagePropertiesDlg_base")
21
22
23         ImagePropertiesDlg_baseLayout = QGridLayout(self,1,1,11,6,"ImagePropertiesDlg_baseLayout")
24
25         self.textLabel6 = QLabel(self,"textLabel6")
26
27         ImagePropertiesDlg_baseLayout.addWidget(self.textLabel6,3,0)
28
29         self.textLabel8 = QLabel(self,"textLabel8")
30
31         ImagePropertiesDlg_baseLayout.addWidget(self.textLabel8,4,0)
32
33         self.textLabel10 = QLabel(self,"textLabel10")
34
35         ImagePropertiesDlg_baseLayout.addWidget(self.textLabel10,2,0)
36
37         self.EXifDataListView = QListView(self,"EXifDataListView")
38         self.EXifDataListView.addColumn(self.__tr("EXIF Labels"))
39         self.EXifDataListView.header().setResizeEnabled(0,self.EXifDataListView.header().count() - 1)
40         self.EXifDataListView.addColumn(self.__tr("Contents "))
41         self.EXifDataListView.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding,0,0,self.EXifDataListView.sizePolicy().hasHeightForWidth()))
42         self.EXifDataListView.setMinimumSize(QSize(400,100))
43         self.EXifDataListView.setFrameShadow(QListView.Sunken)
44         self.EXifDataListView.setResizeMode(QListView.AllColumns)
45
46         ImagePropertiesDlg_baseLayout.addMultiCellWidget(self.EXifDataListView,5,5,0,2)
47
48         self.LocationText = QLabel(self,"LocationText")
49
50         ImagePropertiesDlg_baseLayout.addMultiCellWidget(self.LocationText,2,2,1,2)
51
52         self.MimeTypeText = QLabel(self,"MimeTypeText")
53
54         ImagePropertiesDlg_baseLayout.addMultiCellWidget(self.MimeTypeText,3,3,1,2)
55
56         self.SizeText = QLabel(self,"SizeText")
57
58         ImagePropertiesDlg_baseLayout.addMultiCellWidget(self.SizeText,4,4,1,2)
59
60         self.FilenameText = QLabel(self,"FilenameText")
61
62         ImagePropertiesDlg_baseLayout.addMultiCellWidget(self.FilenameText,0,0,0,2)
63
64         self.line1 = QFrame(self,"line1")
65         self.line1.setFrameShape(QFrame.HLine)
66         self.line1.setFrameShadow(QFrame.Sunken)
67         self.line1.setFrameShape(QFrame.HLine)
68
69         ImagePropertiesDlg_baseLayout.addMultiCellWidget(self.line1,1,1,0,2)
70         spacer3 = QSpacerItem(300,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
71         ImagePropertiesDlg_baseLayout.addMultiCell(spacer3,6,6,0,1)
72
73         self.pushButton6 = QPushButton(self,"pushButton6")
74
75         ImagePropertiesDlg_baseLayout.addWidget(self.pushButton6,6,2)
76
77         self.languageChange()
78
79         self.resize(QSize(431,388).expandedTo(self.minimumSizeHint()))
80         self.clearWState(Qt.WState_Polished)
81
82         self.connect(self.pushButton6,SIGNAL("clicked()"),self.close)
83
84
85     def languageChange(self):
86         self.setCaption(self.__tr("Properties for"))
87         self.textLabel6.setText(self.__tr("MIME Type:"))
88         self.textLabel8.setText(self.__tr("Size:"))
89         self.textLabel10.setText(self.__tr("Location:"))
90         self.EXifDataListView.header().setLabel(0,self.__tr("EXIF Labels"))
91         self.EXifDataListView.header().setLabel(1,self.__tr("Contents "))
92         self.LocationText.setText(self.__tr("LOCATION"))
93         self.MimeTypeText.setText(self.__tr("MIME TYPE"))
94         self.SizeText.setText(self.__tr("SIZE"))
95         self.FilenameText.setText(self.__tr("FILENAME"))
96         self.pushButton6.setText(self.__tr("OK"))
97
98
99     def ViewEXIFButton_clicked(self):
100         print "ImagePropertiesDlg_base.ViewEXIFButton_clicked(): Not implemented yet"
101
102     def __tr(self,s,c = None):
103         return qApp.translate("ImagePropertiesDlg_base",s,c)
104
105 if __name__ == "__main__":
106     a = QApplication(sys.argv)
107     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
108     w = ImagePropertiesDlg_base()
109     a.setMainWidget(w)
110     w.show()
111     a.exec_loop()