#NEWLINE# def __init__( self , parent = None ) : #NEWLINE# #INDENT# ' Instantiate the child widgets of the main VCDAT window and setup\n        the overall layout ' #NEWLINE# QtGui . QWidget . __init__ ( self , parent ) #NEWLINE# self . setWindowTitle ( 'The Visual Climate Data Analysis Tools - (VCDAT)' ) #NEWLINE# layout = QtGui . QVBoxLayout ( ) #NEWLINE# self . setLayout ( layout ) #NEWLINE# self . menuWidget = QMenuWidget ( self ) #NEWLINE# vsplitter = QtGui . QSplitter ( QtCore . Qt . Vertical ) #NEWLINE# fileWidget = QLabeledWidgetContainer ( QCDATFileWidget ( ) , 'FILE VARIABLES' ) #NEWLINE# vsplitter . addWidget ( fileWidget ) #NEWLINE# definedVar = QLabeledWidgetContainer ( QDefinedVariable ( ) , 'DEFINED VARIABLES' ) #NEWLINE# vsplitter . addWidget ( definedVar ) #NEWLINE# hsplitter = QtGui . QSplitter ( QtCore . Qt . Horizontal ) #NEWLINE# hsplitter . addWidget ( vsplitter ) #NEWLINE# varView = QLabeledWidgetContainer ( QVariableView ( ) , 'PLOTTING' ) #NEWLINE# hsplitter . addWidget ( varView ) #NEWLINE# hsplitter . setStretchFactor ( 1 , 1 ) #NEWLINE# layout . addWidget ( hsplitter ) #NEWLINE# guiController = GuiController ( fileWidget . getWidget ( ) , definedVar . getWidget ( ) , varView . getWidget ( ) ) #NEWLINE# guiController . initTeachingCommands ( ) #NEWLINE# self . guiController = guiController #NEWLINE# self . connect ( self , QtCore . SIGNAL ( 'setRecordCommands' ) , hsplitter . setRecordCommands ) #NEWLINE# self . connect ( self , QtCore . SIGNAL ( 'viewTeachingCommands' ) , guiController . viewTeachingCommands ) #NEWLINE# self . connect ( self , QtCore . SIGNAL ( 'closeTeachingCommands' ) , guiController . closeTeachingCommands ) #NEWLINE# varView . connect ( definedVar . getWidget ( ) , QtCore . SIGNAL ( 'selectDefinedVariableEvent' ) , varView . getWidget ( ) . selectDefinedVariableEvent ) #NEWLINE# varView . connect ( definedVar . getWidget ( ) , QtCore . SIGNAL ( 'setupDefinedVariableAxes' ) , varView . getWidget ( ) . setupDefinedVariableAxes ) #NEWLINE# definedVar . connect ( varView . getWidget ( ) , QtCore . SIGNAL ( 'plotPressed' ) , definedVar . getWidget ( ) . defineQuickplot ) #NEWLINE# definedVar . connect ( varView . getWidget ( ) , QtCore . SIGNAL ( 'defineVariable' ) , definedVar . getWidget ( ) . defineVariable ) #NEWLINE# varView . connect ( fileWidget . getWidget ( ) , QtCore . SIGNAL ( 'variableChanged' ) , varView . getWidget ( ) . setupDefinedVariableAxes ) #NEWLINE# varView . connect ( fileWidget . getWidget ( ) , QtCore . SIGNAL ( 'defineVariableEvent' ) , varView . getWidget ( ) . defineVariableEvent )