umbrello API Documentation

ownedcodeblock.h

00001 
00002 
00003 /***************************************************************************
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 
00012 /*  This code generated by:
00013  *      Author : thomas
00014  *      Date   : Tue Aug 19 2003
00015  */
00016 
00017 #ifndef OWNEDCODEBLOCK_H
00018 #define OWNEDCODEBLOCK_H
00019 
00020 #include <qdom.h>
00021 #include <qstring.h>
00022 #include <qobject.h>
00023 
00024 class TextBlock;
00025 class CodeDocument;
00026 // class CodeGenObjectWithTextBlocks;
00027 class UMLObject;
00028 
00035 class OwnedCodeBlock : virtual public QObject
00036 {
00037     Q_OBJECT
00038 public:
00039 
00040     // Constructors/Destructors
00041     //
00042 
00046     OwnedCodeBlock ( UMLObject * parent );
00047 
00051     virtual ~OwnedCodeBlock ( );
00052 
00056     UMLObject * getParentObject ( );
00057 
00058     // get the parent code document of this code block
00059     virtual CodeDocument * getParentDocument ( ) = 0;
00060 
00061 protected:
00062 
00067     virtual void release ();
00068 
00072     virtual void setAttributesOnNode ( QDomDocument & doc, QDomElement & blockElement);
00073 
00077     virtual void setAttributesFromNode ( QDomElement & element);
00078 
00081     virtual void setAttributesFromObject (TextBlock * obj);
00082 
00086     virtual void updateContent ( ) = 0;
00087 
00088 private:
00089 
00090     void initFields ( UMLObject * parent );
00091 
00092     UMLObject * m_parentObject;
00093 
00094 public slots:
00095 
00096     virtual void syncToParent ( );
00097 
00098 };
00099 
00100 #endif // OWNEDCODEBLOCK_H
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:58 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003