# eric6.Plugins.VcsPlugins.vcsMercurial.HgBookmarksInOutDialog

Module implementing a dialog to show a list of incoming or outgoing bookmarks.

### Global Attributes

None

### Classes

HgBookmarksInOutDialog | Class implementing a dialog to show a list of incoming or outgoing bookmarks.

### Functions

None

## HgBookmarksInOutDialog

Class implementing a dialog to show a list of incoming or outgoing bookmarks.

### Derived from

QDialog, Ui_HgBookmarksInOutDialog

### Class Attributes

INCOMING
OUTGOING

### Class Methods

None

### Methods

HgBookmarksInOutDialog | Constructor
__finish | Private slot called when the process finished or the user pressed the button.
__generateItem | Private method to generate a bookmark item in the bookmarks list.
__procFinished | Private slot connected to the finished signal.
__processOutputLine | Private method to process the lines of output.
__readStderr | Private slot to handle the readyReadStderr signal.
__readStdout | Private slot to handle the readyReadStdout signal.
__resizeColumns | Private method to resize the list columns.
__resort | Private method to resort the tree.
__showError | Private slot to show some error.
closeEvent | Protected slot implementing a close event handler.
keyPressEvent | Protected slot to handle a key press event.
on_buttonBox_clicked | Private slot called by a button of the button box clicked.
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_sendButton_clicked | Private slot to send the input to the subversion process.
start | Public slot to start the bookmarks command.

### Static Methods

None

#### HgBookmarksInOutDialog (Constructor)

HgBookmarksInOutDialog(vcs, mode, parent=None)

Constructor

vcs
  reference to the vcs object
mode
  mode of the dialog (HgBookmarksInOutDialog.INCOMING, HgBookmarksInOutDialog.OUTGOING)
parent
  reference to the parent widget (QWidget)

Raises ValueError:
  raised to indicate an invalid dialog mode

#### HgBookmarksInOutDialog.__finish

__finish()

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

#### HgBookmarksInOutDialog.__generateItem

__generateItem(changeset, name)

Private method to generate a bookmark item in the bookmarks list.

changeset
  changeset of the bookmark (string)
name
  name of the bookmark (string)

#### HgBookmarksInOutDialog.__procFinished

__procFinished(exitCode, exitStatus)

Private slot connected to the finished signal.

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

#### HgBookmarksInOutDialog.__processOutputLine

__processOutputLine(line)

Private method to process the lines of output.

line
  output line to be processed (string)

#### HgBookmarksInOutDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStderr signal.

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

#### HgBookmarksInOutDialog.__readStdout

__readStdout()

Private slot to handle the readyReadStdout signal.

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

#### HgBookmarksInOutDialog.__resizeColumns

__resizeColumns()

Private method to resize the list columns.

#### HgBookmarksInOutDialog.__resort

__resort()

Private method to resort the tree.

#### HgBookmarksInOutDialog.__showError

__showError(out)

Private slot to show some error.

out
  error to be shown (string)

#### HgBookmarksInOutDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e
  close event (QCloseEvent)

#### HgBookmarksInOutDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt
  the key press event (QKeyEvent)

#### HgBookmarksInOutDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button
  button that was clicked (QAbstractButton)

#### HgBookmarksInOutDialog.on_input_returnPressed

on_input_returnPressed()

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

#### HgBookmarksInOutDialog.on_passwordCheckBox_toggled

on_passwordCheckBox_toggled(isOn)

Private slot to handle the password checkbox toggled.

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

#### HgBookmarksInOutDialog.on_sendButton_clicked

on_sendButton_clicked()

Private slot to send the input to the subversion process.

#### HgBookmarksInOutDialog.start

start(path)

Public slot to start the bookmarks command.

path
  name of directory to be listed (string)

Raises ValueError:
  raised to indicate an invalid dialog mode

Up