• 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
artifact.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-2013 *
8  * Umbrello UML Modeller Authors <[email protected]> *
9  ***************************************************************************/
10 
11 #ifndef ARTIFACT_H
12 #define ARTIFACT_H
13 
14 #include "package.h"
15 
27 class UMLArtifact : public UMLPackage
28 {
29  Q_OBJECT
30 public:
31 
35  enum Draw_Type {
36  defaultDraw,
37  file,
38  library,
39  table
40  };
41 
42  explicit UMLArtifact(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
43  virtual ~UMLArtifact();
44 
45  virtual UMLObject* clone() const;
46 
47  void saveToXMI(QDomDocument & qDoc, QDomElement & qElement);
48 
49  void setDrawAsType(Draw_Type type);
50 
51  Draw_Type getDrawAsType();
52 
53 protected:
54 
55  bool load(QDomElement & element);
56 
57 private:
58 
63  Draw_Type m_drawAsType;
64 };
65 
66 #endif
UMLPackage
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
UMLArtifact::table
Definition: artifact.h:39
UMLArtifact::getDrawAsType
Draw_Type getDrawAsType()
Returns the value of m_drawAsType.
Definition: artifact.cpp:86
UMLArtifact::~UMLArtifact
virtual ~UMLArtifact()
Standard deconstructor.
Definition: artifact.cpp:32
UMLArtifact::UMLArtifact
UMLArtifact(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Sets up an Artifact.
Definition: artifact.cpp:22
UMLObject
This class is the non-graphical version of UMLWidget.
Definition: umlobject.h:41
UMLArtifact::saveToXMI
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the UML:Artifact element including its operations, attributes and templates.
Definition: artifact.cpp:53
UMLArtifact::defaultDraw
Definition: artifact.h:36
UMLArtifact::Draw_Type
Draw_Type
Artifacts can be drawn using one of several icons.
Definition: artifact.h:35
UMLArtifact::clone
virtual UMLObject * clone() const
Make a clone of this object.
Definition: artifact.cpp:40
Uml::ID::Type
std::string Type
Definition: basictypes.h:317
UMLArtifact::file
Definition: artifact.h:37
UMLArtifact
This class contains the non-graphical information required for a UML Artifact.
Definition: artifact.h:27
package.h
UMLArtifact::load
bool load(QDomElement &element)
Loads the UML:Artifact element including its operations, attributes and templates.
Definition: artifact.cpp:66
UMLArtifact::setDrawAsType
void setDrawAsType(Draw_Type type)
Sets m_drawAsType for which method to draw the artifact as.
Definition: artifact.cpp:77
UMLArtifact::library
Definition: artifact.h:38
UMLObject::name
QString name() const
Returns a copy of m_name.
Definition: umlobject.cpp:185
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:319
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