コード例 #1
0
        internal PendingChangesTreeView(
            WorkspaceInfo wkInfo,
            PendingChangesTreeHeaderState headerState,
            List <string> columnNames,
            PendingChangesViewMenu menu)
            : base(new TreeViewState())
        {
            mWkInfo      = wkInfo;
            mColumnNames = columnNames;
            mMenu        = menu;

            mPendingChangesTree = new UnityPendingChangesTree();

            multiColumnHeader = new PendingChangesMultiColumnHeader(
                headerState, mPendingChangesTree);
            multiColumnHeader.canSort         = true;
            multiColumnHeader.sortingChanged += SortingChanged;

            customFoldoutYOffset          = UnityConstants.TREEVIEW_FOLDOUT_Y_OFFSET;
            rowHeight                     = UnityConstants.TREEVIEW_ROW_HEIGHT;
            showAlternatingRowBackgrounds = true;

            mCooldownFilterAction = new CooldownWindowDelayer(
                DelayedSearchChanged, UnityConstants.SEARCH_DELAYED_INPUT_ACTION_INTERVAL);
        }
コード例 #2
0
        internal PendingChangesTreeView(
            WorkspaceInfo wkInfo,
            PendingChangesTreeHeaderState headerState,
            PendingChangesViewMenu menu)
            : base(new TreeViewState())
        {
            mWkInfo             = wkInfo;
            mMenu               = menu;
            mPendingChangesTree = new UnityPendingChangesTree();

            mColumnNames = new List <string>();
            mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.ItemColumn));
            mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.StatusColumn));
            mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.SizeColumn));
            mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.ExtensionColumn));
            mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.TypeColumn));
            mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.DateModifiedColumn));
            mColumnNames.Add(PlasticLocalization.GetString(PlasticLocalization.Name.RepositoryColumn));

            multiColumnHeader = new PendingChangesMultiColumnHeader(
                headerState, mPendingChangesTree);
            multiColumnHeader.canSort         = true;
            multiColumnHeader.sortingChanged += SortingChanged;

            customFoldoutYOffset          = UnityConstants.TREEVIEW_FOLDOUT_Y_OFFSET;
            rowHeight                     = UnityConstants.TREEVIEW_ROW_HEIGHT;
            showAlternatingRowBackgrounds = true;

            mCooldownFilterAction = new CooldownWindowDelayer(DelayedSearchChanged, 0.25);
        }