C# Class GitUI.CommandsDialogs.FormBrowse

Inheritance: GitModuleForm, IBrowseRepo
Mostrar archivo Open project: JetBrains/gitextensions Class Usage Examples

Public Methods

Method Description
AddTranslationItems ( ITranslation translation ) : void
CancelButtonClick ( object sender, EventArgs e ) : void
FindFileOnClick ( object sender, EventArgs e ) : void
FormBrowse ( GitUICommands aCommands, string filter ) : GitUI.UserControls.RevisionGridClasses
GoToRef ( string refName, bool showNoRevisionMsg ) : void
OpenOnClick ( object sender, EventArgs e ) : void
OpenWithOnClick ( object sender, EventArgs e ) : void
SaveAsOnClick ( object sender, EventArgs e ) : void
TranslateItems ( ITranslation translation ) : void
fileHistoryItem_Click ( object sender, EventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ExecuteCommand ( int cmd ) : bool
LoadInTree ( IEnumerable items, TreeNodeCollection node ) : void
OnClosed ( EventArgs e ) : void
OnClosing ( System e ) : void

Private Methods

Method Description
AboutToolStripMenuItemClick ( object sender, EventArgs e ) : void
AddNotes ( ) : void
AddSubmoduleToMenu ( string name, object module ) : ToolStripMenuItem
AddWorkingdirDropDownItem ( GitCommands.Repository.Repository repo, string caption ) : void
ApplyPatchToolStripMenuItemClick ( object sender, EventArgs e ) : void
ArchiveToolStripMenuItemClick ( object sender, EventArgs e ) : void
BisectClick ( object sender, EventArgs e ) : void
BranchSelectToolStripItem_Click ( object sender, EventArgs e ) : void
BrowseLoad ( object sender, EventArgs e ) : void
ChangeWorkingDir ( string path ) : void
ChangelogToolStripMenuItemClick ( object sender, EventArgs e ) : void
CheckForMergeConflicts ( ) : void
CheckoutBranchToolStripMenuItemClick ( object sender, EventArgs e ) : void
CheckoutToolStripMenuItemClick ( object sender, EventArgs e ) : void
CherryPickToolStripMenuItemClick ( object sender, EventArgs e ) : void
CleanupToolStripMenuItemClick ( object sender, EventArgs e ) : void
CloneSvnToolStripMenuItemClick ( object sender, EventArgs e ) : void
CloneToolStripMenuItemClick ( object sender, EventArgs e ) : void
CloseToolStripMenuItemClick ( object sender, EventArgs e ) : void
CommitToolStripMenuItemClick ( object sender, EventArgs e ) : void
CommitcountPerUserToolStripMenuItemClick ( object sender, EventArgs e ) : void
CompressGitDatabaseToolStripMenuItemClick ( object sender, EventArgs e ) : void
CreateBranchToolStripMenuItemClick ( object sender, EventArgs e ) : void
CreateOrUpdateTaskBarButtons ( bool validRepo ) : void
CurrentBranchClick ( object sender, EventArgs e ) : void
CurrentBranchDropDownOpening ( object sender, EventArgs e ) : void
DeleteBranchToolStripMenuItemClick ( object sender, EventArgs e ) : void
DeleteTagToolStripMenuItemClick ( object sender, EventArgs e ) : void
DiffContextMenu_Opening ( object sender, System e ) : void
DiffFilesDoubleClick ( object sender, EventArgs e ) : void
DiffFilesSelectedIndexChanged ( object sender, EventArgs e ) : void
DiffFiles_DataSourceChanged ( object sender, EventArgs e ) : void
DiffTextExtraDiffArgumentsChanged ( object sender, EventArgs e ) : void
DonateToolStripMenuItemClick ( object sender, EventArgs e ) : void
EditGitignoreToolStripMenuItem1Click ( object sender, EventArgs e ) : void
EditLocalGitConfigToolStripMenuItemClick ( object sender, EventArgs e ) : void
EditMailMapToolStripMenuItemClick ( object sender, EventArgs e ) : void
EnabledSplitViewLayout ( bool enabled ) : void
ExecuteCommand ( Commands cmd ) : bool
ExitToolStripMenuItemClick ( object sender, EventArgs e ) : void
FileExplorerToolStripMenuItemClick ( object sender, EventArgs e ) : void
FileToolStripMenuItemDropDownOpening ( object sender, EventArgs e ) : void
FileTreeContextMenu_Opening ( object sender, System e ) : void
FillBuildReport ( ) : void
FillCommitInfo ( ) : void
FillDiff ( ) : void
FillFileTree ( ) : void
FillTerminalTab ( ) : void

Adds a tab with console interface to Git over the current working copy. Recreates the terminal on tab activation if user exits the shell.

Find ( TreeNodeCollection nodes, string label ) : TreeNode
FindFileInSelectedCommit ( ) : void
FindFileMatches ( string name ) : IList
FormBrowse ( ) : GitUI.UserControls.RevisionGridClasses

For VS designer

FormBrowseFormClosing ( object sender, FormClosingEventArgs e ) : void
FormBrowse_Activated ( object sender, EventArgs e ) : void
FormatPatchToolStripMenuItemClick ( object sender, EventArgs e ) : void
GenerateOrImportKeyToolStripMenuItemClick ( object sender, EventArgs e ) : void
GenerateWindowTitle ( string workingDir, bool isWorkingDirValid, string branchName ) : string

Generates main window title according to given repository.

GetItemImage ( GitCommands.GitSubmoduleStatus gitSubmoduleStatus ) : Image
GetModuleBranch ( string path ) : string
GetMonoVersion ( ) : string
GetRepositoryShortName ( string repositoryDir ) : String

Returns a short name for repository. If the repository contains a description it is returned, otherwise the last part of path is returned.

GetShortcutKeys ( Commands cmd ) : Keys
GetSubmoduleStatusImageAsync ( ToolStripMenuItem mi, GitModule module, string submodulePath ) : Task
GitBashClick ( object sender, EventArgs e ) : void
GitBashToolStripMenuItemClick1 ( object sender, EventArgs e ) : void
GitGuiToolStripMenuItemClick ( object sender, EventArgs e ) : void
GitTreeBeforeExpand ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void
GitTreeDoubleClick ( object sender, EventArgs e ) : void
GitTreeKeyDown ( object sender, KeyEventArgs e ) : void
GitTreeMouseDown ( object sender, MouseEventArgs e ) : void
GitTree_AfterSelect ( object sender, TreeViewEventArgs e ) : void
GitTree_MouseDown ( object sender, MouseEventArgs e ) : void
GitTree_MouseMove ( object sender, MouseEventArgs e ) : void
GitcommandLogToolStripMenuItemClick ( object sender, EventArgs e ) : void
HideDashboard ( ) : void
HideVariableMainMenuItems ( ) : void

to avoid showing menu items that should not be there during the transition from dashboard to repo browser and vice versa and reset hotkeys that are shared between mutual exclusive menu items

HistoryItemMenuClick ( object sender, EventArgs e ) : void
InitNewRepositoryToolStripMenuItemClick ( object sender, EventArgs e ) : void
InternalInitialize ( bool hard ) : void
ItemClick ( object sender, EventArgs e ) : void

Execute plugin

KGitToolStripMenuItemClick ( object sender, EventArgs e ) : void
LoadPluginsInPluginMenu ( ) : void
LoadSubmodulesIntoDropDownMenu ( ) : void
LoadUserMenu ( ) : void
MakeIcon ( Image img, int size, bool keepAspectRatio ) : Icon

Converts an image into an icon. This was taken off of the interwebs. It's on a billion different sites and forum posts, so I would say its creative commons by now. -tekmaven

ManageRemoteRepositoriesToolStripMenuItemClick ( object sender, EventArgs e ) : void
ManageSubmodulesToolStripMenuItemClick ( object sender, EventArgs e ) : void
MergeBranchToolStripMenuItemClick ( object sender, EventArgs e ) : void
OnActivate ( ) : void
OnItemActivated ( ) : void
OpenToolStripMenuItemClick ( object sender, EventArgs e ) : void
PatchToolStripMenuItemClick ( object sender, EventArgs e ) : void
PluginSettingsToolStripMenuItemClick ( object sender, EventArgs e ) : void
PullToolStripMenuItemClick ( object sender, EventArgs e ) : void
PushToolStripMenuItemClick ( object sender, EventArgs e ) : void
QuickFetch ( ) : void
ReadRepositoryDescription ( string workingDir ) : string

Reads repository description's first line from ".git\description" file.

RebaseClick ( object sender, EventArgs e ) : void
RebaseToolStripMenuItemClick ( object sender, EventArgs e ) : void
RefreshButtonClick ( object sender, EventArgs e ) : void
RefreshDashboardToolStripMenuItemClick ( object sender, EventArgs e ) : void
RefreshPullIcon ( ) : void
RefreshRevisions ( ) : void
RefreshToolStripMenuItemClick ( object sender, EventArgs e ) : void
RefreshWorkingDirCombo ( ) : void
RegisterPlugins ( ) : void
RemoveSubmoduleButtons ( ) : void
RepoSettingsToolStripMenuItemClick ( object sender, EventArgs e ) : void
ResetSelectedItemsTo ( string revision, bool actsAsChild ) : void
ResetToThisRevisionOnClick ( object sender, EventArgs e ) : void
ResetToolStripMenuItem_Click ( object sender, EventArgs e ) : void
RevisionGridSelectionChanged ( object sender, EventArgs e ) : void
RevisionInfo_CommandClick ( object sender, CommitInfo e ) : void
RunMergetoolToolStripMenuItemClick ( object sender, EventArgs e ) : void
SaveApplicationSettings ( ) : void
SaveSelectedItemToTempFile ( ) : string
SaveUserMenuPosition ( ) : void
SetGitModule ( object sender, GitModuleEventArgs e ) : void
SetShortcutKeyDisplayStringsFromHotkeySettings ( ) : void

SetWorkingDir ( string path ) : void
SettingsClick ( object sender, EventArgs e ) : void
SettingsToolStripMenuItem2Click ( object sender, EventArgs e ) : void
ShowDashboard ( ) : void
ShowRevisions ( ) : void
ShowSelectedFileDiff ( ) : void
StartAuthenticationAgentToolStripMenuItemClick ( object sender, EventArgs e ) : void
StashChangesToolStripMenuItemClick ( object sender, EventArgs e ) : void
StashPopToolStripMenuItemClick ( object sender, EventArgs e ) : void
StashToolStripMenuItemClick ( object sender, EventArgs e ) : void
StatusClick ( object sender, EventArgs e ) : void
SubmoduleToolStripButtonClick ( object sender, EventArgs e ) : void
SvnDcommitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
SvnFetchToolStripMenuItem_Click ( object sender, EventArgs e ) : void
SvnRebaseToolStripMenuItem_Click ( object sender, EventArgs e ) : void
SynchronizeAllSubmodulesToolStripMenuItemClick ( object sender, EventArgs e ) : void
TabControl1SelectedIndexChanged ( object sender, EventArgs e ) : void
TagToolStripMenuItemClick ( object sender, EventArgs e ) : void
ToolStripButton1Click ( object sender, EventArgs e ) : void
ToolStripButtonPullClick ( object sender, EventArgs e ) : void
ToolStripButtonPushClick ( object sender, EventArgs e ) : void
ToolStripSplitStashButtonClick ( object sender, EventArgs e ) : void
Translate ( ) : void
TranslateToolStripMenuItemClick ( object sender, EventArgs e ) : void
UICommands_PostRepositoryChanged ( object sender, GitUIBaseEventArgs e ) : void
UnregisterPlugins ( ) : void
UpdateAllSubmodulesToolStripMenuItemClick ( object sender, EventArgs e ) : void
UpdateJumplist ( bool validWorkingDir ) : void
UpdatePluginMenu ( bool validWorkingDir ) : void
UpdateStashCount ( ) : void
UpdateSubmoduleToolStripMenuItemClick ( object sender, EventArgs e ) : void
UpdateSubmodulesList ( ) : void
UserManualToolStripMenuItemClick ( object sender, EventArgs e ) : void
UserMenu_Click ( object sender, EventArgs e ) : void
UtilGetPathParts ( string path ) : string[]
VerifyGitDatabaseToolStripMenuItemClick ( object sender, EventArgs e ) : void
ViewStashToolStripMenuItemClick ( object sender, EventArgs e ) : void
WarningClick ( object sender, EventArgs e ) : void
WorkingdirClick ( object sender, EventArgs e ) : void
WorkingdirDropDownOpening ( object sender, EventArgs e ) : void
_NO_TRANSLATE_Workingdir_MouseUp ( object sender, MouseEventArgs e ) : void
_createPullRequestToolStripMenuItem_Click ( object sender, EventArgs e ) : void
_forkCloneMenuItem_Click ( object sender, EventArgs e ) : void
_indexWatcher_Changed ( object sender, IndexChangedEventArgs e ) : void
_viewPullRequestsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
blameMenuItem_Click ( object sender, EventArgs e ) : void
blameToolStripMenuItem_Click ( object sender, EventArgs e ) : void
branchSelect_MouseUp ( object sender, MouseEventArgs e ) : void
checkForUpdatesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
cherryPickSelectedDiffFileToolStripMenuItem_Click ( object sender, EventArgs e ) : void
collapseAllToolStripMenuItem_Click ( object sender, EventArgs e ) : void
copyFilenameToClipboardToolStripMenuItem1_Click ( object sender, EventArgs e ) : void
copyFilenameToClipboardToolStripMenuItem_Click ( object sender, EventArgs e ) : void
deleteIndexlockToolStripMenuItem_Click ( object sender, EventArgs e ) : void
diffShowInFileTreeToolStripMenuItem_Click ( object sender, EventArgs e ) : void

TODO: move logic to other source file?

dontSetAsDefaultToolStripMenuItem_Click ( object sender, EventArgs e ) : void
editCheckedOutFileToolStripMenuItem_Click ( object sender, EventArgs e ) : void
editgitattributesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
expandAllStripMenuItem_Click ( object sender, EventArgs e ) : void
fetchAllToolStripMenuItem_Click ( object sender, EventArgs e ) : void
fetchToolStripMenuItem_Click ( object sender, EventArgs e ) : void
fileHistoryDiffToolstripMenuItem_Click ( object sender, EventArgs e ) : void
fileTreeArchiveToolStripMenuItem_Click ( object sender, EventArgs e ) : void
fileTreeCleanWorkingTreeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
fileTreeOpenContainingFolderToolStripMenuItem_Click ( object sender, EventArgs e ) : void
findInDiffToolStripMenuItem_Click ( object sender, EventArgs e ) : void
getNextIdx ( int curIdx, int maxIdx, bool searchBackward ) : int
getNextPatchFile ( bool searchBackward ) : string>.Tuple
mergeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
openContainingFolderToolStripMenuItem_Click ( object sender, EventArgs e ) : void
openWithDifftoolToolStripMenuItem_Click ( object sender, EventArgs e ) : void
openWithDifftoolToolStripMenuItem_DropDownOpening ( object sender, EventArgs e ) : void
openWithToolStripMenuItem_Click ( object sender, EventArgs e ) : void
pluginsToolStripMenuItem_DropDownOpening ( object sender, EventArgs e ) : void
pullToolStripMenuItem1_Click ( object sender, EventArgs e ) : void
rebaseToolStripMenuItem1_Click ( object sender, EventArgs e ) : void
reportAnIssueToolStripMenuItem_Click ( object sender, EventArgs e ) : void
resetFileToFirstToolStripMenuItem_Click ( object sender, EventArgs e ) : void
resetFileToParentToolStripMenuItem_Click ( object sender, EventArgs e ) : void
resetFileToSecondToolStripMenuItem_Click ( object sender, EventArgs e ) : void
resetFileToSelectedToolStripMenuItem_Click ( object sender, EventArgs e ) : void
resetFileToToolStripMenuItem_DropDownOpening ( object sender, EventArgs e ) : void
saveAsToolStripMenuItem1_Click ( object sender, EventArgs e ) : void
toggleSplitViewLayout_Click ( object sender, EventArgs e ) : void
toolStripButtonLevelUp_ButtonClick ( object sender, EventArgs e ) : void
toolStripButtonLevelUp_DropDownOpening ( object sender, EventArgs e ) : void
toolStripButtonPull_DropDownOpened ( object sender, EventArgs e ) : void
toolStripStatusLabel1_Click ( object sender, EventArgs e ) : void

Method Details

AddTranslationItems() public method

public AddTranslationItems ( ITranslation translation ) : void
translation ITranslation
return void

CancelButtonClick() public method

public CancelButtonClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Dispose() protected method

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

ExecuteCommand() protected method

protected ExecuteCommand ( int cmd ) : bool
cmd int
return bool

FindFileOnClick() public method

public FindFileOnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

FormBrowse() public method

public FormBrowse ( GitUICommands aCommands, string filter ) : GitUI.UserControls.RevisionGridClasses
aCommands GitUICommands
filter string
return GitUI.UserControls.RevisionGridClasses

GoToRef() public method

public GoToRef ( string refName, bool showNoRevisionMsg ) : void
refName string
showNoRevisionMsg bool
return void

LoadInTree() protected method

protected LoadInTree ( IEnumerable items, TreeNodeCollection node ) : void
items IEnumerable
node System.Windows.Forms.TreeNodeCollection
return void

OnClosed() protected method

protected OnClosed ( EventArgs e ) : void
e EventArgs
return void

OnClosing() protected method

protected OnClosing ( System e ) : void
e System
return void

OpenOnClick() public method

public OpenOnClick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OpenWithOnClick() public method

public OpenWithOnClick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

SaveAsOnClick() public method

public SaveAsOnClick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

TranslateItems() public method

public TranslateItems ( ITranslation translation ) : void
translation ITranslation
return void

fileHistoryItem_Click() public method

public fileHistoryItem_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void