public IssueTable(TreeViewState state, MultiColumnHeader multicolumnHeader, ProjectIssue[] issues, bool groupByDescription, ProjectAuditor projectAuditor, ProjectAuditorWindow window) : base(state, multicolumnHeader) { m_ProjectAuditor = projectAuditor; m_ProjectAuditorWindow = window; m_Issues = issues; m_GroupByDescription = groupByDescription; multicolumnHeader.sortingChanged += OnSortingChanged; Reload(); }
static public AssemblySelectionWindow Open(float screenX, float screenY, ProjectAuditorWindow projectAuditorWindow, TreeViewSelection selection, string[] names) { AssemblySelectionWindow window = GetWindow <AssemblySelectionWindow>("Assemblies"); window.position = new Rect(screenX, screenY, 400, 500); window.SetData(projectAuditorWindow, selection, names); window.Show(); return(window); }
void CreateTable(ProjectAuditorWindow projectAuditorWindow, TreeViewSelection selection, string[] names) { if (m_TreeViewState == null) { m_TreeViewState = new TreeViewState(); } MultiSelectionTable.HeaderData[] headerData = new MultiSelectionTable.HeaderData[] { new MultiSelectionTable.HeaderData("Assembly", "Assembly Name", 350, 100, true, false), new MultiSelectionTable.HeaderData("Show", "Check to show this assembly in the analysis views", 40, 100, false, false), new MultiSelectionTable.HeaderData("Group", "Assembly Group", 100, 100, true, false), }; m_MultiColumnHeaderState = MultiSelectionTable.CreateDefaultMultiColumnHeaderState(headerData); var multiColumnHeader = new MultiColumnHeader(m_MultiColumnHeaderState); multiColumnHeader.SetSorting((int)MultiSelectionTable.MyColumns.ItemName, true); multiColumnHeader.ResizeToFit(); m_MultiSelectionTable = new MultiSelectionTable(m_TreeViewState, multiColumnHeader, names, selection); }
private void SetData(ProjectAuditorWindow projectAuditorWindow, TreeViewSelection selection, string[] names) { m_ProjectAuditorWindow = projectAuditorWindow; CreateTable(projectAuditorWindow, selection, names); }