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

« back to all changes in this revision

Viewing changes to eric/VCS/vcsPySvn/Ui_SvnOptionsDialog.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
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/VCS/vcsPySvn/SvnOptionsDialog.ui'
 
4
#
 
5
# Created: Sat Feb  3 15:34:19 2007
 
6
#      by: PyQt4 UI code generator 4-snapshot-20070125
 
7
#
 
8
# WARNING! All changes made in this file will be lost!
 
9
 
 
10
from PyQt4 import QtCore, QtGui
 
11
 
 
12
class Ui_SvnOptionsDialog(object):
 
13
    def setupUi(self, SvnOptionsDialog):
 
14
        SvnOptionsDialog.setObjectName("SvnOptionsDialog")
 
15
        SvnOptionsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,565,152).size()).expandedTo(SvnOptionsDialog.minimumSizeHint()))
 
16
        SvnOptionsDialog.setSizeGripEnabled(True)
 
17
 
 
18
        self.vboxlayout = QtGui.QVBoxLayout(SvnOptionsDialog)
 
19
        self.vboxlayout.setMargin(6)
 
20
        self.vboxlayout.setSpacing(6)
 
21
        self.vboxlayout.setObjectName("vboxlayout")
 
22
 
 
23
        self.gridlayout = QtGui.QGridLayout()
 
24
        self.gridlayout.setMargin(0)
 
25
        self.gridlayout.setSpacing(6)
 
26
        self.gridlayout.setObjectName("gridlayout")
 
27
 
 
28
        self.TextLabel5 = QtGui.QLabel(SvnOptionsDialog)
 
29
        self.TextLabel5.setObjectName("TextLabel5")
 
30
        self.gridlayout.addWidget(self.TextLabel5,2,0,1,1)
 
31
 
 
32
        self.layoutCheckBox = QtGui.QCheckBox(SvnOptionsDialog)
 
33
        self.layoutCheckBox.setChecked(True)
 
34
        self.layoutCheckBox.setObjectName("layoutCheckBox")
 
35
        self.gridlayout.addWidget(self.layoutCheckBox,3,0,1,2)
 
36
 
 
37
        self.protocolCombo = QtGui.QComboBox(SvnOptionsDialog)
 
38
        self.protocolCombo.setObjectName("protocolCombo")
 
39
        self.gridlayout.addWidget(self.protocolCombo,0,1,1,1)
 
40
 
 
41
        self.vcsDirButton = QtGui.QPushButton(SvnOptionsDialog)
 
42
        self.vcsDirButton.setObjectName("vcsDirButton")
 
43
        self.gridlayout.addWidget(self.vcsDirButton,1,2,1,1)
 
44
 
 
45
        self.TextLabel2 = QtGui.QLabel(SvnOptionsDialog)
 
46
        self.TextLabel2.setObjectName("TextLabel2")
 
47
        self.gridlayout.addWidget(self.TextLabel2,1,0,1,1)
 
48
 
 
49
        self.vcsLogEdit = QtGui.QLineEdit(SvnOptionsDialog)
 
50
        self.vcsLogEdit.setObjectName("vcsLogEdit")
 
51
        self.gridlayout.addWidget(self.vcsLogEdit,2,1,1,1)
 
52
 
 
53
        self.textLabel1 = QtGui.QLabel(SvnOptionsDialog)
 
54
        self.textLabel1.setObjectName("textLabel1")
 
55
        self.gridlayout.addWidget(self.textLabel1,0,0,1,1)
 
56
 
 
57
        self.vcsDirectoryEdit = QtGui.QLineEdit(SvnOptionsDialog)
 
58
        self.vcsDirectoryEdit.setObjectName("vcsDirectoryEdit")
 
59
        self.gridlayout.addWidget(self.vcsDirectoryEdit,1,1,1,1)
 
60
        self.vboxlayout.addLayout(self.gridlayout)
 
61
 
 
62
        self.buttonBox = QtGui.QDialogButtonBox(SvnOptionsDialog)
 
63
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
 
64
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.NoButton|QtGui.QDialogButtonBox.Ok)
 
65
        self.buttonBox.setObjectName("buttonBox")
 
66
        self.vboxlayout.addWidget(self.buttonBox)
 
67
        self.TextLabel5.setBuddy(self.vcsLogEdit)
 
68
        self.TextLabel2.setBuddy(self.vcsDirectoryEdit)
 
69
        self.textLabel1.setBuddy(self.protocolCombo)
 
70
 
 
71
        self.retranslateUi(SvnOptionsDialog)
 
72
        QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("accepted()"),SvnOptionsDialog.accept)
 
73
        QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("rejected()"),SvnOptionsDialog.reject)
 
74
        QtCore.QMetaObject.connectSlotsByName(SvnOptionsDialog)
 
75
        SvnOptionsDialog.setTabOrder(self.protocolCombo,self.vcsDirectoryEdit)
 
