Plugins/VcsPlugins/vcsMercurial/HgOptionsDialog.py

changeset 178
dd9f0bca5e2f
child 791
9ec2ac20e54e
equal deleted inserted replaced
177:c822ccc4d138 178:dd9f0bca5e2f
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2010 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog to enter options used to start a project in the VCS.
8 """
9
10 from PyQt4.QtGui import QDialog
11
12 from .Ui_HgOptionsDialog import Ui_HgOptionsDialog
13
14 class HgOptionsDialog(QDialog, Ui_HgOptionsDialog):
15 """
16 Class implementing a dialog to enter options used to start a project in the
17 repository.
18 """
19 def __init__(self, vcs, project, parent = None):
20 """
21 Constructor
22
23 @param vcs reference to the version control object
24 @param project reference to the project object
25 @param parent parent widget (QWidget)
26 """
27 QDialog.__init__(self, parent)
28 self.setupUi(self)
29
30 def getData(self):
31 """
32 Public slot to retrieve the data entered into the dialog.
33
34 @return a dictionary containing the data entered
35 """
36 vcsdatadict = {
37 "message" : self.vcsLogEdit.text(),
38 }
39 return vcsdatadict

eric ide

mercurial