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
18 class BStartPage(QDialog):
21 QDialog.__init__(self)
24 self.setWindowTitle(self.tr("Create or edit a BeRTOS project"))
25 self.initializeButtons()
28 self.content = uic.loadUi(UI_LOCATION + "/start.ui", None)
29 self.setWindowIcon(QIcon(":/images/appicon.png"))
30 layout = QVBoxLayout()
31 layout.addWidget(self.content)
32 self.setLayout(layout)
34 def connectSignals(self):
35 self.connect(self.content.newButton, SIGNAL("clicked()"), self.newProject)
36 self.connect(self.content.editButton, SIGNAL("clicked()"), self.editProject)
38 def initializeButtons(self):
39 self.button_group = QButtonGroup()
40 self.button_group.addButton(self.content.newButton)
41 self.button_group.addButton(self.content.editButton)
42 self.button_group.setExclusive(True)
46 self.emit(SIGNAL("newProject"))
48 def editProject(self):
50 self.emit(SIGNAL("editProject"))