public void SetBranchLabel(BranchLabelModel b) { CommitManager m = CommitManager.GetInstance(); m.SetupMovingBranchLabel(b); _moved = false; }
void CreateManagers(ActionPanelModel localAM, ActionPanelModel remoteLeftAM, ActionPanelModel remoteRightAM) { ActionsManager = new ActionsManager(); ActionsManager.LocalRepoPanel = localAM; ActionsManager.RemoteRepoLeftGroupPanel = remoteLeftAM; ActionsManager.RemoteRepoRightGroupPanel = remoteRightAM; TabManager = new TabManager(Data.MainWindowModel, localAM); TabManager.CommitRequested += Commit; TabManager.AbortRequested += AbortMerge; TabManager.CanvasMouseDown += OnMouseDown; TabManager.CanvasMouseUp += OnMouseUp; SubscribeActionsManager(); CommitManager = CommitManager.GetInstance(); RepositoryManager = new RepositoryManager(_dataFolder); UserManager = new UserManager(_dataFolder); StashingManager = new StashingManager(_dataFolder); RemoteManager = new RemoteManager(_dataFolder); }
public void Rebase() { CommitManager.Rebase(Aggregating, Aggregated); }
public void Merge() { CommitManager.Merge(Aggregating, Aggregated); }
public void AggregationFocus(BranchLabelModel l) { AggregationFocused = l; CommitManager.AggregationFocus(l); }
public void Show(GraphItemModel item) { CommitManager.Mark(item); TabManager.ShowItem(item); ActionsManager.OnMarkedItem(item != null); }
void CheckoutMarked() { GraphItemModel marked = TabManager.MainTabModel.Shown; CommitManager.Checkout(marked); }
private void Commit(string message, IEnumerable <string> stagedFiles, IEnumerable <string> unstagedFiles) { CommitManager.Commit(null, message, stagedFiles, unstagedFiles); TabManager.CloseCommitEditorTab(); }
public void MouseWheelMove(CrossStateData data, int delta) { CommitManager.GetInstance().BranchLabelToMouse(data.AttachedBranch, data.MousePoint); }
public void MouseMove(CrossStateData data, MouseEventArgs e) { CommitManager.GetInstance().MoveBranch(data.MouseDisplacement); _moved = true; }
void ChangeState(IProgramState state, CrossStateData data) { CommitManager.GetInstance().RestoreBranchLabel(data.AttachedBranch); Program.AggregationFocus(null); Program.ChangeState(state); }