Beispiel #1
0
        public ChangeEntryGroup([NotNull] AdapterListView adapterListView)
        {
            m_ListView    = adapterListView;
            m_GroupHeader = new ChangesGroupHeader();
            m_ListNotice  = new ListNotice();
            m_ListNotice.AddToClassList(UiConstants.ussHidden);

            Add(m_GroupHeader);
            Add(m_ListView);
            Add(m_ListNotice);
        }
        public HistoryEntryComponent()
        {
            // Get the layout
            AddToClassList(UssClassName);
            AssetDatabase.LoadAssetAtPath <VisualTreeAsset>(k_LayoutPath).CloneTree(this);
            styleSheets.Add(AssetDatabase.LoadAssetAtPath <StyleSheet>(k_StylePath));

            // Initialise fields
            profileInitial    = this.Q <Label>(className: ProfileInitialUssClassName);
            authorName        = this.Q <Label>(className: AuthorNameUssClassName);
            timestamp         = this.Q <Label>(className: TimestampUssClassName);
            revisionId        = this.Q <Label>(className: RevisionIdUssClassName);
            commitMessage     = this.Q <Label>(className: CommitMessageUssClassName);
            changedFilesCount = this.Q <Label>(className: ChangedFilesCountUssClassName);
            changedFiles      = this.Q <AdapterListView>(className: ChangedFilesUssClassName);
            gotoButton        = this.Q <Button>(className: RollbackButtonUssClassName);
            showFilesButton   = this.Q <Button>(className: ShowFilesButtonUssClassName);
            cloudStatusText   = this.Q <Label>(className: BuildStatusUssClassName);

            changedFiles.SelectionType = SelectionType.None;

            gotoButton.text = StringAssets.rollback;
        }