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

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