# eric7.Plugins.VcsPlugins.vcsSubversion.SvnRepoBrowserDialog

Module implementing the subversion repository browser dialog.

### Global Attributes

None

### Classes

SvnRepoBrowserDialog | Class implementing the subversion repository browser dialog.

### Functions

None

## SvnRepoBrowserDialog

Class implementing the subversion repository browser dialog.

### Derived from

QDialog, Ui_SvnRepoBrowserDialog

### Class Attributes

None

### Class Methods

None

### Methods

SvnRepoBrowserDialog | Constructor
__finish | Private slot called when the process finished or the user pressed the button.
__generateItem | Private method to generate a tree item in the repository tree.
__listRepo | Private method to perform the svn list command.
__normalizeUrl | Private method to normalite the url.
__procFinished | Private slot connected to the finished signal.
__readStderr | Private slot to handle the readyReadStandardError signal.
__readStdout | Private slot to handle the readyReadStandardOutput signal.
__repoRoot | Private method to get the repository root using the svn info command.
__resizeColumns | Private method to resize the tree columns.
__resort | Private method to resort the tree.
accept | Public slot called when the dialog is accepted.
closeEvent | Protected slot implementing a close event handler.
getSelectedUrl | Public method to retrieve the selected repository URL.
keyPressEvent | Protected slot to handle a key press event.
on_input_returnPressed | Private slot to handle the press of the return key in the input field.
on_passwordCheckBox_toggled | Private slot to handle the password checkbox toggled.
on_repoTree_itemCollapsed | Private slot called when an item is collapsed.
on_repoTree_itemExpanded | Private slot called when an item is expanded.
on_repoTree_itemSelectionChanged | Private slot called when the selection changes.
on_sendButton_clicked | Private slot to send the input to the subversion process.
on_urlCombo_currentIndexChanged | Private slot called, when a new repository URL is entered or selected.
start | Public slot to start the svn info command.

### Static Methods

None

#### SvnRepoBrowserDialog (Constructor)

SvnRepoBrowserDialog(vcs, mode="browse", parent=None)

Constructor

vcs (Subversion)
  reference to the vcs object
mode (str)
  mode of the dialog ("browse" or "select")
parent (QWidget)
  parent widget

#### SvnRepoBrowserDialog.__finish

__finish()

Private slot called when the process finished or the user pressed the button.

#### SvnRepoBrowserDialog.__generateItem

__generateItem(repopath, revision, author, size, date, nodekind, url)

Private method to generate a tree item in the repository tree.

repopath (str)
  path of the item
revision (str)
  revision info
author (str)
  author info
size (str)
  size info
date (str)
  date info
nodekind (str)
  node kind info ("dir" or "file")
url (str)
  url of the entry

Return:
  reference to the generated item

Return Type:
  QTreeWidgetItem

#### SvnRepoBrowserDialog.__listRepo

__listRepo(url, parent=None)

Private method to perform the svn list command.

url (str)
  the repository URL to browse
parent (QTreeWidget or QTreeWidgetItem)
  reference to the item, the data should be appended to

#### SvnRepoBrowserDialog.__normalizeUrl

__normalizeUrl(url)

Private method to normalite the url.

url (str)
  the url to normalize

Return:
  normalized URL

Return Type:
  str

#### SvnRepoBrowserDialog.__procFinished

__procFinished(exitCode, exitStatus)

Private slot connected to the finished signal.

exitCode (int)
  exit code of the process
exitStatus (QProcess.ExitStatus)
  exit status of the process

#### SvnRepoBrowserDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStandardError signal.

It reads the error output of the process and inserts it into the error pane.

#### SvnRepoBrowserDialog.__readStdout

__readStdout()

Private slot to handle the readyReadStandardOutput signal.

It reads the output of the process, formats it and inserts it into the contents pane.

#### SvnRepoBrowserDialog.__repoRoot

__repoRoot(url)

Private method to get the repository root using the svn info command.

url (str)
  the repository URL to browser

Return:
  repository root

Return Type:
  str

#### SvnRepoBrowserDialog.__resizeColumns

__resizeColumns()

Private method to resize the tree columns.

#### SvnRepoBrowserDialog.__resort

__resort()

Private method to resort the tree.

#### SvnRepoBrowserDialog.accept

accept()

Public slot called when the dialog is accepted.

#### SvnRepoBrowserDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e (QCloseEvent)
  close event

#### SvnRepoBrowserDialog.getSelectedUrl

getSelectedUrl()

Public method to retrieve the selected repository URL.

Return:
  the selected repository URL

Return Type:
  str

#### SvnRepoBrowserDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt (QKeyEvent)
  the key press event

#### SvnRepoBrowserDialog.on_input_returnPressed

on_input_returnPressed()

Private slot to handle the press of the return key in the input field.

#### SvnRepoBrowserDialog.on_passwordCheckBox_toggled

on_passwordCheckBox_toggled(isOn)

Private slot to handle the password checkbox toggled.

isOn (bool)
  flag indicating the status of the check box

#### SvnRepoBrowserDialog.on_repoTree_itemCollapsed

on_repoTree_itemCollapsed(item)

Private slot called when an item is collapsed.

item (QTreeWidgetItem)
  reference to the item to be collapsed

#### SvnRepoBrowserDialog.on_repoTree_itemExpanded

on_repoTree_itemExpanded(item)

Private slot called when an item is expanded.

item (QTreeWidgetItem)
  reference to the item to be expanded

#### SvnRepoBrowserDialog.on_repoTree_itemSelectionChanged

on_repoTree_itemSelectionChanged()

Private slot called when the selection changes.

#### SvnRepoBrowserDialog.on_sendButton_clicked

on_sendButton_clicked()

Private slot to send the input to the subversion process.

#### SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged

on_urlCombo_currentIndexChanged(index)

Private slot called, when a new repository URL is entered or selected.

index (int)
  index of the current item

#### SvnRepoBrowserDialog.start

start(url)

Public slot to start the svn info command.

url (str)
  the repository URL to browser

Up