eric3.VCS.mercurialPackage.HgDialog

Module implementing a dialog starting a process and showing its output.

Classes

HgDialog Module implementing a dialog as the Mercurial UI.
HgDummyDialog Module implementing a dummy dialog as the Mercurial UI.

Functions

None


HgDialog

Module implementing a dialog as the Mercurial UI.

Derived from

HgForm, ui

Methods

HgDialog Constructor
debug Public method to output a debug message.
edit Public method to enter some text.
finish Public slot called when the function is finished.
keyPressEvent Protected slot to handle a key press event.
note Public method to output a note.
passwordMode Private slot to handle the password checkbox toggled.
prompt Public method to prompt the user for some input.
returnPressed Private slot to handle the press of the return key in the input field.
sendInput Private slot to send the input to mercurial.
status Public method to output a status message.
warn Public method to output a warning message.
write Public method to write something to the output of the dialog.
write_err Public method to write something to the errors output of the dialog.

HgDialog (Constructor)

HgDialog(text, command = '', parent = None, debug = 0)

Constructor

text
text to be shown by the label (string or QString)
command
command executed in the dialog (string)
parent
parent widget (QWidget)
debug
flag indicating debug operation (boolean)

HgDialog.debug

debug(*msg)

Public method to output a debug message.

debug
messages to show (strings)

HgDialog.edit

edit(text)

Public method to enter some text.

Raises RuntimeError:
not implemented

HgDialog.finish

finish()

Public slot called when the function is finished.

HgDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt
the key press event (QKeyEvent)

HgDialog.note

note(*msg)

Public method to output a note.

notes
to show (strings)

HgDialog.passwordMode

passwordMode(isOn)

Private slot to handle the password checkbox toggled.

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

HgDialog.prompt

prompt(msg, pat, default = "y")

Public method to prompt the user for some input.

msg
prompt message to be shown (string)
pat
pattern of acceptable input (string)
default
default answer if we are in noninteractive mode (string)
Returns:
the entered text

HgDialog.returnPressed

returnPressed()

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

HgDialog.sendInput

sendInput()

Private slot to send the input to mercurial.

HgDialog.status

status(*msg)

Public method to output a status message.

status
messages to show (strings)

HgDialog.warn

warn(*msg)

Public method to output a warning message.

warning
messages to show (strings)

HgDialog.write

write(*args)

Public method to write something to the output of the dialog.

*args
texts to be written

HgDialog.write_err

write_err(*args)

Public method to write something to the errors output of the dialog.

*args
error texts to be written

Up


HgDummyDialog

Module implementing a dummy dialog as the Mercurial UI.

Derived from

ui

Methods

HgDummyDialog Constructor
debug Public method to output a debug message.
edit Public method to enter some text.
note Public method to output a note.
prompt Public method to prompt the user for some input.
status Public method to output a status message.
warn Public method to output a warning message.
write Public method to write something to the output of the dialog.
write_err Public method to write something to the errors output of the dialog.

HgDummyDialog (Constructor)

HgDummyDialog()

Constructor

HgDummyDialog.debug

debug(*msg)

Public method to output a debug message.

debug
messages to show (strings)

HgDummyDialog.edit

edit(text)

Public method to enter some text.

Raises RuntimeError:
not implemented

HgDummyDialog.note

note(*msg)

Public method to output a note.

notes
to show (strings)

HgDummyDialog.prompt

prompt(msg, pat, default = "y")

Public method to prompt the user for some input.

msg
prompt message to be shown (string)
pat
pattern of acceptable input (string)
default
default answer if we are in noninteractive mode (string)
Returns:
the entered text

HgDummyDialog.status

status(*msg)

Public method to output a status message.

status
messages to show (strings)

HgDummyDialog.warn

warn(*msg)

Public method to output a warning message.

warning
messages to show (strings)

HgDummyDialog.write

write(*args)

Public method to write something to the output of the dialog.

*args
texts to be written

HgDummyDialog.write_err

write_err(*args)

Public method to write something to the errors output of the dialog.

*args
error texts to be written

Up