#!/usr/bin/env python
# encoding: utf-8
#
-# This file is part of slimqc.
+# This file is part of bertos.
#
# Bertos is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
from BWizardPage import BWizardPage
+from BCpuPage import BCpuPage
+from BOutputPage import BOutputPage
+from BRoutePage import BRoutePage
+
import const
import qvariant_converter
from bertos_utils import presetList
"""
return False
+ def nextId(self):
+ """
+ Overload of the QWizardPage nextId method.
+ """
+ return self.wizard().pageIndex(BRoutePage)
+
####
## Overloaded BWizardPage methods ##
"""
Overload of the BWizardPage connectSignals method.
"""
- self.connect(self.pageContent.boardList, SIGNAL('itemSelectionChanged()'), self.itemSelectionChanged)
+ pass
def reloadData(self):
"""
Overload of the BWizardPage reloadData method.
"""
- presets = presetList("/Users/duplo/Development/bertos")
- self.setProjectInfo("PRESETS", presets)
- self.populatePresetList()
-
- def populatePresetList(self):
- presets = self.projectInfo("PRESETS")
- for preset, info in presets.items():
- board_list = self.pageContent.boardList
- item = QListWidgetItem(info["name"], board_list)
- item.setData(Qt.UserRole, qvariant_converter.convertString(preset))
- if self._last_selected == preset:
- self.pageContent.boardList.setCurrentItem(item)
- if not self._last_selected and self.pageContent.boardList.count():
- self.pageContent.boardList.setCurrentRow(0)
+ pass
####
## Slots ##
- def itemSelectionChanged(self):
- preset_path = qvariant_converter.getString(self.pageContent.boardList.currentItem().data(Qt.UserRole))
- presets = self.projectInfo("PRESETS")
- selected_preset = presets[preset_path]
- self.pageContent.descriptionLabel.setText(selected_preset['description'])
- self._last_selected = preset_path
####
+