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 switch operation.
12
from SwitchForm import SwitchForm
14
class CvsSwitchDialog(SwitchForm):
16
Class implementing a dialog to enter the data for a switch operation.
18
def __init__(self, taglist, parent = None):
22
@param taglist list of previously entered tags (QStringList)
23
@param parent parent widget (QWidget)
25
SwitchForm.__init__(self, parent, None, 1)
27
dummy = self.trUtf8('dummy')
30
self.tagCombo.insertStringList(taglist)
32
self.cvsTagValidator = QRegExpValidator(QRegExp(r"[a-zA-Z][a-zA-Z0-9_-]*"), self)
33
self.tagCombo.setValidator(self.cvsTagValidator)
35
def getParameters(self):
37
Public method to retrieve the tag data.
39
@return tag name (QString)
41
return self.tagCombo.currentText()