umbrello  2.32.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
cmdchangemultiplicity.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  /* Created By Bouchikhi Mohamed-Amine */
12 
13 #ifndef CMDCHANGEMULTIPLICITY_H
14 #define CMDCHANGEMULTIPLICITY_H
15 
16 #include <QUndoCommand>
17 
18 class UMLRole;
19 
20 namespace Uml
21 {
22  class CmdChangeMultiplicity : public QUndoCommand
23  {
24  public:
25  CmdChangeMultiplicity(UMLRole *role, const QString &multi);
26  void redo();
27  void undo();
28 
29  private:
31  QString m_oldMulti;
32  QString m_newMulti;
33  };
34 
35 }
36 
37 #endif // CMDCHANGEMULTI_H
38 
UMLRole * m_umlRole
Object selected.
Definition: cmdchangemultiplicity.h:30
void redo()
Definition: cmdchangemultiplicity.cpp:40
QString m_newMulti
New multiplicity.
Definition: cmdchangemultiplicity.h:32
Definition: basictypes.cpp:36
void undo()
Definition: cmdchangemultiplicity.cpp:30
Definition: cmdchangemultiplicity.h:22
Definition: umlrole.h:24
CmdChangeMultiplicity(UMLRole *role, const QString &multi)
Definition: cmdchangemultiplicity.cpp:23
QString m_oldMulti
Old multiplicity.
Definition: cmdchangemultiplicity.h:31