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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

cmdrenameumlobject.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 CMDRENAMEUMLOBJECT_H
7#define CMDRENAMEUMLOBJECT_H
8
9#include <QUndoCommand>
10
11 class UMLObject;
12
13 namespace Uml
14{
15 class CmdRenameUMLObject : public QUndoCommand
16 {
17 public:
18 CmdRenameUMLObject(UMLObject* o, const QString& name);
19 ~CmdRenameUMLObject();
20
21 void redo();
22 void undo();
23
24 private:
25 UMLObject* m_obj;
26 QString m_name;
27 QString m_oldname;
28 };
29}
30
31#endif
UMLObject
The base class for UML objects.
Definition umlobject.h:70
Uml::CmdRenameUMLObject
Definition cmdrenameumlobject.h:16
Uml::CmdRenameUMLObject::~CmdRenameUMLObject
~CmdRenameUMLObject()
Definition cmdrenameumlobject.cpp:24
Uml::CmdRenameUMLObject::m_oldname
QString m_oldname
Definition cmdrenameumlobject.h:27
Uml::CmdRenameUMLObject::m_obj
UMLObject * m_obj
Definition cmdrenameumlobject.h:25
Uml::CmdRenameUMLObject::undo
void undo()
Definition cmdrenameumlobject.cpp:33
Uml::CmdRenameUMLObject::m_name
QString m_name
Definition cmdrenameumlobject.h:26
Uml::CmdRenameUMLObject::redo
void redo()
Definition cmdrenameumlobject.cpp:28
Uml::CmdRenameUMLObject::CmdRenameUMLObject
CmdRenameUMLObject(UMLObject *o, const QString &name)
Definition cmdrenameumlobject.cpp:17
Uml
Definition basictypes.cpp:18