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.
10
from PyQt4.QtCore import *
11
from PyQt4.QtGui import *
13
from Ui_SvnSwitchDialog import Ui_SvnSwitchDialog
15
class SvnSwitchDialog(QDialog, Ui_SvnSwitchDialog):
17
Class implementing a dialog to enter the data for a switch operation.
19
def __init__(self, taglist, reposURL, standardLayout, parent = None):
23
@param taglist list of previously entered tags (QStringList)
24
@param reposURL repository path (QString or string) or None
25
@param standardLayout flag indicating the layout of the
27
@param parent parent widget (QWidget)
29
QDialog.__init__(self, parent)
33
self.tagCombo.addItems(taglist)
35
if reposURL is not None and reposURL is not QString():
36
self.tagCombo.setEditText(reposURL)
38
if not standardLayout:
39
self.TagTypeGroup.setEnabled(False)
41
def getParameters(self):
43
Public method to retrieve the tag data.
45
@return tuple of QString and int (tag, tag type)
47
tag = self.tagCombo.currentText()
49
if self.regularButton.isChecked():
51
elif self.branchButton.isChecked():