• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
  • codegenerators
codeclassfielddeclarationblock.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8  * copyright (C) 2004-2013 *
9  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10  ***************************************************************************/
11 
12 #ifndef CODECLASSFIELDDECLARATIONBLOCK_H
13 #define CODECLASSFIELDDECLARATIONBLOCK_H
14 
15 class UMLObject;
16 class CodeClassField;
17 
18 #include "codeblockwithcomments.h"
19 #include "ownedcodeblock.h"
20 
29 class CodeClassFieldDeclarationBlock : public OwnedCodeBlock, public CodeBlockWithComments
30 {
31  friend class CodeClassField;
32  Q_OBJECT
33 public:
34 
35  explicit CodeClassFieldDeclarationBlock(CodeClassField * parent);
36  virtual ~CodeClassFieldDeclarationBlock();
37 
38  CodeClassField * getParentClassField();
39 
40  UMLObject * getParentObject();
41 
42  virtual void setAttributesFromObject(TextBlock * obj);
43 
44  virtual void updateContent() = 0;
45 
46  virtual void saveToXMI(QDomDocument & doc, QDomElement & root);
47 
48  virtual void loadFromXMI(QDomElement & root);
49 
50 protected:
51 
52  virtual void release();
53 
54  virtual void setAttributesOnNode(QDomDocument & doc, QDomElement & blockElement);
55 
56  virtual void setAttributesFromNode(QDomElement & element);
57 
58  void forceRelease();
59 
60 private:
61 
62  CodeClassField * m_parentclassfield;
63  void init(CodeClassField * parent);
64 
65 public slots:
66 
67  virtual void syncToParent();
68 
69 };
70 
71 #endif // CODECLASSFIELDDECLARATIONBLOCK_H
CodeClassField
class CodeClassField a special type of parameter.
Definition: codeclassfield.h:29
UniqueID::init
void init()
Reinitialize the unique ID counter.
Definition: uniqueid.cpp:37
CodeClassFieldDeclarationBlock::forceRelease
void forceRelease()
So parent can actually release this block.
Definition: codeclassfielddeclarationblock.cpp:65
CodeClassFieldDeclarationBlock::~CodeClassFieldDeclarationBlock
virtual ~CodeClassFieldDeclarationBlock()
Empty Destructor.
Definition: codeclassfielddeclarationblock.cpp:30
CodeClassFieldDeclarationBlock
Used to declare classifier fields (e.g.
Definition: codeclassfielddeclarationblock.h:29
CodeClassFieldDeclarationBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Set attributes of the node that represents this class in the XMI document.
Definition: codeclassfielddeclarationblock.cpp:99
CodeClassFieldDeclarationBlock::getParentObject
UMLObject * getParentObject()
A utility method to get the parent object of the parentCodeClassfield.
Definition: codeclassfielddeclarationblock.cpp:48
CodeClassFieldDeclarationBlock::CodeClassFieldDeclarationBlock
CodeClassFieldDeclarationBlock(CodeClassField *parent)
Constructor.
Definition: codeclassfielddeclarationblock.cpp:20
UMLObject
This class is the non-graphical version of UMLWidget.
Definition: umlobject.h:41
CodeBlockWithComments
class CodeBlockWithComments A very common type of text block in any type of code. ...
Definition: codeblockwithcomments.h:24
OwnedCodeBlock
Describes any codeblock which is 'owned' by a UMLobject of some sort and should be in sync with that ...
Definition: ownedcodeblock.h:26
codeblockwithcomments.h
CodeClassFieldDeclarationBlock::loadFromXMI
virtual void loadFromXMI(QDomElement &root)
Load params from the appropriate XMI element node.
Definition: codeclassfielddeclarationblock.cpp:90
CodeClassFieldDeclarationBlock::saveToXMI
virtual void saveToXMI(QDomDocument &doc, QDomElement &root)
Save the XMI representation of this object.
Definition: codeclassfielddeclarationblock.cpp:80
CodeClassFieldDeclarationBlock::updateContent
virtual void updateContent()=0
CodeClassFieldDeclarationBlock::release
virtual void release()
Causes the text block to release all of its connections and any other text blocks that it 'owns'...
Definition: codeclassfielddeclarationblock.cpp:57
TextBlock
The fundemental unit of text within an output file containing code.
Definition: textblock.h:24
ownedcodeblock.h
CodeClassFieldDeclarationBlock::getParentClassField
CodeClassField * getParentClassField()
Get the value of m_parentclassfield.
Definition: codeclassfielddeclarationblock.cpp:40
CodeClassFieldDeclarationBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Set the class attributes of this object from the passed element node.
Definition: codeclassfielddeclarationblock.cpp:110
CodeClassFieldDeclarationBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Set the class attributes from a passed object.
Definition: codeclassfielddeclarationblock.cpp:122
CodeClassFieldDeclarationBlock::syncToParent
virtual void syncToParent()
Definition: codeclassfielddeclarationblock.cpp:136
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal