Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

browserPreferencesImpl.py

00001 #!/usr/local/bin/python
00002 #
00003 #                               Copyright 2004
00004 #                                     by
00005 #                        The Board of Trustees of the
00006 #                     Leland Stanford Junior University.
00007 #                            All rights reserved.
00008 #
00009 
00010 
00011 __facility__ = "Online"
00012 __abstract__ = "Browser preferences GUI implementation module"
00013 __author__   = "A. Kavelaars <aliciak@SLAC.Stanford.edu> SLAC - GLAST I&T/Online"
00014 __date__     = ("$Date: 2005/05/16 18:30:35 $").split(' ')[1]
00015 __version__  = "$Revision: 2.2 $"
00016 __release__  = "$Name: R04-12-00 $"
00017 __credits__  = "SLAC"
00018 
00019 import LATTE.copyright_SLAC
00020 
00021 import sys
00022 from qt import *
00023 from BrowserPreferences import BrowserPreferences
00024 
00025 
00026 class browserPreferencesImpl(BrowserPreferences):
00027 
00028   def __init__(self,parent = None,name = None,modal = 0,fl = 0):
00029     BrowserPreferences.__init__(self,parent,name,modal,fl)
00030 
00031     self.timestepValue.setText("1")
00032     self.connect(self.timestepSlider, SIGNAL('valueChanged(int)'), self.changeStepValue)
00033 
00034   def changeStepValue(self):
00035     self.timestepValue.setText(str(float(self.timestepSlider.value())/10.))
00036 
00037 if __name__ == "__main__":
00038   a = QApplication(sys.argv)
00039   QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
00040   w = BrowserPreferences()
00041   a.setMainWidget(w)
00042   w.show()
00043   a.exec_loop()

Generated on Fri Jul 21 13:26:27 2006 for LATTE R04-12-00 by doxygen 1.4.3