module = self._currentModule()
self._controlGroup.clear()
configuration = self._projectInfoRetrieve("MODULES")[module]["configuration"]
+ moduleDescription = self._projectInfoRetrieve("MODULES")[module]["description"]
+ self.pageContent.moduleLabel.setText(moduleDescription)
+ self.pageContent.moduleLabel.setVisible(True)
self.pageContent.propertyTable.clear()
if len(configuration) > 0:
configurations = self._projectInfoRetrieve("CONFIGURATIONS")[configuration]
- self.pageContent.propertyTable.setRowCount(len(configurations))
+ self.pageContent.propertyTable.setRowCount(len(configurations) + 1)
for index, property in enumerate(configurations):
item = QTableWidgetItem(property)
item.setData(Qt.UserRole, qvariant_converter.convertString(property))
self.pageContent.propertyTable.verticalHeader().setVisible(False)
self.pageContent.propertyTable.setColumnCount(2)
self.pageContent.propertyTable.setRowCount(0)
+ self.pageContent.moduleLabel.setVisible(False)
def _connectSignals(self):
self.connect(self.pageContent.moduleTable, SIGNAL("itemSelectionChanged()"), self._fillPropertyTable)
"configuration": WIZARD_MODULE["configuration"],
"description": "",
"enabled": False}
+ index = comment.find("\\brief")
+ if index != -1:
+ description = comment[index + 7:]
+ description = description[:description.find(" * ")]
+ moduleInfos[WIZARD_MODULE["name"]]["description"] = description
return moduleInfos
return {}
except SyntaxError:
<rect>
<x>0</x>
<y>0</y>
- <width>559</width>
- <height>412</height>
+ <width>621</width>
+ <height>428</height>
</rect>
</property>
<property name="sizePolicy" >
</layout>
</item>
<item>
- <widget class="QTableWidget" name="propertyTable" >
- <property name="editTriggers" >
- <set>QAbstractItemView::NoEditTriggers</set>
- </property>
- <property name="selectionMode" >
- <enum>QAbstractItemView::SingleSelection</enum>
- </property>
- <property name="selectionBehavior" >
- <enum>QAbstractItemView::SelectRows</enum>
- </property>
- <property name="showGrid" >
- <bool>false</bool>
- </property>
- </widget>
+ <layout class="QVBoxLayout" name="verticalLayout_2" >
+ <item>
+ <widget class="QLabel" name="moduleLabel" >
+ <property name="text" >
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QTableWidget" name="propertyTable" >
+ <property name="editTriggers" >
+ <set>QAbstractItemView::NoEditTriggers</set>
+ </property>
+ <property name="selectionMode" >
+ <enum>QAbstractItemView::SingleSelection</enum>
+ </property>
+ <property name="selectionBehavior" >
+ <enum>QAbstractItemView::SelectRows</enum>
+ </property>
+ <property name="showGrid" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
</layout>
</widget>