Plugins/VcsPlugins/vcsMercurial/HgOptionsDialog.py

Sat, 15 Jun 2013 15:54:55 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 15 Jun 2013 15:54:55 +0200
changeset 2718
af0ba4c4bea6
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 3008
7848489bcb92
child 3163
9f50365a0870
permissions
-rw-r--r--

Ammended the Mercurial a little bit to generate a minimal user config file instead of an empty one.

# -*- coding: utf-8 -*-

# Copyright (c) 2010 - 2013 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing a dialog to enter options used to start a project in the VCS.
"""

from PyQt4.QtGui import QDialog

from .Ui_HgOptionsDialog import Ui_HgOptionsDialog


class HgOptionsDialog(QDialog, Ui_HgOptionsDialog):
    """
    Class implementing a dialog to enter options used to start a project in the
    repository.
    """
    def __init__(self, vcs, project, parent=None):
        """
        Constructor
        
        @param vcs reference to the version control object
        @param project reference to the project object
        @param parent parent widget (QWidget)
        """
        super().__init__(parent)
        self.setupUi(self)
    
    def getData(self):
        """
        Public slot to retrieve the data entered into the dialog.
        
        @return a dictionary containing the data entered
        """
        vcsdatadict = {
            "message": self.vcsLogEdit.text(),
        }
        return vcsdatadict

eric ide

mercurial