Ejemplo n.º 1
0
 public AnalysisView(AnalysisViewDescriptor desc, ProjectAuditorConfig config, IIssuesFilter filter)
 {
     m_Desc   = desc;
     m_Config = config;
     m_Filter = filter;
     m_Table  = null;
 }
Ejemplo n.º 2
0
 public AnalysisView(AnalysisViewDescriptor desc, ProjectAuditorConfig config, Preferences prefs, IProjectIssueFilter filter)
 {
     m_Desc        = desc;
     m_Config      = config;
     m_Preferences = prefs;
     m_Filter      = filter;
     m_Table       = null;
 }
Ejemplo n.º 3
0
 public IssueTable(TreeViewState state, MultiColumnHeader multicolumnHeader,
                   AnalysisViewDescriptor desc, ProjectAuditorConfig config,
                   IProjectIssueFilter filter) : base(state,
                                                      multicolumnHeader)
 {
     m_Config = config;
     m_Filter = filter;
     m_Desc   = desc;
     m_NextId = 1;
     multicolumnHeader.sortingChanged += OnSortingChanged;
 }
Ejemplo n.º 4
0
        public void CreateTable(AnalysisViewDescriptor desc, ProjectAuditorConfig config, Preferences prefs, IProjectIssueFilter filter)
        {
            m_Desc        = desc;
            m_Config      = config;
            m_Preferences = prefs;
            m_Filter      = filter;

            if (m_Table != null)
            {
                return;
            }

            var state   = new TreeViewState();
            var columns = new MultiColumnHeaderState.Column[m_Desc.columnTypes.Length];

            for (var i = 0; i < columns.Length; i++)
            {
                var columnType = m_Desc.columnTypes[i];

                ColumnDescriptor style;
                if (columnType == IssueTable.ColumnType.Description && m_Desc.descriptionColumnStyle.Content != null)
                {
                    style = m_Desc.descriptionColumnStyle;
                }
                else if (columnType < IssueTable.ColumnType.Custom)
                {
                    style = Styles.Columns[(int)columnType];
                }
                else
                {
                    style = m_Desc.customColumnStyles[columnType - IssueTable.ColumnType.Custom];
                }

                columns[i] = new MultiColumnHeaderState.Column
                {
                    headerContent = style.Content,
                    width         = style.Width,
                    minWidth      = style.MinWidth,
                    autoResize    = true
                };
            }

            m_Table = new IssueTable(state,
                                     new MultiColumnHeader(new MultiColumnHeaderState(columns)),
                                     m_Desc,
                                     m_Config,
                                     m_Filter);

            if (m_Desc.showDependencyView)
            {
                m_DependencyView = new DependencyView(new TreeViewState(), m_Desc.onDoubleClick);
            }
        }
Ejemplo n.º 5
0
 public IssueTable(TreeViewState state, MultiColumnHeader multicolumnHeader,
                   AnalysisViewDescriptor desc, ProjectAuditorConfig config,
                   IProjectIssueFilter filter) : base(state,
                                                      multicolumnHeader)
 {
     m_Config   = config;
     m_Filter   = filter;
     m_Desc     = desc;
     m_FlatView = !desc.groupByDescription;
     m_NextId   = k_FirstId;
     m_FontSize = Preferences.k_MinFontSize;
     multicolumnHeader.sortingChanged += OnSortingChanged;
 }
Ejemplo n.º 6
0
 public void CreateTable(AnalysisViewDescriptor desc, ProjectAuditorConfig config, Preferences prefs, IProjectIssueFilter filter)
 {
     m_AnalysisView.CreateTable(desc, config, prefs, filter);
 }
Ejemplo n.º 7
0
 public ItemTree(IssueTableItem i, AnalysisViewDescriptor viewDescriptor)
 {
     m_Item           = i;
     m_Children       = new List <ItemTree>();
     m_ViewDescriptor = viewDescriptor;
 }
Ejemplo n.º 8
0
 public override void CreateTable(AnalysisViewDescriptor desc, ProjectAuditorConfig config, Preferences prefs, IProjectIssueFilter filter)
 {
     m_MainFilter = filter;
     base.CreateTable(desc, config, prefs, this);
     m_AnalysisView.SetFlatView(m_FlatView);
 }