76
        SvnOptionsDialog.setTabOrder(self.vcsDirectoryEdit,self.vcsDirButton)
 
77
        SvnOptionsDialog.setTabOrder(self.vcsDirButton,self.vcsLogEdit)
 
78
        SvnOptionsDialog.setTabOrder(self.vcsLogEdit,self.layoutCheckBox)
 
79
 
 
80
    def retranslateUi(self, SvnOptionsDialog):
 
81
        SvnOptionsDialog.setWindowTitle(QtGui.QApplication.translate("SvnOptionsDialog", "Repository Infos", None, QtGui.QApplication.UnicodeUTF8))
 
82
        SvnOptionsDialog.setWhatsThis(QtGui.QApplication.translate("SvnOptionsDialog", "<b>Repository Infos Dialog</b>\n"
 
83
        "<p>Enter the various infos into the entry fields. These values are used to generate a new project in the repository. If the checkbox is selected, the URL must end in the project name. A directory tree with project/tags, project/branches and project/trunk will be generated in the repository. If the checkbox is not selected, the URL must contain the complete path in the repository.</p>\n"
 
84
        "<p>For remote repositories the URL must contain the hostname.</p>", None, QtGui.QApplication.UnicodeUTF8))
 
85
        self.TextLabel5.setText(QtGui.QApplication.translate("SvnOptionsDialog", "Log &Message:", None, QtGui.QApplication.UnicodeUTF8))
 
86
        self.layoutCheckBox.setToolTip(QtGui.QApplication.translate("SvnOptionsDialog", "Select, if the standard repository layout (projectdir/trunk, projectdir/tags, projectdir/branches) should be generated", None, QtGui.QApplication.UnicodeUTF8))
 
87
        self.layoutCheckBox.setText(QtGui.QApplication.translate("SvnOptionsDialog", "Create standard repository &layout", None, QtGui.QApplication.UnicodeUTF8))
 
88
        self.layoutCheckBox.setShortcut(QtGui.QApplication.translate("SvnOptionsDialog", "Alt+L", None, QtGui.QApplication.UnicodeUTF8))
 
89
        self.protocolCombo.setToolTip(QtGui.QApplication.translate("SvnOptionsDialog", "Select the protocol to access the repository", None, QtGui.QApplication.UnicodeUTF8))
 
90
        self.vcsDirButton.setToolTip(QtGui.QApplication.translate("SvnOptionsDialog", "Show directory selection dialog", None, QtGui.QApplication.UnicodeUTF8))
 
91
        self.vcsDirButton.setWhatsThis(QtGui.QApplication.translate("SvnOptionsDialog", "<b>VCS-Directory</b>\n"
 
92
        "<p>Select VCS root directory via a directory selection dialog.</p>", None, QtGui.QApplication.UnicodeUTF8))
 
93
        self.vcsDirButton.setText(QtGui.QApplication.translate("SvnOptionsDialog", "...", None, QtGui.QApplication.UnicodeUTF8))
 
94
        self.TextLabel2.setText(QtGui.QApplication.translate("SvnOptionsDialog", "&URL:", None, QtGui.QApplication.UnicodeUTF8))
 
95
        self.vcsLogEdit.setToolTip(QtGui.QApplication.translate("SvnOptionsDialog", "Enter the log message for the new project.", None, QtGui.QApplication.UnicodeUTF8))
 
96
        self.vcsLogEdit.setWhatsThis(QtGui.QApplication.translate("SvnOptionsDialog", "<b>Log Message</b>\n"
 
97
        "<p>Enter the log message to be used for the new project.</p>", None, QtGui.QApplication.UnicodeUTF8))
 
98
        self.vcsLogEdit.setText(QtGui.QApplication.translate("SvnOptionsDialog", "new project started", None, QtGui.QApplication.UnicodeUTF8))
 
99
        self.textLabel1.setText(QtGui.QApplication.translate("SvnOptionsDialog", "&Protocol:", None, QtGui.QApplication.UnicodeUTF8))
 
100
        self.vcsDirectoryEdit.setToolTip(QtGui.QApplication.translate("SvnOptionsDialog", "Enter the name of the VCS directory.", None, QtGui.QApplication.UnicodeUTF8))
 
101
        self.vcsDirectoryEdit.setWhatsThis(QtGui.QApplication.translate("SvnOptionsDialog", "<b>VCS-Directory</b>\n"
 
102
        "<p>Enter the name of the directory, that is the root of the VCS repository to be used. You may select it by pressing the button to the right.</p>", None, QtGui.QApplication.UnicodeUTF8))
 
103
 
 
104
 
 
105
 
 
106
if __name__ == "__main__":
 
107
    import sys
 
108
    app = QtGui.QApplication(sys.argv)
 
109
    SvnOptionsDialog = QtGui.QDialog()
 
110
    ui = Ui_SvnOptionsDialog()
 
111
    ui.setupUi(SvnOptionsDialog)
 
112
    SvnOptionsDialog.show()
 
113
    sys.exit(app.exec_())