def __init__(self):
BWizardPage.__init__(self, const.UI_LOCATION + "/board_select.ui")
- self.setTitle(self.tr("Select the board from the predefined ones"))
+ self.setTitle(self.tr("Select your development board"))
## Overloaded QWizardPage methods ##
"""
Overload of the BWizardPage connectSignals method.
"""
- self.connect(self.pageContent.boardList, SIGNAL("itemSelectionChanged()"), self.updateUi)
- self.connect(self.pageContent.boardList, SIGNAL("itemSelectionChanged()"), self, SIGNAL("completeChanged()"))
+ self.connect(self.pageContent.boardList, SIGNAL("currentItemChanged(QListWidgetItem*,QListWidgetItem*)"), self.updateUi)
+ self.connect(self.pageContent.boardList, SIGNAL("currentItemChanged(QListWidgetItem*,QListWidgetItem*)"), self, SIGNAL("completeChanged()"))
self.connect(self.pageContent.customButton, SIGNAL("clicked()"), self.customButtonClicked)
def reloadData(self):
@property
def selected(self):
- return self.pageContent.boardList.currentItem()
\ No newline at end of file
+ return self.pageContent.boardList.currentItem()
def __init__(self):
BWizardPage.__init__(self, UI_LOCATION + "/cpu_select.ui")
- self.setTitle(self.tr("Select the CPU"))
+ self.setTitle(self.tr("Select the CPU on your board"))
self.freq_modified = False
## Overloaded QWizardPage methods ##
def __init__(self):
BWizardPage.__init__(self, UI_LOCATION + "/project_creation.ui")
- self.setTitle(self.tr("Settings summary"))
+ self.setTitle(self.tr("Project summary"))
+ self.setSubTitle(self.tr("Your project is ready to be created. Review your selections and press the \"Create\" button"))
self._completed = False
## Overloaded BWizardPage methods ##
toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([version]))
toolchain_path = QTreeWidgetItem(toolchain_title, QStringList([self.tr("path: " + os.path.normpath(toolchain_info["path"]))]))
top_level.append(toolchain_title)
- module_title = QTreeWidgetItem(QStringList([self.tr("Modules")]))
+ module_title = QTreeWidgetItem(QStringList([self.tr("Selected modules")]))
configurations = self.projectInfo("CONFIGURATIONS")
module_categories = {}
for module, information in self.projectInfo("MODULES").items():
for item in top_level:
self.pageContent.summaryTree.expandItem(item)
- ####
\ No newline at end of file
+ ####
def __init__(self):
BWizardPage.__init__(self, UI_LOCATION + "/final_page.ui")
- self.setTitle(self.tr("Project created successfully"))
+ self.setTitle(self.tr("Project created successfully!"))
## Overloaded BWizardPage methods ##
to_be_opened.append(plugin)
self.setProjectInfo("TO_BE_OPENED", to_be_opened)
- ####
\ No newline at end of file
+ ####
# Set the row count to the current index + 1
self.pageContent.propertyTable.setRowCount(index + 1)
item = QTableWidgetItem(configurations[property]["brief"])
- item.setFlags(Qt.NoItemFlags)
+ item.setFlags(item.flags() & ~Qt.ItemIsSelectable)
item.setToolTip(property)
item.setData(Qt.UserRole, qvariant_converter.convertString(property))
self.pageContent.propertyTable.setItem(index, 0, item)
preset_tree = self.projectInfo("PRESET_TREE")
preset_list = preset_tree["children"][preset_path]["children"]
preset_list = sorted(preset_list.values(), _cmp)
- self.setTitle(self.tr("Select the template/demo for %1").arg(preset_tree["children"][preset_path]["info"].get("name", preset_tree["children"][preset_path]["info"]["filename"])))
+ self.setTitle(self.tr("Select the project template for %1").arg(preset_tree["children"][preset_path]["info"].get("name", preset_tree["children"][preset_path]["info"]["filename"])))
self.setupTabs(preset_list)
def connectSignals(self):
current_widget = self.pageContent.boardTabWidget.currentWidget()
return current_widget.preset_data["children"][self.selected_path]
else:
- return None
\ No newline at end of file
+ return None
def __init__(self):
BWizardPage.__init__(self, UI_LOCATION + "/toolchain_select.ui")
self.setTitle(self.tr("Select toolchain"))
- self._validation_process = None
+ self.setSubTitle(self.tr("You can look for more toolchains in your system by pressing the \"Search\" button, or manually add them with the \"+\" button"))
self._valid_items = []
self._toolchain_manager = ToolchainManager()
def __init__(self, edit=False):
self._edit = edit
BWizardPage.__init__(self, UI_LOCATION + "/bertos_versions.ui")
- self.setTitle(self.tr("Select the BeRTOS directory"))
- self.setSubTitle(self.tr("The project created will be based on the BeRTOS version found"))
+ self.setTitle(self.tr("Select BeRTOS version"))
+ self.setSubTitle(self.tr("Your project will be created with the specified BeRTOS version"))
## Overloaded QWizardPage methods ##
</layout>
</item>
<item>
- <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1,0">
- <item>
- <spacer name="horizontalSpacer">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
+ <layout class="QHBoxLayout" name="horizontalLayout" stretch="1">
<item>
<widget class="QPushButton" name="customButton">
<property name="toolTip">
<string><p><strong>Custom board project </strong>- select me when your board is not present into the list above.</p></string>
</property>
<property name="text">
- <string>Custom Board</string>
+ <string>I have a custom board...</string>
</property>
</widget>
</item>
- <item>
- <spacer name="horizontalSpacer_2">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
</layout>
</item>
</layout>
<enum>QFrame::Plain</enum>
</property>
<property name="text">
- <string>Project created successfully. Now start to develop your BeRTOS application!</string>
+ <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;">
+<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Project created successfully!</span></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p>
+<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">You can now start developing your application.</p></body></html></string>
+ </property>
+ <property name="textFormat">
+ <enum>Qt::RichText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
<rect>
<x>0</x>
<y>0</y>
- <width>556</width>
- <height>76</height>
+ <width>564</width>
+ <height>82</height>
</rect>
</property>
</widget>
</sizepolicy>
</property>
<property name="text">
- <string>Search in PATH</string>
+ <string>Search in the system PATH</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
- <string>Custom directories</string>
+ <string>Additional search directories:</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>