Exemple #1
0
 public ConnectionTreeView(TreeViewState state, ConnectionDropDownMultiColumnHeader multiColumnHeader, Action closeWindow) : base(state, multiColumnHeader)
 {
     showAlternatingRowBackgrounds = false;
     baseIndent       = 0;
     depthIndentWidth = foldoutWidth;
     rowHeight        = 20f;
     m_CloseWindow    = closeWindow;
 }
Exemple #2
0
        public ConnectionTreeViewWindow(IConnectionStateInternal internalState, Rect rect)
        {
            state = internalState;
            state.AddItemsToTree(this, rect);
            if (multiColumnHeaderState == null)
            {
                treeViewState          = new TreeViewState();
                multiColumnHeaderState = CreateDefaultMultiColumnHeaderState(100);
                multiColumnHeader      = new ConnectionDropDownMultiColumnHeader(multiColumnHeaderState);
                m_connectionTreeView   = new ConnectionTreeView(treeViewState, multiColumnHeader, ClosePopUp)
                {
                    dropDownItems = connectionItems
                };
                SetMinColumnWidths();
                return;
            }

            multiColumnHeader    = new ConnectionDropDownMultiColumnHeader(multiColumnHeaderState);
            m_connectionTreeView = new ConnectionTreeView(treeViewState, multiColumnHeader, ClosePopUp)
            {
                dropDownItems = connectionItems
            };
        }