~ubuntu-branches/ubuntu/karmic/eric/karmic

« back to all changes in this revision

Viewing changes to eric/VCS/vcsPySvn/SvnPropSetDialog.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-01-28 18:02:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080128180225-6nrox6yrworh2c4v
Tags: 4.0.4-1ubuntu1
* Add python-qt3 to build-depends becuase that's where Ubuntu puts 
  pyqtconfig
* Change maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
# Copyright (c) 2003 - 2007 Detlev Offenbach <detlev@die-offenbachs.de>
 
4
#
 
5
 
 
6
"""
 
7
Module implementing a dialog to enter the data for a new property.
 
8
"""
 
9
 
 
10
from PyQt4.QtCore import *
 
11
from PyQt4.QtGui import *
 
12
 
 
13
from KdeQt import KQFileDialog
 
14
 
 
15
from Ui_SvnPropSetDialog import Ui_SvnPropSetDialog
 
16
 
 
17
class SvnPropSetDialog(QDialog, Ui_SvnPropSetDialog):
 
18
    """
 
19
    Class implementing a dialog to enter the data for a new property.
 
20
    """
 
21
    def __init__(self, recursive, parent = None):
 
22
        """
 
23
        Constructor
 
24
        
 
25
        @param recursive flag indicating a recursive set is requested
 
26
        @param parent parent widget (QWidget)
 
27
        """
 
28
        QDialog.__init__(self, parent)
 
29
        self.setupUi(self)
 
30
        
 
31
        self.recurseCheckBox.setChecked(recursive)
 
32
        
 
33
    def getData(self):
 
34
        """
 
35
        Public slot used to retrieve the data entered into the dialog.
 
36
        
 
37
        @return tuple of three values giving the property name, the text 
 
38
            of the property and a flag indicating, that this property 
 
39
            should be applied recursively. (string, string, boolean)
 
40
        """
 
41
        return (unicode(self.propNameEdit.text()), 
 
42
                unicode(self.propTextEdit.toPlainText()), 
 
43
                self.recurseCheckBox.isChecked())