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

cmdsetname.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 CMDSETNAME_H
12 #define CMDSETNAME_H
13
14 #include "cmdbaseobjectcommand.h"
15
16 namespace Uml
17 {
18 class CmdSetName : public CmdBaseObjectCommand
19 {
20 public:
21 CmdSetName(UMLObject* obj, const QString& name);
22 ~CmdSetName();
23
24 void redo();
25 void undo();
26
27 private:
28 QString m_oldname;
29 QString m_name;
30 };
31 }
32
33 #endif
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
Uml::CmdSetName::CmdSetName
CmdSetName(UMLObject *obj, const QString &name)
Definition: cmdsetname.cpp:22
Uml::CmdSetName::m_name
QString m_name
Definition: cmdsetname.h:29
Uml::CmdSetName::undo
void undo()
Definition: cmdsetname.cpp:41
Uml::CmdSetName::redo
void redo()
Definition: cmdsetname.cpp:34
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
cmdsetname.h
Uml::CmdBaseObjectCommand::object
UMLObject * object()
Definition: cmdbaseobjectcommand.cpp:40
Uml::CmdSetName
Definition: cmdsetname.h:19
i18n
#define i18n
Definition: main.cpp:39
Uml
Definition: basictypes.cpp:37
Uml::CmdSetName::~CmdSetName
~CmdSetName()
Definition: cmdsetname.cpp:30
Uml::CmdBaseObjectCommand
Definition: cmdbaseobjectcommand.h:24
Uml::CmdSetName::m_oldname
QString m_oldname
Definition: cmdsetname.h:28
umlobject.h
UMLObject::setNameCmd
virtual void setNameCmd(const QString &strName)
Definition: umlobject.cpp:202
cmdbaseobjectcommand.h