Plugins/VcsPlugins/vcsPySvn/SvnSwitchDialog.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
10 from PyQt4.QtCore import * 10 from PyQt4.QtCore import *
11 from PyQt4.QtGui import * 11 from PyQt4.QtGui import *
12 12
13 from .Ui_SvnSwitchDialog import Ui_SvnSwitchDialog 13 from .Ui_SvnSwitchDialog import Ui_SvnSwitchDialog
14 14
15
15 class SvnSwitchDialog(QDialog, Ui_SvnSwitchDialog): 16 class SvnSwitchDialog(QDialog, Ui_SvnSwitchDialog):
16 """ 17 """
17 Class implementing a dialog to enter the data for a switch operation. 18 Class implementing a dialog to enter the data for a switch operation.
18 """ 19 """
19 def __init__(self, taglist, reposURL, standardLayout, parent = None): 20 def __init__(self, taglist, reposURL, standardLayout, parent=None):
20 """ 21 """
21 Constructor 22 Constructor
22 23
23 @param taglist list of previously entered tags (list of strings) 24 @param taglist list of previously entered tags (list of strings)
24 @param reposURL repository path (string) or None 25 @param reposURL repository path (string) or None
25 @param standardLayout flag indicating the layout of the 26 @param standardLayout flag indicating the layout of the
26 repository (boolean) 27 repository (boolean)
27 @param parent parent widget (QWidget) 28 @param parent parent widget (QWidget)
28 """ 29 """
29 QDialog.__init__(self, parent) 30 QDialog.__init__(self, parent)
30 self.setupUi(self) 31 self.setupUi(self)
51 elif self.branchButton.isChecked(): 52 elif self.branchButton.isChecked():
52 tagType = 2 53 tagType = 2
53 if not tag: 54 if not tag:
54 tagType = 4 55 tagType = 4
55 return (tag, tagType) 56 return (tag, tagType)
56

eric ide

mercurial