00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 from qt import *
00012 from selectPanel import *
00013 from visWindow import *
00014
00015
00016 class GUImainPanel(QSplitter):
00017 def __init__(self,main=None,parent = None,name = None,modal = 0,fl = 0):
00018 QSplitter.__init__(self,parent,name)
00019
00020 if not name:
00021 self.setName("Form1")
00022 self.main=main
00023
00024
00025 self.setOrientation(QSplitter.Horizontal)
00026
00027
00028 self.selectWindow = selectWindow(self.main,parent=self)
00029 self.selectWindow.setMinimumSize(QSize(250,0))
00030
00031 canvas = QCanvas(self)
00032 self.visWindow = visWindow(self.main,canvas,parent=self)
00033 self.visWindow.setPaletteBackgroundColor(QColor(255,255,255))
00034 self.visWindow.setMinimumSize(QSize(450,0))
00035 self.visWindow.setSizePolicy(QSizePolicy(7,7,1,0,self.visWindow.sizePolicy().hasHeightForWidth()))
00036
00037 self.languageChange()
00038 self.clearWState(Qt.WState_Polished)
00039
00040
00041 def languageChange(self):
00042 self.setCaption(self.__tr("mainPanel"))
00043
00044
00045
00046
00047
00048 def __tr(self,s,c = None):
00049 return qApp.translate("mainPanel",s,c)
00050
00051