#NEWLINE# def __init__( self , axis , parent = None ) : #NEWLINE# #INDENT# QtGui . QWidget . __init__ ( self , parent ) #NEWLINE# self . isTime = axis . isTime ( ) #NEWLINE# self . indexMode = False #NEWLINE# self . startIndex = 0 #NEWLINE# hbox = QtGui . QHBoxLayout ( ) #NEWLINE# vbox = QtGui . QVBoxLayout ( ) #NEWLINE# vbox . setSpacing ( 0 ) #NEWLINE# vbox . setMargin ( 0 ) #NEWLINE# self . setLayout ( hbox ) #NEWLINE# self . axisCombo = QAxisComboWidget ( ) #NEWLINE# hbox . addWidget ( self . axisCombo ) #NEWLINE# hbox . addLayout ( vbox ) #NEWLINE# self . topSlider = QtGui . QSlider ( QtCore . Qt . Horizontal ) #NEWLINE# self . bottomSlider = QtGui . QSlider ( QtCore . Qt . Horizontal ) #NEWLINE# vbox . addWidget ( self . topSlider ) #NEWLINE# vbox . addWidget ( self . bottomSlider ) #NEWLINE# self . bottomLabel = QtGui . QLabel ( 'To' , self ) #NEWLINE# self . topLabel = QtGui . QLabel ( 'From' , self ) #NEWLINE# hbox = QtGui . QHBoxLayout ( ) #NEWLINE# hbox . addWidget ( self . topLabel ) #NEWLINE# hbox . addWidget ( self . bottomLabel ) #NEWLINE# vbox . addLayout ( hbox ) #NEWLINE# self . initAxisValues ( axis ) #NEWLINE# self . setSlidersMinMax ( ) #NEWLINE# self . topSlider . setValue ( self . minIndex ) #NEWLINE# self . bottomSlider . setValue ( hbox . maxIndex ) #NEWLINE# self . axisCombo . initValues ( self . axisValues ) #NEWLINE# self . connect ( self . topSlider , QtCore . SIGNAL ( 'valueChanged (int)' ) , self . updateMin ) #NEWLINE# self . connect ( self . bottomSlider , QtCore . SIGNAL ( 'valueChanged (int)' ) , self . updateMax ) #NEWLINE# self . connect ( self . axisCombo , QtCore . SIGNAL ( 'axisComboMinValueChanged (int)' ) , self . updateTopSlider ) #NEWLINE# self . connect ( self . axisCombo , QtCore . SIGNAL ( 'axisComboMaxValueChanged (int)' ) , self . updateBottomSlider )