Add open automatically codelite at the end of the wizard
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Apr 2009 08:23:27 +0000 (08:23 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Apr 2009 08:23:27 +0000 (08:23 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2614 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BFinalPage.py
wizard/ui/final_page.ui

index db1a68ee3f9b4a5a4dfdc5a10d731491e1a622fe..9fd481d3d020abd0f13ffe6ef8624738feda5747 100644 (file)
@@ -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
index 67c5d6d1fe107b594bd3888faeb65273a52282ac..202de2c6c1a88eac6a5a3c0a22b85d1cabe33240 100644 (file)
@@ -6,40 +6,51 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>400</width>
-    <height>300</height>
+    <width>483</width>
+    <height>206</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>Form</string>
   </property>
-  <layout class="QHBoxLayout" name="horizontalLayout">
+  <layout class="QVBoxLayout" name="verticalLayout">
    <item>
-    <widget class="QLabel" name="iconLabel">
-     <property name="sizePolicy">
-      <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
-       <horstretch>0</horstretch>
-       <verstretch>0</verstretch>
-      </sizepolicy>
-     </property>
-     <property name="text">
-      <string/>
-     </property>
-     <property name="pixmap">
-      <pixmap resource="../bertos.qrc">:/images/ok.png</pixmap>
-     </property>
-    </widget>
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <item>
+      <widget class="QLabel" name="iconLabel">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text">
+        <string/>
+       </property>
+       <property name="pixmap">
+        <pixmap resource="../bertos.qrc">:/images/ok.png</pixmap>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QLabel" name="messageLabel">
+       <property name="frameShadow">
+        <enum>QFrame::Plain</enum>
+       </property>
+       <property name="text">
+        <string>Project created successfully. Now start develop your BeRTOS application!</string>
+       </property>
+       <property name="wordWrap">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+    </layout>
    </item>
    <item>
-    <widget class="QLabel" name="messageLabel">
-     <property name="frameShadow">
-      <enum>QFrame::Plain</enum>
-     </property>
+    <widget class="QCheckBox" name="codeliteCheck">
      <property name="text">
-      <string>Project created successfully. Now start develop your BeRTOS application!</string>
-     </property>
-     <property name="wordWrap">
-      <bool>true</bool>
+      <string>Start CodeLite automatically</string>
      </property>
     </widget>
    </item>