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 {
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
The base class for UML objects.
Definition: umlobject.h:74
Definition: cmdbaseobjectcommand.h:24
Definition: cmdsetname.h:19
QString m_oldname
Definition: cmdsetname.h:28
QString m_name
Definition: cmdsetname.h:29
void undo()
Definition: cmdsetname.cpp:41
CmdSetName(UMLObject *obj, const QString &name)
Definition: cmdsetname.cpp:22
void redo()
Definition: cmdsetname.cpp:34
~CmdSetName()
Definition: cmdsetname.cpp:30
Definition: basictypes.cpp:37