umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

cmdbaseobjectcommand.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 CMDBASEOBJECTCOMMAND_H
12 #define CMDBASEOBJECTCOMMAND_H
13
14 #include "basictypes.h"
15
16 #include <QPointer>
17 #include <QUndoCommand>
18
19 class UMLObject;
20
21 namespace Uml
22 {
23 class CmdBaseObjectCommand : public QUndoCommand
24 {
25 public:
26 explicit CmdBaseObjectCommand(UMLObject *object);
27 virtual ~CmdBaseObjectCommand();
28
29 protected:
30 Uml::ID::Type m_objectId;
31 QPointer<UMLObject> m_object;
32
33 void setObject(UMLObject* object);
34 UMLObject* object();
35 };
36 }
37
38 #endif // CMDBASEOBJECTCOMMAND_H
Uml::CmdBaseObjectCommand::~CmdBaseObjectCommand
virtual ~CmdBaseObjectCommand()
Definition: cmdbaseobjectcommand.cpp:28
Uml::CmdBaseObjectCommand::m_objectId
Uml::ID::Type m_objectId
Definition: cmdbaseobjectcommand.h:30
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
Uml::CmdBaseObjectCommand::object
UMLObject * object()
Definition: cmdbaseobjectcommand.cpp:40
Uml::CmdBaseObjectCommand::m_object
QPointer< UMLObject > m_object
Definition: cmdbaseobjectcommand.h:31
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1038
basictypes.h
Uml::CmdBaseObjectCommand::setObject
void setObject(UMLObject *object)
Definition: cmdbaseobjectcommand.cpp:32
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLDoc
Definition: umldoc.h:75
Uml
Definition: basictypes.cpp:37
uml.h
Uml::CmdBaseObjectCommand
Definition: cmdbaseobjectcommand.h:24
umlobject.h
Uml::CmdBaseObjectCommand::CmdBaseObjectCommand
CmdBaseObjectCommand(UMLObject *object)
Definition: cmdbaseobjectcommand.cpp:23
cmdbaseobjectcommand.h
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h