umbrello  2.31.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
cmdsetstereotype.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) 2002-2014 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef CMDSETSTEREOTYPE_H
12 #define CMDSETSTEREOTYPE_H
13 
14 #include "cmdbaseobjectcommand.h"
15 
16 namespace Uml
17 {
18  class CmdSetStereotype : public CmdBaseObjectCommand
19  {
20  public:
21  CmdSetStereotype(UMLObject * obj, const QString& stereo);
23 
24  void redo();
25  void undo();
26 
27  private:
28  QString m_stereo;
29  QString m_oldStereo;
30  };
31 }
32 
33 #endif
cmdsetstereotype.h
Uml::CmdSetStereotype::CmdSetStereotype
CmdSetStereotype(UMLObject *obj, const QString &stereo)
Definition: cmdsetstereotype.cpp:29
Uml::CmdSetStereotype::redo
void redo()
Definition: cmdsetstereotype.cpp:41
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
Uml::CmdSetStereotype::~CmdSetStereotype
~CmdSetStereotype()
Definition: cmdsetstereotype.cpp:37
UMLObject::setStereotypeCmd
void setStereotypeCmd(const QString &_name)
Definition: umlobject.cpp:534
Uml::CmdBaseObjectCommand::object
UMLObject * object()
Definition: cmdbaseobjectcommand.cpp:48
Uml::CmdSetStereotype::m_oldStereo
QString m_oldStereo
Definition: cmdsetstereotype.h:45
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdSetStereotype::undo
void undo()
Definition: cmdsetstereotype.cpp:48
Uml::CmdSetStereotype::m_stereo
QString m_stereo
Definition: cmdsetstereotype.h:44
Uml
Definition: basictypes.cpp:37
umlobject.h
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:558
cmdbaseobjectcommand.h