internal ViewSwitcher( WorkspaceInfo wkInfo, ViewHost viewHost, bool isGluonMode, PlasticGui.WorkspaceWindow.PendingChanges.PendingChanges pendingChanges, NewIncomingChangesUpdater developerNewIncomingChangesUpdater, GluonNewIncomingChangesUpdater gluonNewIncomingChangesUpdater, IIncomingChangesNotifier incomingChangesNotifier, IAssetStatusCache assetStatusCache, StatusBar statusBar, EditorWindow parentWindow) { mWkInfo = wkInfo; mViewHost = viewHost; mIsGluonMode = isGluonMode; mPendingChanges = pendingChanges; mDeveloperNewIncomingChangesUpdater = developerNewIncomingChangesUpdater; mGluonNewIncomingChangesUpdater = gluonNewIncomingChangesUpdater; mIncomingChangesNotifier = incomingChangesNotifier; mAssetStatusCache = assetStatusCache; mStatusBar = statusBar; mParentWindow = parentWindow; mPendingChangesTabButton = new TabButton(); mIncomingChangesTabButton = new TabButton(); mChangesetsTabButton = new TabButton(); mBranchesTabButton = new TabButton(); mHistoryTabButton = new TabButton(); }
internal void OnGUI( WorkspaceInfo wkInfo, WorkspaceWindow workspaceWindow, IMergeViewLauncher mergeViewLauncher, IGluonViewSwitcher gluonViewSwitcher, IIncomingChangesNotifier incomingChangesNotifier, bool isGluonMode) { EditorGUILayout.BeginVertical( GetBarStyle(), GUILayout.Height(UnityConstants.STATUS_BAR_HEIGHT)); GUILayout.FlexibleSpace(); EditorGUILayout.BeginHorizontal(); if (incomingChangesNotifier.HasNotification) { DrawIncomingChangesNotification( wkInfo, workspaceWindow, mergeViewLauncher, gluonViewSwitcher, incomingChangesNotifier.Notification, isGluonMode); } if (mNotification != null) { DrawNotification(mNotification); } GUILayout.FlexibleSpace(); DrawWorkspaceStatus(workspaceWindow.WorkspaceStatus); EditorGUILayout.EndHorizontal(); GUILayout.FlexibleSpace(); EditorGUILayout.EndVertical(); }