00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 from qt import *
00012
00013
00014 class Paths(QDialog):
00015 def __init__(self,parent = None,name = None,modal = 0,fl = 0):
00016 QDialog.__init__(self,parent,name,modal,fl)
00017
00018 if not name:
00019 self.setName("Paths")
00020
00021 self.setMinimumSize(QSize(200,0))
00022 self.setFocusPolicy(QDialog.TabFocus)
00023 self.setModal(0)
00024
00025 PathsLayout = QGridLayout(self,1,1,2,6,"PathsLayout")
00026
00027 self.listBox1 = QListBox(self,"listBox1")
00028 self.listBox1.setFrameShadow(QListBox.Sunken)
00029 self.listBox1.setLineWidth(1)
00030 self.listBox1.setMargin(0)
00031 self.listBox1.setVScrollBarMode(QListBox.Auto)
00032
00033 PathsLayout.addWidget(self.listBox1,0,0)
00034
00035 self.languageChange()
00036
00037 self.resize(QSize(200,376).expandedTo(self.minimumSizeHint()))
00038 self.clearWState(Qt.WState_Polished)
00039
00040
00041 def languageChange(self):
00042 self.setCaption(self.__tr("Paths View"))
00043 self.listBox1.clear()
00044 self.listBox1.insertItem(self.__tr("New Item"))
00045 self.listBox1.insertItem(self.__tr("New Item"))
00046 self.listBox1.insertItem(self.__tr("New Item"))
00047 self.listBox1.insertItem(self.__tr("New Item"))
00048 self.listBox1.insertItem(self.__tr("New Item"))
00049 self.listBox1.insertItem(self.__tr("New Item"))
00050 self.listBox1.insertItem(self.__tr("New Item"))
00051 self.listBox1.insertItem(self.__tr("New Item"))
00052 self.listBox1.insertItem(self.__tr("New Item"))
00053 self.listBox1.insertItem(self.__tr("New Item"))
00054 self.listBox1.insertItem(self.__tr("New Item"))
00055 self.listBox1.insertItem(self.__tr("New Item"))
00056 self.listBox1.insertItem(self.__tr("New Item"))
00057 self.listBox1.insertItem(self.__tr("New Item"))
00058 self.listBox1.insertItem(self.__tr("New Item"))
00059 self.listBox1.insertItem(self.__tr("New Item"))
00060 self.listBox1.insertItem(self.__tr("New Item"))
00061 self.listBox1.insertItem(self.__tr("New Item"))
00062 self.listBox1.insertItem(self.__tr("New Item"))
00063 self.listBox1.insertItem(self.__tr("New Item"))
00064 self.listBox1.insertItem(self.__tr("New Item"))
00065 self.listBox1.insertItem(self.__tr("New Item"))
00066 self.listBox1.insertItem(self.__tr("New Item"))
00067
00068
00069 def __tr(self,s,c = None):
00070 return qApp.translate("Paths",s,c)
00071
00072