umbrello: umbrello/cmds/widget/cmdsetname.h Source File

umbrello 2.31.0 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:30
Uml::CmdSetName::m_name
QString m_name
Definition: cmdsetname.h:45
Uml::CmdSetName::undo
void undo()
Definition: cmdsetname.cpp:49
Uml::CmdSetName::redo
void redo()
Definition: cmdsetname.cpp:42
UMLObject
The base class for UML objects.
Definition: umlobject.h:73
cmdsetname.h
Uml::CmdBaseObjectCommand::object
UMLObject * object()
Definition: cmdbaseobjectcommand.cpp:48
i18n
#define i18n
Definition: main.cpp:39
Uml
Definition: basictypes.cpp:36
Uml::CmdSetName::~CmdSetName
~CmdSetName()
Definition: cmdsetname.cpp:38
Uml::CmdSetName::m_oldname
QString m_oldname
Definition: cmdsetname.h:44
umlobject.h
UMLObject::setNameCmd
virtual void setNameCmd(const QString &strName)
Definition: umlobject.cpp:202
cmdbaseobjectcommand.h