umbrello API Documentation

codeblock.h

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2004-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 /*  This code generated by:
00013  *      Author : thomas
00014  *      Date   : Wed Jun 18 2003
00015  */
00016 
00017 
00018 
00019 #ifndef CODEBLOCK_H
00020 #define CODEBLOCK_H
00021 
00022 
00023 #include "textblock.h"
00024 
00025 class HierarchicalCodeBlock;
00026 
00027 
00033 class CodeBlock : public TextBlock
00034 {
00035     Q_OBJECT
00036 public:
00037 
00038     enum ContentType {AutoGenerated=0, UserGenerated };
00039 
00040     // Constructors/Destructors
00041     //
00042 
00046     explicit CodeBlock ( CodeDocument * parent, const QString & body = "");
00047     explicit CodeBlock ( HierarchicalCodeBlock * parent, const QString & body = "" );
00048 
00052     virtual ~CodeBlock ( );
00053 
00054     // Public attributes
00055     //
00056 
00057 
00058     // Public attribute accessor methods
00059     //
00060 
00067     void setContentType ( ContentType new_var );
00068 
00075     ContentType getContentType ( );
00076 
00081     //  CodeBlockDialog getDialog ( );
00082 
00086     virtual void saveToXMI ( QDomDocument & doc, QDomElement & root );
00087 
00091     virtual void loadFromXMI ( QDomElement & root );
00092 
00095     virtual void setAttributesFromObject (TextBlock * obj);
00096 
00097 protected:
00098 
00102     virtual void setAttributesOnNode ( QDomDocument & doc, QDomElement & blockElement);
00103 
00107     virtual void setAttributesFromNode ( QDomElement & element);
00108 
00109 private:
00110 
00111     //  CodeBlockDialog * m_dialog;
00112 
00113     // specifies whether the content (text) of this object
00114     // was generated by the code generator or was supplied by the user (or some other way).
00115     ContentType m_contentType;
00116 
00117     void initFields ( );
00118 
00119 };
00120 
00121 #endif // CODEBLOCK_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:55 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003