From: duplo Date: Fri, 23 Oct 2009 10:18:47 +0000 (+0000) Subject: Add introduction page. X-Git-Tag: 2.4.0~104 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ed0d4c55052f6f98007ea0e91e6c90fe8809425a;p=bertos.git Add introduction page. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3093 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 00000000..b265646a Binary files /dev/null and b/wizard/images/logo.png differ 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 + + + + + + + + + + +