From 8612a8120e0068faa07b0678f869b64d013baac5 Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 22 Apr 2009 08:23:27 +0000 Subject: [PATCH] Add open automatically codelite at the end of the wizard git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2614 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BFinalPage.py | 13 +++++++++ wizard/ui/final_page.ui | 61 ++++++++++++++++++++++++----------------- 2 files changed, 49 insertions(+), 25 deletions(-) diff --git a/wizard/BFinalPage.py b/wizard/BFinalPage.py index db1a68ee..9fd481d3 100644 --- a/wizard/BFinalPage.py +++ b/wizard/BFinalPage.py @@ -36,5 +36,18 @@ class BFinalPage(BWizardPage): QApplication.instance().setOverrideCursor(Qt.WaitCursor) bertos_utils.createBertosProject(self.project()) QApplication.instance().restoreOverrideCursor() + if os.name == "nt": + output = self.projectInfo("OUTPUT") + import winreg_importer + command_lines = winreg_importer.getCommandLines() + if "codelite" in output and "codelite" in command_lines: + self.pageContent.codeliteCheck.setVisible(True) + + + def setupUi(self): + """ + Overload of the BWizardPage setupUi method. + """ + self.pageContent.codeliteCheck.setVisible(False) #### \ No newline at end of file diff --git a/wizard/ui/final_page.ui b/wizard/ui/final_page.ui index 67c5d6d1..202de2c6 100644 --- a/wizard/ui/final_page.ui +++ b/wizard/ui/final_page.ui @@ -6,40 +6,51 @@ 0 0 - 400 - 300 + 483 + 206 Form - + - - - - 0 - 0 - - - - - - - :/images/ok.png - - + + + + + + 0 + 0 + + + + + + + :/images/ok.png + + + + + + + QFrame::Plain + + + Project created successfully. Now start develop your BeRTOS application! + + + true + + + + - - - QFrame::Plain - + - Project created successfully. Now start develop your BeRTOS application! - - - true + Start CodeLite automatically -- 2.25.1