self.setTitle(self.tr("Create the BeRTOS project"))
self._setupUi()
self._connectSignals()
+ self._completed = False
+
+ def reloadData(self):
+ self._completed = False
+ self._setupUi()
def _setupUi(self):
self._confirmGroup = QWidgetGroup(self.pageContent.summaryTree,
self.pageContent.createButton)
- self._workingGroup = QWidgetGroup(self.pageContent.spinnerLabel)
- self._workingGroup.setVisible(False)
self._finalGroup = QWidgetGroup(self.pageContent.iconLabel,
self.pageContent.textLabel)
self._finalGroup.setVisible(False)
def _createProject(self):
self._confirmGroup.setVisible(False)
- #self._workingGroup.setVisible(True)
- #self._movie = QMovie("images/load_spinner.gif")
- #print self._movie.isValid()
- #self.pageContent.spinnerLabel.setMovie(self._movie)
- #self._movie.start()
bertos_utils.createBertosProject(self.wizard().project())
- #del self._movie
- #self._workingGroup.setVisible(False)
self._finalGroup.setVisible(True)
+ self._completed = True
self.emit(SIGNAL("completeChanged()"))
def isComplete(self):
- return self._finalGroup.isVisible()
+ return self._completed
class QWidgetGroup(QObject):
"""
def newProject():
wizard = BWizard.BWizard()
wizard.show()
- if wizard.exec_():
- prj = wizard.project()
- output = prj.info("OUTPUT")
- if output == "makefile":
- ## Now only supports the BeRTOS build system
- bertos_utils.createBertosProject(prj)
+ wizard.exec_()
def editProject():
print "editProject"
</item>
</layout>
</item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_2" >
- <item>
- <spacer name="horizontalSpacer_2" >
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0" >
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QLabel" name="spinnerLabel" >
- <property name="text" >
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_3" >
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0" >
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3" >
<item>