import PropTypes from 'prop-types' ; import Gtk from '../gtk' ; import Element from './Element' ; export default class TreeView extends Element { static propTypes = { activateOnSingleClick : PropTypes . bool , enableGridLines : PropTypes . object , enableSearch : PropTypes . bool , enableTreeLines : PropTypes . bool , expanderColumn : PropTypes . object , fixedHeightMode : PropTypes . bool , headersClickable : PropTypes . bool , headersVisible : PropTypes . bool , hoverExpand : PropTypes . bool , hoverSelection : PropTypes . bool , levelIndentation : PropTypes . number , model : PropTypes . object , reorderable : PropTypes . bool , rubberBanding : PropTypes . bool , rulesHint : PropTypes . bool , searchColumn : PropTypes . number , showExpanders : PropTypes . bool , tooltipColumn : PropTypes . number , ubuntuAlmostFixedHeightMode : PropTypes . bool , borderWidth : PropTypes . number , child : PropTypes . object , resizeMode : PropTypes . object } ; static defaultProps = { activateOnSingleClick : null , enableGridLines : null , enableSearch : null , enableTreeLines : null , expanderColumn : null , fixedHeightMode : null , headersClickable : null , headersVisible : null , hoverExpand : null , hoverSelection : null , levelIndentation : null , model : null , reorderable : null , rubberBanding : null , rulesHint : null , searchColumn : null , showExpanders : null , tooltipColumn : null , ubuntuAlmostFixedHeightMode : null , borderWidth : null , child : null , resizeMode : null } ; constructor ( props = { } ) { super ( new Gtk . TreeView ( ) , props , { isContainer : true } ) ; } appendColumn ( column ) { return this . node . appendColumn ( column ) ; } collapseAll ( ) { return this . node . collapseAll ( ) ; } collapseRow ( path ) { return this . node . collapseRow ( path ) ; } columnsAutosize ( ) { return this . node . columnsAutosize ( ) ; } convertBinWindowToTreeCoords ( bx , by , tx , ty ) { return this . node . convertBinWindowToTreeCoords ( bx , by , tx , ty ) ; } convertBinWindowToWidgetCoords ( bx , by , wx , wy ) { return this . node . convertBinWindowToWidgetCoords ( bx , by , wx , wy ) ; } convertTreeToBinWindowCoords ( tx , ty , bx , by ) { return this . node . convertTreeToBinWindowCoords ( tx , ty , bx , by ) ; } convertTreeToWidgetCoords ( tx , ty , wx , wy ) { return this . node . convertTreeToWidgetCoords ( tx , ty , wx , wy ) ; } convertWidgetToBinWindowCoords ( wx , wy , bx , by ) { return this . node . convertWidgetToBinWindowCoords ( wx , wy , bx , by ) ; } convertWidgetToTreeCoords ( wx , wy , tx , ty ) { return this . node . convertWidgetToTreeCoords ( wx , wy , tx , ty ) ; } createRowDragIcon ( path ) { return this . node . createRowDragIcon ( path ) ; } enableModelDragDest ( targets , nTargets , actions ) { return this . node . enableModelDragDest ( targets , nTargets , actions ) ; } enableModelDragSource ( startButtonMask , targets , nTargets , actions ) { return this . node . enableModelDragSource ( startButtonMask , targets , nTargets , actions ) ; } expandAll ( ) { return this . node . expandAll ( ) ; } expandRow ( path , openAll ) { return this . node . expandRow ( path , openAll ) ; } expandToPath ( path ) { return this . node . expandToPath ( path ) ; } insertColumn ( column , position ) { return this . node . insertColumn ( column , position ) ; } insertColumnWithAttributes ( position , title , cell , ___ ) { return this . node . insertColumnWithAttributes ( position , title , cell , ___ ) ; } insertColumnWithDataFunc ( position , title , cell , func , data , dnotify ) { return this . node . insertColumnWithDataFunc ( position , title , cell , func , data , dnotify ) ; } isBlankAtPos ( x , y , path , column , cellX , cellY ) { return this . node . isBlankAtPos ( x , y , path , column , cellX , cellY ) ; } isRubberBandingActive ( ) { return this . node . isRubberBandingActive ( ) ; } mapExpandedRows ( func , data ) { return this . node . mapExpandedRows ( func , data ) ; } moveColumnAfter ( column , baseColumn ) { return this . node . moveColumnAfter ( column , baseColumn ) ; } removeColumn ( column ) { return this . node . removeColumn ( column ) ; } rowActivated ( path , column ) { return this . node . rowActivated ( path , column ) ; } rowExpanded ( path ) { return this . node . rowExpanded ( path ) ; } scrollToCell ( path , column , useAlign , rowAlign , colAlign ) { return this . node . scrollToCell ( path , column , useAlign , rowAlign , colAlign ) ; } scrollToPoint ( treeX , treeY ) { return this . node . scrollToPoint ( treeX , treeY ) ; } unsetRowsDragDest ( ) { return this . node . unsetRowsDragDest ( ) ; } unsetRowsDragSource ( ) { return this . node . unsetRowsDragSource ( ) ; } add ( widget ) { return this . node . add ( widget ) ; } addWithProperties ( widget , firstPropName , ___ ) { return this . node . addWithProperties ( widget , firstPropName , ___ ) ; } checkResize ( ) { return this . node . checkResize ( ) ; } childGet ( child , firstPropName , ___ ) { return this . node . childGet ( child , firstPropName , ___ ) ; } childGetProperty ( child , propertyName , value ) { return this . node . childGetProperty ( child , propertyName , value ) ; } childGetValist ( child , firstPropertyName , varArgs ) { return this . node . childGetValist ( child , firstPropertyName , varArgs ) ; } childNotify ( child , childProperty ) { return this . node . childNotify ( child , childProperty ) ; } childNotifyByPspec ( child , pspec ) { return this . node . childNotifyByPspec ( child , pspec ) ; } childSet ( child , firstPropName , ___ ) { return this . node . childSet ( child , firstPropName , ___ ) ; } childSetProperty ( child , propertyName , value ) { return this . node . childSetProperty ( child , propertyName , value ) ; } childSetValist ( child , firstPropertyName , varArgs ) { return this . node . childSetValist ( child , firstPropertyName , varArgs ) ; } childType ( ) { return this . node . childType ( ) ; } forall ( callback , callbackData ) { return this . node . forall ( callback , callbackData ) ; } foreach ( callback , callbackData ) { return this . node . foreach ( callback , callbackData ) ; } propagateDraw ( child , cr ) { return this . node . propagateDraw ( child , cr ) ; } remove ( widget ) { return this . node . remove ( widget ) ; } resizeChildren ( ) { return this . node . resizeChildren ( ) ; } unsetFocusChain ( ) { return this . node . unsetFocusChain ( ) ; } }