X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBVersionPage.py;h=f5e9099d5a1cd53609700a4e489242d0f965b77e;hb=002be776674998624dbf4abc7eb38b871f3a0da6;hp=752ace0efd89ed7fd798a5c0b25d317f24e37f43;hpb=aeeabf9cf483f9729f324baa2d50855e54bc0201;p=bertos.git diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index 752ace0e..f5e9099d 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -20,7 +20,7 @@ class BVersionPage(BWizardPage): self._connectSignals() self._fillVersionList() self._setupUi() - self.setTitle(self.tr("Select the beRTOS version needed")) + self.setTitle(self.tr("Select the BeRTOS version needed")) def _connectSignals(self): self.connect(self.pageContent.versionList, SIGNAL("itemClicked(QListWidgetItem *)"), self.itemClicked) @@ -58,20 +58,25 @@ class BVersionPage(BWizardPage): for directory in versions: self._insertListElement(directory.toString()) + def isComplete(self): + return self.pageContent.versionList.currentRow() != -1 + def addVersion(self): directory = QFileDialog.getExistingDirectory(self, self.tr("Choose a directory"), "", QFileDialog.ShowDirsOnly | QFileDialog.DontResolveSymlinks) if not directory.isEmpty(): self._storeVersion(directory) self.pageContent.versionList.clear() self._fillVersionList() + self.emit(SIGNAL("completeChanged()")) def removeVersion(self): item = self.pageContent.versionList.takeItem(self.pageContent.versionList.currentRow()) self._deleteVersion(item.data(Qt.UserRole).toString()) + self.emit(SIGNAL("completeChanged()")) def updateClicked(self): print "fake update checking" def itemClicked(self, item): - print "clicked", repr(item) + self.emit(SIGNAL("completeChanged()")) \ No newline at end of file