• 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
actor.cpp
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) 2002-2013 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #include "actor.h"
12 
19 UMLActor::UMLActor(const QString & name, Uml::ID::Type id)
20  : UMLCanvasObject(name, id)
21 {
22  init();
23 }
24 
28 UMLActor::~UMLActor()
29 {
30 }
31 
35 void UMLActor::init()
36 {
37  m_BaseType = UMLObject::ot_Actor;
38 }
39 
43 UMLObject* UMLActor::clone() const
44 {
45  UMLActor *clone = new UMLActor();
46  UMLObject::copyInto(clone);
47  return clone;
48 }
49 
53 void UMLActor::saveToXMI(QDomDocument& qDoc, QDomElement& qElement)
54 {
55  QDomElement actorElement = UMLObject::save("UML:Actor", qDoc);
56  qElement.appendChild(actorElement);
57 }
58 
62 bool UMLActor::load(QDomElement& element)
63 {
64  Q_UNUSED(element);
65  return true;
66 }
67 
68 #include "actor.moc"
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the new object.
Definition: umlobject.cpp:287
UMLActor::UMLActor
UMLActor(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Constructs an Actor.
Definition: actor.cpp:19
UMLCanvasObject
This class contains the non-graphical information required for UMLObjects which appear as moveable wi...
Definition: umlcanvasobject.h:33
UMLActor::clone
virtual UMLObject * clone() const
Make a clone of this object.
Definition: actor.cpp:43
UMLObject
This class is the non-graphical version of UMLWidget.
Definition: umlobject.h:41
UMLActor::~UMLActor
virtual ~UMLActor()
Standard destructor.
Definition: actor.cpp:28
UMLActor::load
bool load(QDomElement &element)
Loads the XMI element (empty).
Definition: actor.cpp:62
Uml::ID::Type
std::string Type
Definition: basictypes.h:317
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:176
actor.h
UMLObject::ot_Actor
Definition: umlobject.h:50
UMLObject::save
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:808
UMLActor::saveToXMI
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the XMI element.
Definition: actor.cpp:53
UMLActor::init
virtual void init()
Initializes key variables of the class.
Definition: actor.cpp:35
UMLActor
This class contains the non-graphical information required for a UML Actor.
Definition: actor.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:58 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