start.cpp

00001 /***************************************************************************
00002  *   Copyright (C) 2003 by David Saxton                                    *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #include "start.h"
00012 
00013 #include "libraryitem.h"
00014 #include "flowcode.h"
00015 
00016 #include <klocale.h>
00017 
00018 Item* Start::construct( ItemDocument *itemDocument, bool newItem, const char *id )
00019 {
00020         return new Start( (ICNDocument*)itemDocument, newItem, id );
00021 }
00022 
00023 LibraryItem* Start::libraryItem()
00024 {
00025         return new LibraryItem(
00026                 QString::QString("flow/start"),
00027                 i18n("Start"),
00028                 i18n("Common"),
00029                 "start.png",
00030                 LibraryItem::lit_flowpart,
00031                 Start::construct );
00032 }
00033 
00034 Start::Start( ICNDocument *icnDocument, bool newItem, const char *id )
00035         : FlowPart( icnDocument, newItem, (id) ? id : "START" )
00036 {
00037         m_name = i18n("Start");
00038         m_desc = i18n("Determines the initial program execution point.");
00039         initRoundedRectSymbol();
00040         createStdOutput();
00041         setCaption( i18n("Start") );
00042 }
00043 
00044 Start::~Start()
00045 {
00046 }
00047 
00048 void Start::generateMicrobe( FlowCode *code )
00049 {
00050         code->addCodeBranch( outputPart("stdoutput") );
00051 }
00052 

Generated on Tue May 8 17:05:32 2007 for KTechLab by  doxygen 1.5.1