Add the folder selection wizard page
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 16 Dec 2008 14:53:30 +0000 (14:53 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 16 Dec 2008 14:53:30 +0000 (14:53 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2043 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BFolderPage.py [new file with mode: 0644]
wizard/dir_select.ui [new file with mode: 0644]

diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py
new file mode 100644 (file)
index 0000000..e359b59
--- /dev/null
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+# encoding: utf-8
+#
+# Copyright 2008 Develer S.r.l. (http://www.develer.com/)
+# All rights reserved.
+#
+# $Id:$
+#
+# Author: Lorenzo Berni <duplo@develer.com>
+#
+
+from PyQt4.QtGui import *
+from BWizardPage import *
+import bertos_utils
+
+class BFolderPage(BWizardPage):
+    
+    def __init__(self):
+        BWizardPage.__init__(self, "dir_select.ui")
+        self.setTitle(self.tr("Select the BeRTOS version needed"))
\ No newline at end of file
diff --git a/wizard/dir_select.ui b/wizard/dir_select.ui
new file mode 100644 (file)
index 0000000..3fcc5b6
--- /dev/null
@@ -0,0 +1,112 @@
+<ui version="4.0" >
+ <class>Form</class>
+ <widget class="QWidget" name="Form" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>367</width>
+    <height>88</height>
+   </rect>
+  </property>
+  <property name="sizePolicy" >
+   <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
+    <horstretch>0</horstretch>
+    <verstretch>0</verstretch>
+   </sizepolicy>
+  </property>
+  <property name="windowTitle" >
+   <string>Form</string>
+  </property>
+  <layout class="QHBoxLayout" name="horizontalLayout_3" >
+   <item>
+    <layout class="QVBoxLayout" name="verticalLayout_2" >
+     <item>
+      <widget class="QLabel" name="label" >
+       <property name="text" >
+        <string>Project Name</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QLabel" name="label_2" >
+       <property name="text" >
+        <string>Destination directory</string>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+   <item>
+    <layout class="QVBoxLayout" name="verticalLayout" >
+     <item>
+      <layout class="QHBoxLayout" name="horizontalLayout_2" >
+       <item>
+        <widget class="QLineEdit" name="lineEdit" />
+       </item>
+       <item>
+        <spacer name="horizontalSpacer" >
+         <property name="orientation" >
+          <enum>Qt::Horizontal</enum>
+         </property>
+         <property name="sizeHint" stdset="0" >
+          <size>
+           <width>40</width>
+           <height>20</height>
+          </size>
+         </property>
+        </spacer>
+       </item>
+      </layout>
+     </item>
+     <item>
+      <layout class="QHBoxLayout" name="horizontalLayout" >
+       <item>
+        <widget class="QLineEdit" name="lineEdit_2" />
+       </item>
+       <item>
+        <widget class="QToolButton" name="toolButton" >
+         <property name="sizePolicy" >
+          <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
+           <horstretch>26</horstretch>
+           <verstretch>26</verstretch>
+          </sizepolicy>
+         </property>
+         <property name="minimumSize" >
+          <size>
+           <width>26</width>
+           <height>26</height>
+          </size>
+         </property>
+         <property name="maximumSize" >
+          <size>
+           <width>26</width>
+           <height>26</height>
+          </size>
+         </property>
+         <property name="text" >
+          <string/>
+         </property>
+         <property name="icon" >
+          <iconset resource="bertos.qrc" >
+           <normaloff>:/images/folderopen.png</normaloff>:/images/folderopen.png</iconset>
+         </property>
+         <property name="iconSize" >
+          <size>
+           <width>26</width>
+           <height>26</height>
+          </size>
+         </property>
+        </widget>
+       </item>
+      </layout>
+     </item>
+    </layout>
+   </item>
+  </layout>
+ </widget>
+ <resources>
+  <include location="bertos.qrc" />
+ </resources>
+ <connections/>
+</ui>