#NEWLINE# def __init__( self , parent = None ) : #NEWLINE# #INDENT# QtGui . QTreeWidget . __init__ ( self , parent ) #NEWLINE# self . searchMode = False #NEWLINE# self . search = None #NEWLINE# self . setColumnCount ( 1 ) #NEWLINE# self . setHeaderHidden ( True ) #NEWLINE# self . setSelectionMode ( self . SingleSelection ) #NEWLINE# self . setSelectionBehavior ( self . SelectItems ) #NEWLINE# self . setDragEnabled ( True ) #NEWLINE# self . setAcceptDrops ( True ) #NEWLINE# self . setDropIndicatorShown ( True ) #NEWLINE# self . setExpandsOnDoubleClick ( False ) #NEWLINE# self . setRootIsDecorated ( False ) #NEWLINE# self . isTreeView = False #NEWLINE# self . executionsHidden = True #NEWLINE# self . collection = Collection . getInstance ( ) #NEWLINE# self . items = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . delegate = QModuleTreeWidgetItemDelegate ( self , self ) #NEWLINE# self . setItemDelegate ( self . delegate ) #NEWLINE# self . openFilesItem = QtGui . QTreeWidgetItem ( [ 'Current Vistrails' ] ) #NEWLINE# self . addTopLevelItem ( self . openFilesItem ) #NEWLINE# self . setup_closed_files ( ) #NEWLINE# self . openFilesItem . setExpanded ( True ) #NEWLINE# self . closedFilesItem . setExpanded ( True ) #NEWLINE# self . setSortingEnabled ( True ) #NEWLINE# self . sortItems ( 0 , QtCore . Qt . AscendingOrder ) #NEWLINE# self . connect ( self , QtCore . SIGNAL ( 'itemDoubleClicked(QTreeWidgetItem *, int)' ) , self . item_selected ) #NEWLINE# self . setIconSize ( QtCore . QSize ( 16 , 16 ) ) #NEWLINE# self . connect ( self , QtCore . SIGNAL ( 'itemPressed(QTreeWidgetItem *,int)' ) , self . onItemPressed ) #NEWLINE# self . updateHideExecutions ( ) #NEWLINE# self . connect_current_changed ( )