From ed0d4c55052f6f98007ea0e91e6c90fe8809425a Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 23 Oct 2009 10:18:47 +0000 Subject: [PATCH] Add introduction page. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3093 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BIntroPage.py | 62 ++++++++++++++++++++++++ wizard/bertos.py | 3 +- wizard/bertos.qrc | 1 + wizard/images/logo.png | Bin 0 -> 37100 bytes wizard/ui/intro_page.ui | 105 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 170 insertions(+), 1 deletion(-) create mode 100644 wizard/BIntroPage.py create mode 100644 wizard/images/logo.png create mode 100644 wizard/ui/intro_page.ui diff --git a/wizard/BIntroPage.py b/wizard/BIntroPage.py new file mode 100644 index 00000000..764d5617 --- /dev/null +++ b/wizard/BIntroPage.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python +# encoding: utf-8 +# +# This file is part of BeRTOS. +# +# Bertos is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +# As a special exception, you may use this file as part of a free software +# library without restriction. Specifically, if other files instantiate +# templates or use macros or inline functions from this file, or you compile +# this file and link it with other files to produce an executable, this +# file does not by itself cause the resulting executable to be covered by +# the GNU General Public License. This exception does not however +# invalidate any other reasons why the executable file might be covered by +# the GNU General Public License. +# +# Copyright 2008 Develer S.r.l. (http://www.develer.com/) +# +# $Id: BFolderPage.py 2669 2009-04-25 07:58:45Z duplo $ +# +# Author: Lorenzo Berni +# + +import os + +from PyQt4.QtGui import * +from BWizardPage import * + +from const import * + +class BIntroPage(BWizardPage): + """ + Initial page of the wizard. Permit to select the project name and the directory + where the project will be created. + """ + + def __init__(self): + BWizardPage.__init__(self, UI_LOCATION + "/intro_page.ui") + self.setTitle(self.tr("Welcome in BeRTOS Wizard!")) + + ## Overloaded QWizardPage methods ## + + def isComplete(self): + """ + Overload of the QWizardPage isComplete method. + """ + return True + + #### + diff --git a/wizard/bertos.py b/wizard/bertos.py index edb131d6..05ecf7af 100755 --- a/wizard/bertos.py +++ b/wizard/bertos.py @@ -47,6 +47,7 @@ import BProject import BStartPage import BWizard +from BIntroPage import BIntroPage from BFolderPage import BFolderPage from BOpenPage import BOpenPage from BVersionPage import BVersionPage @@ -64,7 +65,7 @@ import bertos_utils from LoadException import VersionException, ToolchainException def newProject(): - page_list = [BFolderPage, BVersionPage, BCpuPage, BToolchainPage, BModulePage, BOutputPage, BCreationPage, BFinalPage] + page_list = [BIntroPage, BFolderPage, BVersionPage, BCpuPage, BToolchainPage, BModulePage, BOutputPage, BCreationPage, BFinalPage] wizard = BWizard.BWizard(page_list) wizard.show() wizard.exec_() diff --git a/wizard/bertos.qrc b/wizard/bertos.qrc index 3664fec6..c1aba5c1 100644 --- a/wizard/bertos.qrc +++ b/wizard/bertos.qrc @@ -9,5 +9,6 @@ images/error.png images/folderopen.png images/appicon.png + images/logo.png diff --git a/wizard/images/logo.png b/wizard/images/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..b265646aaece4737732ef1397898654c7a648223 GIT binary patch literal 37100 zcmeI530zdw{=i4f!HE%BL})~2!T|#nasg~a84v|gabZA3#Zk!x%clu}k_(6?w1}k^ zJGi-ye|HVJQ56;}>+%xBV z@9+H1@BGfW*UYJrVZEM|JSh+edQAuqoh}e`8w}eiJ-fr_`Y(bU;H%rJ>0u#);tQ_- z5(v5rrcP3g(>?t4L5}N&4IB2HfB%Dd?&zma)~s2xWBc~|Z@4Ly%ER$b$HvBf`|Y6@~& zvh{Dg@y5bX@6345A8KzlRSY`4RF-)r{o=)oVf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`Ms(NUSWgJ>6Y|=%PNoO!o z-`HjWEaU8mP6*4!=*=}yK|kSYsGLddXauym_l~bN&@wXVTv)g_9I<%GL*Z465QnwDTe0ySms>B@Nr8Jl#Y48hM@vUo&@@GR#zIVEnUG~^*Z zxDICGY?K?#sm4`d0M;xMo5f0`Ai&%=?7!61M4NPDL&ZufaJ=}?eld378DE4vDK}pj z@+dDfi(Q50x9e&`_Aa&`!tD)Bl8f=%&>FBw_i2d~TqnLL90C~z7^#*?j)nuB2bNe^ zYQJECeLxM4)3hKy2$o$nz|3|FX{b}RV6~Rmm)59TO-U!{Jg^8D_mZtXtfYvg$liPC6k9IMxPZ>E*Yx_sp8iH8Ec`;D4#T5&MLq;qf5g^QKHVJt` zioE)0nsVn~YVJ`p*5wL_DhsVzX|1gENQBGV-bxDLfkorDAJsDv#ddy|wGEb_4nn|7 zh6r1kQxE{Gx5Ik{n`q{ZK4p9G)IvO2=xf)y=-SSB8PSRzi%JTc8KC3l;C z9HMy|K31*10@Kmm679kx28+aoi9vE}@+a+)uPA~y6v^dgUi4%hBl-F#JlAD-bJm|! ySpNNt-maT$@UN_0CF&y3MWBm77lAGU|BnewZ48N6mbl#$BbYEQGPF2Eo&H}qKqGDd literal 0 HcmV?d00001 diff --git a/wizard/ui/intro_page.ui b/wizard/ui/intro_page.ui new file mode 100644 index 00000000..2de10d2f --- /dev/null +++ b/wizard/ui/intro_page.ui @@ -0,0 +1,105 @@ + + + Form + + + + 0 + 0 + 455 + 345 + + + + Form + + + + + + QLayout::SetFixedSize + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 16777215 + 115 + + + + + + + :/images/logo.png + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Quickly <span style=" font-weight:600;">create and modify</span> your projects with the graphical wizard, with a step-by-step procedure:</p> +<ol> +<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Select</span> which BeRTOS version you want to use in your project;</li> +<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Choose</span> Toolchain or microcontroller you want to use;</li> +<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Insert</span> the modules needed by your application directly from the graphical interface;</li> +<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Generate</span> a project ready for CodeLite o GNU Make!</li> +</ol></body></html> + + + true + + + + + + + Qt::Vertical + + + + 20 + 39 + + + + + + + + + + + -- 2.25.1