# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/phil/work/releaseforge/modules/releaseWizardBA.ui'
#
# Created: Sun Mar 13 16:29:47 2005
# by: The PyQt User Interface Compiler (pyuic) 3.13
#
# WARNING! All changes made in this file will be lost!
from qt import *
from qttable import QTable
class ReleaseWizardBA(QWizard):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
QWizard.__init__(self,parent,name,modal,fl)
if not name:
self.setName("ReleaseWizardBA")
self.setModal(0)
self.infoPage = QWidget(self,"infoPage")
infoPageLayout = QGridLayout(self.infoPage,1,1,11,6,"infoPageLayout")
layout8 = QGridLayout(None,1,1,0,6,"layout8")
self.groupBox3 = QGroupBox(self.infoPage,"groupBox3")
self.groupBox3.setColumnLayout(0,Qt.Vertical)
self.groupBox3.layout().setSpacing(6)
self.groupBox3.layout().setMargin(11)
groupBox3Layout = QHBoxLayout(self.groupBox3.layout())
groupBox3Layout.setAlignment(Qt.AlignTop)
self.newReleaseNameLineEdit = QLineEdit(self.groupBox3,"newReleaseNameLineEdit")
self.newReleaseNameLineEdit.setMaxLength(255)
groupBox3Layout.addWidget(self.newReleaseNameLineEdit)
layout8.addWidget(self.groupBox3,0,0)
self.groupBox5 = QGroupBox(self.infoPage,"groupBox5")
self.groupBox5.setColumnLayout(0,Qt.Vertical)
self.groupBox5.layout().setSpacing(6)
self.groupBox5.layout().setMargin(11)
groupBox5Layout = QGridLayout(self.groupBox5.layout())
groupBox5Layout.setAlignment(Qt.AlignTop)
self.releaseNotifyCheckBox = QCheckBox(self.groupBox5,"releaseNotifyCheckBox")
self.releaseNotifyCheckBox.setChecked(1)
groupBox5Layout.addWidget(self.releaseNotifyCheckBox,0,0)
layout8.addWidget(self.groupBox5,0,1)
infoPageLayout.addLayout(layout8,0,0)
self.groupBox2 = QGroupBox(self.infoPage,"groupBox2")
self.groupBox2.setColumnLayout(0,Qt.Vertical)
self.groupBox2.layout().setSpacing(6)
self.groupBox2.layout().setMargin(11)
groupBox2Layout = QGridLayout(self.groupBox2.layout())
groupBox2Layout.setAlignment(Qt.AlignTop)
layout3 = QHBoxLayout(None,0,6,"layout3")
spacer1_2 = QSpacerItem(211,26,QSizePolicy.Expanding,QSizePolicy.Minimum)
layout3.addItem(spacer1_2)
self.textLabel2_2 = QLabel(self.groupBox2,"textLabel2_2")
layout3.addWidget(self.textLabel2_2)
self.releaseNotesPushButton = QPushButton(self.groupBox2,"releaseNotesPushButton")
self.releaseNotesPushButton.setSizePolicy(QSizePolicy(0,0,0,0,self.releaseNotesPushButton.sizePolicy().hasHeightForWidth()))
self.releaseNotesPushButton.setToggleButton(1)
layout3.addWidget(self.releaseNotesPushButton)
groupBox2Layout.addLayout(layout3,0,0)
self.releaseNotesTextEdit = QTextEdit(self.groupBox2,"releaseNotesTextEdit")
self.releaseNotesTextEdit.setSizePolicy(QSizePolicy(7,7,0,0,self.releaseNotesTextEdit.sizePolicy().hasHeightForWidth()))
self.releaseNotesTextEdit.setTextFormat(QTextEdit.PlainText)
groupBox2Layout.addWidget(self.releaseNotesTextEdit,1,0)
infoPageLayout.addWidget(self.groupBox2,1,0)
self.groupBox1 = QGroupBox(self.infoPage,"groupBox1")
self.groupBox1.setColumnLayout(0,Qt.Vertical)
self.groupBox1.layout().setSpacing(6)
self.groupBox1.layout().setMargin(11)
groupBox1Layout = QVBoxLayout(self.groupBox1.layout())
groupBox1Layout.setAlignment(Qt.AlignTop)
layout2 = QHBoxLayout(None,0,6,"layout2")
spacer1 = QSpacerItem(211,26,QSizePolicy.Expanding,QSizePolicy.Minimum)
layout2.addItem(spacer1)
self.textLabel2 = QLabel(self.groupBox1,"textLabel2")
layout2.addWidget(self.textLabel2)
self.changeLogPushButton = QPushButton(self.groupBox1,"changeLogPushButton")
self.changeLogPushButton.setEnabled(1)
self.changeLogPushButton.setSizePolicy(QSizePolicy(0,0,0,0,self.changeLogPushButton.sizePolicy().hasHeightForWidth()))
self.changeLogPushButton.setToggleButton(1)
self.changeLogPushButton.setFlat(0)
layout2.addWidget(self.changeLogPushButton)
groupBox1Layout.addLayout(layout2)
self.changeLogTextEdit = QTextEdit(self.groupBox1,"changeLogTextEdit")
self.changeLogTextEdit.setSizePolicy(QSizePolicy(7,7,0,0,self.changeLogTextEdit.sizePolicy().hasHeightForWidth()))
self.changeLogTextEdit.setTextFormat(QTextEdit.PlainText)
self.changeLogTextEdit.setWordWrap(QTextEdit.WidgetWidth)
groupBox1Layout.addWidget(self.changeLogTextEdit)
infoPageLayout.addWidget(self.groupBox1,2,0)
self.addPage(self.infoPage,QString(""))
self.filesPage = QWidget(self,"filesPage")
filesPageLayout = QGridLayout(self.filesPage,1,1,11,6,"filesPageLayout")
self.releaseFilesTable = QTable(self.filesPage,"releaseFilesTable")
self.releaseFilesTable.setNumCols(self.releaseFilesTable.numCols() + 1)
self.releaseFilesTable.horizontalHeader().setLabel(self.releaseFilesTable.numCols() - 1,self.__tr("Filename"))
self.releaseFilesTable.setNumCols(self.releaseFilesTable.numCols() + 1)
self.releaseFilesTable.horizontalHeader().setLabel(self.releaseFilesTable.numCols() - 1,self.__tr("Processor"))
self.releaseFilesTable.setNumCols(self.releaseFilesTable.numCols() + 1)
self.releaseFilesTable.horizontalHeader().setLabel(self.releaseFilesTable.numCols() - 1,self.__tr("File Type"))
self.releaseFilesTable.setNumCols(self.releaseFilesTable.numCols() + 1)
self.releaseFilesTable.horizontalHeader().setLabel(self.releaseFilesTable.numCols() - 1,self.__tr("Full Path"))
self.releaseFilesTable.setNumRows(0)
self.releaseFilesTable.setNumCols(4)
self.releaseFilesTable.setReadOnly(0)
self.releaseFilesTable.setSelectionMode(QTable.MultiRow)
filesPageLayout.addWidget(self.releaseFilesTable,1,0)
layout5 = QHBoxLayout(None,0,6,"layout5")
self.textLabel1_2 = QLabel(self.filesPage,"textLabel1_2")
layout5.addWidget(self.textLabel1_2)
spacer3 = QSpacerItem(31,21,QSizePolicy.Expanding,QSizePolicy.Minimum)
layout5.addItem(spacer3)
self.addFilesPushButton = QPushButton(self.filesPage,"addFilesPushButton")
self.addFilesPushButton.setToggleButton(1)
layout5.addWidget(self.addFilesPushButton)
filesPageLayout.addLayout(layout5,0,0)
layout6 = QHBoxLayout(None,0,6,"layout6")
self.textLabel1_3 = QLabel(self.filesPage,"textLabel1_3")
layout6.addWidget(self.textLabel1_3)
spacer4 = QSpacerItem(61,16,QSizePolicy.Expanding,QSizePolicy.Minimum)
layout6.addItem(spacer4)
self.processorComboBox = QComboBox(0,self.filesPage,"processorComboBox")
self.processorComboBox.setEnabled(0)
layout6.addWidget(self.processorComboBox)
filesPageLayout.addLayout(layout6,2,0)
self.addPage(self.filesPage,QString(""))
self.WizardPage = QWidget(self,"WizardPage")
WizardPageLayout = QGridLayout(self.WizardPage,1,1,11,6,"WizardPageLayout")
self.groupBox6 = QGroupBox(self.WizardPage,"groupBox6")
self.groupBox6.setColumnLayout(0,Qt.Vertical)
self.groupBox6.layout().setSpacing(6)
self.groupBox6.layout().setMargin(11)
groupBox6Layout = QVBoxLayout(self.groupBox6.layout())
groupBox6Layout.setAlignment(Qt.AlignTop)
self.createReleaseTextLabel = QLabel(self.groupBox6,"createReleaseTextLabel")
self.createReleaseTextLabel.setEnabled(0)
createReleaseTextLabel_font = QFont(self.createReleaseTextLabel.font())
self.createReleaseTextLabel.setFont(createReleaseTextLabel_font)
groupBox6Layout.addWidget(self.createReleaseTextLabel)
self.uploadFilesTextLabel = QLabel(self.groupBox6,"uploadFilesTextLabel")
self.uploadFilesTextLabel.setEnabled(0)
groupBox6Layout.addWidget(self.uploadFilesTextLabel)
self.changeLogTextLabel = QLabel(self.groupBox6,"changeLogTextLabel")
self.changeLogTextLabel.setEnabled(0)
groupBox6Layout.addWidget(self.changeLogTextLabel)
self.releaseNotesTextLabel = QLabel(self.groupBox6,"releaseNotesTextLabel")
self.releaseNotesTextLabel.setEnabled(0)
groupBox6Layout.addWidget(self.releaseNotesTextLabel)
self.selectFilesTextLabel = QLabel(self.groupBox6,"selectFilesTextLabel")
self.selectFilesTextLabel.setEnabled(0)
groupBox6Layout.addWidget(self.selectFilesTextLabel)
self.fileAttribTextLabel = QLabel(self.groupBox6,"fileAttribTextLabel")
self.fileAttribTextLabel.setEnabled(0)
groupBox6Layout.addWidget(self.fileAttribTextLabel)
self.notifyTextLabel = QLabel(self.groupBox6,"notifyTextLabel")
self.notifyTextLabel.setEnabled(0)
groupBox6Layout.addWidget(self.notifyTextLabel)
WizardPageLayout.addWidget(self.groupBox6,0,0)
spacer7 = QSpacerItem(16,40,QSizePolicy.Minimum,QSizePolicy.Expanding)
WizardPageLayout.addItem(spacer7,1,0)
self.groupBox7 = QGroupBox(self.WizardPage,"groupBox7")
self.groupBox7.setColumnLayout(0,Qt.Vertical)
self.groupBox7.layout().setSpacing(6)
self.groupBox7.layout().setMargin(11)
groupBox7Layout = QGridLayout(self.groupBox7.layout())
groupBox7Layout.setAlignment(Qt.AlignTop)
self.progressBar = QProgressBar(self.groupBox7,"progressBar")
groupBox7Layout.addWidget(self.progressBar,1,0)
self.progressTextLabel = QLabel(self.groupBox7,"progressTextLabel")
self.progressTextLabel.setSizePolicy(QSizePolicy(0,5,0,0,self.progressTextLabel.sizePolicy().hasHeightForWidth()))
self.progressTextLabel.setMinimumSize(QSize(470,0))
groupBox7Layout.addWidget(self.progressTextLabel,0,0)
WizardPageLayout.addWidget(self.groupBox7,2,0)
spacer8 = QSpacerItem(11,51,QSizePolicy.Minimum,QSizePolicy.Expanding)
WizardPageLayout.addItem(spacer8,3,0)
self.addPage(self.WizardPage,QString(""))
self.languageChange()
self.resize(QSize(529,602).expandedTo(self.minimumSizeHint()))
self.clearWState(Qt.WState_Polished)
self.connect(self.changeLogPushButton,SIGNAL("clicked()"),self.importChangeLog)
self.connect(self.releaseNotesPushButton,SIGNAL("clicked()"),self.importReleaseNotes)
self.connect(self.newReleaseNameLineEdit,SIGNAL("textChanged(const QString&)"),self.releaseNameEdited)
self.connect(self.addFilesPushButton,SIGNAL("pressed()"),self.addFiles)
self.connect(self.processorComboBox,SIGNAL("activated(const QString&)"),self.updateProcessor)
def languageChange(self):
self.setCaption(self.__tr("Create New Release"))
self.groupBox3.setTitle(self.__tr("Release Name"))
self.groupBox5.setTitle(self.__tr("Notify"))
self.releaseNotifyCheckBox.setText(self.__tr("Email Release Notification"))
self.groupBox2.setTitle(self.__tr("Release Notes"))
self.textLabel2_2.setText(self.__tr("Import Release Notes"))
self.releaseNotesPushButton.setText(self.__tr("..."))
self.groupBox1.setTitle(self.__tr("Change Log"))
self.textLabel2.setText(self.__tr("Import Change Log"))
self.changeLogPushButton.setText(self.__tr("..."))
self.setTitle(self.infoPage,self.__tr("New Release Information"))
self.releaseFilesTable.horizontalHeader().setLabel(0,self.__tr("Filename"))
self.releaseFilesTable.horizontalHeader().setLabel(1,self.__tr("Processor"))
self.releaseFilesTable.horizontalHeader().setLabel(2,self.__tr("File Type"))
self.releaseFilesTable.horizontalHeader().setLabel(3,self.__tr("Full Path"))
self.textLabel1_2.setText(self.__tr("Select files to include in your new release"))
self.addFilesPushButton.setText(self.__tr("Add Files"))
self.textLabel1_3.setText(self.__tr("Set Processor for all files"))
self.processorComboBox.clear()
self.processorComboBox.insertItem(self.__tr("Choose..."))
self.setTitle(self.filesPage,self.__tr("File Selection"))
self.groupBox6.setTitle(self.__tr("Action"))
self.createReleaseTextLabel.setText(self.__tr("Create Release"))
self.uploadFilesTextLabel.setText(self.__tr("Upload Files"))
self.changeLogTextLabel.setText(self.__tr("Upload Change Log"))
self.releaseNotesTextLabel.setText(self.__tr("Upload Release Notes"))
self.selectFilesTextLabel.setText(self.__tr("Select Files"))
self.fileAttribTextLabel.setText(self.__tr("Set File Attributes"))
self.notifyTextLabel.setText(self.__tr("Email Release Notification"))
self.groupBox7.setTitle(self.__tr("Progress"))
self.progressTextLabel.setText(QString.null)
self.setTitle(self.WizardPage,self.__tr("Release Creation Progress"))
def importChangeLog(self):
print "ReleaseWizardBA.importChangeLog(): Not implemented yet"
def importReleaseNotes(self):
print "ReleaseWizardBA.importReleaseNotes(): Not implemented yet"
def releaseNameEdited(self):
print "ReleaseWizardBA.releaseNameEdited(): Not implemented yet"
def addFiles(self):
print "ReleaseWizardBA.addFiles(): Not implemented yet"
def updateProcessor(self):
print "ReleaseWizardBA.updateProcessor(): Not implemented yet"
def __tr(self,s,c = None):
return qApp.translate("ReleaseWizardBA",s,c)
|