umbrello  2.39.2
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  SPDX-License-Identifier: GPL-2.0-or-later
3  SPDX-FileCopyrightText: 2002-2014 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5 
6 #ifndef CMDBASEOBJECTCOMMAND_H
7 #define CMDBASEOBJECTCOMMAND_H
8 
9 #include "basictypes.h"
10 
11 #include <QPointer>
12 #include <QUndoCommand>
13 
14 class UMLObject;
15 
16 namespace Uml
17 {
18  class CmdBaseObjectCommand : public QUndoCommand
19  {
20  public:
21  explicit CmdBaseObjectCommand(UMLObject *object);
22  virtual ~CmdBaseObjectCommand();
23 
24  protected:
26  QPointer<UMLObject> m_object;
27 
28  void setObject(UMLObject* object);
29  UMLObject* object();
30  };
31 }
32 
33 #endif // CMDBASEOBJECTCOMMAND_H
The base class for UML objects.
Definition: umlobject.h:70
Definition: cmdbaseobjectcommand.h:19
CmdBaseObjectCommand(UMLObject *object)
Definition: cmdbaseobjectcommand.cpp:18
Uml::ID::Type m_objectId
Definition: cmdbaseobjectcommand.h:25
UMLObject * object()
Definition: cmdbaseobjectcommand.cpp:35
virtual ~CmdBaseObjectCommand()
Definition: cmdbaseobjectcommand.cpp:23
void setObject(UMLObject *object)
Definition: cmdbaseobjectcommand.cpp:27
QPointer< UMLObject > m_object
Definition: cmdbaseobjectcommand.h:26
std::string Type
Definition: basictypes.h:371
Definition: basictypes.cpp:18