void IIncomingChangesTab.OnGUI() { DoActionsToolbar( mIsProcessMergesButtonVisible, mIsCancelMergesButtonVisible, mIsProcessMergesButtonEnabled, mIsCancelMergesButtonEnabled, mProcessMergesButtonText, mIncomingChangesViewLogic, mIncomingChangesTreeView, mProgressControls); bool splitterNeeded = mIsErrorsListVisible; if (splitterNeeded) { PlasticSplitterGUILayout.BeginVerticalSplit(mErrorsSplitterState); } DoIncomingChangesArea( mPlasticClient, mIncomingChangesTreeView, mPendingConflictsLabelData, mChangesToApplySummaryLabelText, mMessageLabelText, mIsMessageLabelVisible, mProgressControls.IsOperationRunning()); DoErrorsArea( mErrorsListView, mErrorDetailsSplitterState, mErrorMessageLabelText, mIsErrorsListVisible, mIsErrorMessageLabelVisible); if (splitterNeeded) { PlasticSplitterGUILayout.EndVerticalSplit(); } if (mProgressControls.HasNotification()) { DrawProgressForViews.ForNotificationArea( mProgressControls.ProgressData); } }
internal void OnGUI() { InitializeShowChangesButtonWidth(); bool wasChangesPanelVisible = mIsChangesPanelVisible; DoActionsToolbar( this, mProgressControls, mSearchField, mChangesetsListView, mDateFilter, mChangesetsLabelText, mShowChangesButtonWidth, wasChangesPanelVisible); if (mIsChangesPanelVisible) { PlasticSplitterGUILayout.BeginVerticalSplit(mSplitterState); } DoChangesetsArea( mChangesetsListView, mProgressControls.IsOperationRunning()); if (mIsChangesPanelVisible) { if (!wasChangesPanelVisible) { mShouldScrollToSelection = true; } DoChangesArea(mDiffPanel); PlasticSplitterGUILayout.EndVerticalSplit(); } }
void IIncomingChangesTab.OnGUI() { bool splitterNeeded = mIsErrorsListVisible; if (splitterNeeded) { PlasticSplitterGUILayout.BeginVerticalSplit(mErrorsSplitterState); } DoIncomingChangesArea( mIncomingChangesTreeView, mProgressControls.IsOperationRunning(), mHasNothingToDownload, mIsUpdateSuccessful); DoErrorsArea( mErrorsListView, mErrorDetailsSplitterState, mIsErrorsListVisible); if (splitterNeeded) { PlasticSplitterGUILayout.EndVerticalSplit(); } DrawActionToolbar.Begin(mParentWindow); if (!mProgressControls.IsOperationRunning()) { DoActionToolbarMessage( mIsMessageLabelVisible, mMessageLabelText, mHasNothingToDownload, mIsErrorMessageLabelVisible, mErrorMessageLabelText, mFileConflictCount, mChangesSummary); if (mIsProcessMergesButtonVisible) { DoProcessMergesButton( mIsProcessMergesButtonEnabled, mProcessMergesButtonText, mIncomingChangesViewLogic, mIncomingChangesTreeView, AfterProcessMerges); } if (mIsCancelMergesButtonVisible) { mIsCancelMergesButtonEnabled = DoCancelMergesButton( mIsCancelMergesButtonEnabled, mIncomingChangesViewLogic); } } else { DrawProgressForViews.ForIndeterminateProgress( mProgressControls.ProgressData); } DrawActionToolbar.End(); if (mProgressControls.HasNotification()) { DrawProgressForViews.ForNotificationArea( mProgressControls.ProgressData); } }