1
# -*- coding: utf-8 -*-
3
# Copyright (c) 2003 - 2007 Detlev Offenbach <detlev@die-offenbachs.de>
7
Module implementing a dialog to enter the data for a new property.
10
from PyQt4.QtCore import *
11
from PyQt4.QtGui import *
13
from KdeQt import KQFileDialog
15
from Ui_SvnPropSetDialog import Ui_SvnPropSetDialog
17
class SvnPropSetDialog(QDialog, Ui_SvnPropSetDialog):
19
Class implementing a dialog to enter the data for a new property.
21
def __init__(self, recursive, parent = None):
25
@param recursive flag indicating a recursive set is requested
26
@param parent parent widget (QWidget)
28
QDialog.__init__(self, parent)
31
self.recurseCheckBox.setChecked(recursive)
35
Public slot used to retrieve the data entered into the dialog.
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)
41
return (unicode(self.propNameEdit.text()),
42
unicode(self.propTextEdit.toPlainText()),
43
self.recurseCheckBox.isChecked())