import os
+from PyQt4.QtCore import *
from PyQt4.QtGui import *
from BWizardPage import *
import bertos_utils
"""
Resolves the selection dependencies.
"""
+ qApp.setOverrideCursor(Qt.WaitCursor)
modules = self.projectInfo("MODULES")
modules[selectedModule]["enabled"] = True
self.setProjectInfo("MODULES", modules)
self.setBold(item.child(child), True)
self.setBold(item, True)
item.child(child).setCheckState(0, Qt.Checked)
+ qApp.restoreOverrideCursor()
def moduleUnselected(self, unselectedModule):
"""
Resolves the unselection dependencies.
"""
+ qApp.setOverrideCursor(Qt.WaitCursor)
modules = self.projectInfo("MODULES")
modules[unselectedModule]["enabled"] = False
self.setProjectInfo("MODULES", modules)
message.append(QString(param_list))
message_str = QStringList(message).join(" ")
message_str.append(self.tr("\n\nDo you want to automatically fix these conflicts?"))
+ qApp.restoreOverrideCursor()
choice = QMessageBox.warning(self, self.tr("Dependency error"), message_str, QMessageBox.Yes | QMessageBox.No, QMessageBox.Yes)
+ qApp.setOverrideCursor(Qt.WaitCursor)
if choice == QMessageBox.Yes:
for module in unsatisfied:
modules = self.projectInfo("MODULES")
configurations = self.projectInfo("CONFIGURATIONS")
configurations[configuration_file][param]["value"] = "0"
self.setProjectInfo("CONFIGURATIONS", configurations)
+ qApp.restoreOverrideCursor()
def selectDependencyCheck(self, module):
"""