eric7.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesNewPatchDialog

Module implementing a dialog to get the data for a new patch.

Global Attributes

None

Classes

HgQueuesNewPatchDialog Class implementing a dialog to get the data for a new patch.
HgQueuesNewPatchDialogMode Class defining the dialog modes.

Functions

None


HgQueuesNewPatchDialog

Class implementing a dialog to get the data for a new patch.

Derived from

QDialog, Ui_HgQueuesNewPatchDialog

Class Attributes

None

Class Methods

None

Methods

HgQueuesNewPatchDialog Constructor
__updateUI Private slot to update the UI.
getData Public method to retrieve the entered data.
on_currentUserCheckBox_toggled Private slot to handle changes of the currentuser state.
on_messageEdit_textChanged Private slot to handle changes of the patch message.
on_nameEdit_textChanged Private slot to handle changes of the patch name.
on_userEdit_textChanged Private slot to handle changes of the user name.
on_userGroup_toggled Private slot to handle changes of the user group state.

Static Methods

None

HgQueuesNewPatchDialog (Constructor)

HgQueuesNewPatchDialog(mode, message="", parent=None)

Constructor

mode (HgQueuesNewPatchDialogMode)
mode of the dialog
message (str)
text to set as the commit message
parent (QWidget)
reference to the parent widget
Raises ValueError:
raised to indicate an invalid dialog mode

HgQueuesNewPatchDialog.__updateUI

__updateUI()

Private slot to update the UI.

HgQueuesNewPatchDialog.getData

getData()

Public method to retrieve the entered data.

Return:
tuple giving the patch name and message, a tuple giving a flag indicating to set the user, a flag indicating to use the current user and the user name and another tuple giving a flag indicating to set the date, a flag indicating to use the current date and the date
Return Type:
tuple of (str, str, tuple of (bool, bool, str), tuple of (bool, bool, str))

HgQueuesNewPatchDialog.on_currentUserCheckBox_toggled

on_currentUserCheckBox_toggled(_checked)

Private slot to handle changes of the currentuser state.

_checked (bool)
flag giving the checked state (unused)

HgQueuesNewPatchDialog.on_messageEdit_textChanged

on_messageEdit_textChanged()

Private slot to handle changes of the patch message.

HgQueuesNewPatchDialog.on_nameEdit_textChanged

on_nameEdit_textChanged(_txt)

Private slot to handle changes of the patch name.

_txt (str)
text of the edit (unused)

HgQueuesNewPatchDialog.on_userEdit_textChanged

on_userEdit_textChanged(_txt)

Private slot to handle changes of the user name.

_txt (str)
text of the edit (unused)

HgQueuesNewPatchDialog.on_userGroup_toggled

on_userGroup_toggled(_checked)

Private slot to handle changes of the user group state.

_checked (bool)
flag giving the checked state (unused)
Up


HgQueuesNewPatchDialogMode

Class defining the dialog modes.

Derived from

enum.Enum

Class Attributes

NEW
REFRESH

Class Methods

None

Methods

None

Static Methods

None
Up