C# Class GitForce.Main.Right.Panels.PanelCommits

Inheritance: System.Windows.Forms.UserControl
Afficher le fichier Open project: gdevic/GitForce

Méthodes publiques

Méthode Description
CommitsRefresh ( ) : void

Panel commit refresh function

DoDropFiles ( ClassStatus status, List files ) : void

Adds a list of files to the default commit (index) This static function may also be used by callers wishing to update index. files is a list of files with relative paths.

GetContextMenu ( ToolStrip owner, object tag ) : ToolStripItemCollection

Builds ands returns a context menu for commits

PanelCommits ( ) : System

Class constructor

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
ArmRefresh ( ) : void

Arms the future refresh operation

BeginEditingSelectedNode ( ) : void
GetCommitForEditLabel ( System.Windows.Forms.NodeLabelEditEventArgs e ) : ClassCommit

Gets the commit for the edit label event. Return null and cancels the edit if edit is not allowed.

GetFilesToUnstage ( object tag ) : List
GetMergeCommitBundle ( ) : ClassCommit

Return the commit bundle for the merge operation

GetSelectedFile ( ) : string

Returns the relative path of a single selected file, or empty if no file was selected

GetSelectedFiles ( ) : List

Returns a set of selected git files

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

MenuAbortMergeClick ( object sender, EventArgs e ) : void

Abort the merge.. All files will be lost!

MenuAcceptClick ( object sender, EventArgs e ) : void

Accept one particula version of a file, details of a command are sent in Tag

MenuDeleteEmptyClick ( object sender, EventArgs e ) : void

Delete empty commit bundle. It is already verified that the commit bundle (sent in the tag) is empty.

MenuDiffClick ( object sender, EventArgs e ) : void

Diff selected files against the repo

MenuEditClick ( object sender, EventArgs e ) : void

Edit selected file using either the default editor (native OS file association, if the tag is null, or the editor program specified in the tag field. This is a handler for both the context menu and the edit tool bar button.

MenuEditCommitClick ( object sender, EventArgs e ) : void

Edit selected commit bundle

MenuEditCommitMergeClick ( object sender, EventArgs e ) : void

Edit merge commit description

MenuEditRevHistClick ( object sender, EventArgs e ) : void

Show the revision history dialog for a selected file. This dialog is _not_ modal, so user can view multiple files.

MenuExitMergeClick ( object sender, EventArgs e ) : void

Exit Merge state by deleting MERGE_HEAD

MenuMergeTool ( object sender, EventArgs e ) : void

Run the merge tool. Tag of a sender may contain an individual file name.

MenuNewCommitClick ( object sender, EventArgs e ) : void

New commit bundle needed

MenuRefreshClick ( object sender, EventArgs e ) : void

Shortcut function to the panel refresh This is a thread-safe refresh function: it is also triggered by a timer event

MenuSubmitClick ( object sender, EventArgs e ) : void

Submit selected files within a changelist Two versions of submit are used: one for the ordinary submit and the other one for the submit when the operation will be a merge.

MenuSubmitMergeClick ( object sender, EventArgs e ) : void

Submit merge

MenuUnstageClick ( object sender, EventArgs e ) : void

Unstage selected files; remove them from index

TreeCommitsAfterCollapse ( object sender, TreeViewEventArgs e ) : void
TreeCommitsAfterExpand ( object sender, TreeViewEventArgs e ) : void
TreeCommitsAfterLabelEdit ( object sender, System.Windows.Forms.NodeLabelEditEventArgs e ) : void
TreeCommitsAfterSelect ( object sender, TreeViewEventArgs e ) : void
TreeCommitsBeforeLabelEdit ( object sender, System.Windows.Forms.NodeLabelEditEventArgs e ) : void
TreeCommitsDoubleClick ( object sender, MouseEventArgs e ) : void

Handle double-clicking on a tree view Depending on the saved options, we either do nothing ("0"), open a file using a default Explorer file association ("1"), or open a file using a specified application ("2")

TreeCommitsDragDrop ( object sender, DragEventArgs e ) : void

Handler for the drop portion of drag and drop. User dropped one or more files to the commit pane. The files may originate from the left pane, or from an external application like explorer.

TreeCommitsDragEnter ( object sender, DragEventArgs e ) : void

User dragged something into the view

TreeCommitsItemDrag ( object sender, ItemDragEventArgs e ) : void

User selected one or more items and started to drag them

TreeCommitsMouseMove ( object sender, MouseEventArgs e ) : void

As the mouse moves over nodes, show the human readable description of files that the mouse points to

TreeCommitsMouseUp ( object sender, MouseEventArgs e ) : void

Right-mouse button opens a popup with the context menu

TreeCommitsPreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void
UpdateCommitCollapsed ( TreeViewEventArgs e ) : void

Method Details

CommitsRefresh() public méthode

Panel commit refresh function
public CommitsRefresh ( ) : void
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

DoDropFiles() public static méthode

Adds a list of files to the default commit (index) This static function may also be used by callers wishing to update index. files is a list of files with relative paths.
public static DoDropFiles ( ClassStatus status, List files ) : void
status ClassStatus
files List
Résultat void

GetContextMenu() public méthode

Builds ands returns a context menu for commits
public GetContextMenu ( ToolStrip owner, object tag ) : ToolStripItemCollection
owner System.Windows.Forms.ToolStrip
tag object
Résultat System.Windows.Forms.ToolStripItemCollection

PanelCommits() public méthode

Class constructor
public PanelCommits ( ) : System
Résultat System