4 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
9 # Author: Lorenzo Berni <duplo@develer.com>
12 from PyQt4.QtCore import *
13 from PyQt4.QtGui import *
14 import PyQt4.uic as uic
17 from version import wizard_version
19 class BStartPage(QDialog):
22 QDialog.__init__(self)
25 self.setWindowTitle(self.tr("Create or edit a BeRTOS project - rev.%1").arg(wizard_version))
26 self.initializeButtons()
29 self.content = uic.loadUi(UI_LOCATION + "/start.ui", None)
30 self.setWindowIcon(QIcon(":/images/appicon.png"))
31 layout = QVBoxLayout()
32 layout.addWidget(self.content)
33 self.setLayout(layout)
35 def connectSignals(self):
36 self.connect(self.content.newButton, SIGNAL("clicked()"), self.newProject)
37 self.connect(self.content.editButton, SIGNAL("clicked()"), self.editProject)
39 def initializeButtons(self):
40 self.button_group = QButtonGroup()
41 self.button_group.addButton(self.content.newButton)
42 self.button_group.addButton(self.content.editButton)
43 self.button_group.setExclusive(True)
47 self.emit(SIGNAL("newProject"))
49 def editProject(self):
51 self.emit(SIGNAL("editProject"))