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

umbrello 2.32.1 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:
30 UMLRole* m_umlRole;
31 QString m_oldMulti;
32 QString m_newMulti;
33 };
34
35 }
36
37 #endif // CMDCHANGEMULTI_H
38
umlrole.h
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
Uml::CmdChangeMultiplicity::undo
void undo()
Definition: cmdchangemultiplicity.cpp:30
Uml::CmdChangeMultiplicity::CmdChangeMultiplicity
CmdChangeMultiplicity(UMLRole *role, const QString &multi)
Definition: cmdchangemultiplicity.cpp:23
UMLRole
Definition: umlrole.h:25
Uml::CmdChangeMultiplicity::m_oldMulti
QString m_oldMulti
Old multiplicity.
Definition: cmdchangemultiplicity.h:31
UMLRole::setMultiplicity
void setMultiplicity(const QString &multi)
Definition: umlrole.cpp:156
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdChangeMultiplicity::m_umlRole
UMLRole * m_umlRole
Object selected.
Definition: cmdchangemultiplicity.h:30
cmdchangemultiplicity.h
Uml::CmdChangeMultiplicity::redo
void redo()
Definition: cmdchangemultiplicity.cpp:40
Uml
Definition: basictypes.cpp:37
Uml::CmdChangeMultiplicity::m_newMulti
QString m_newMulti
New multiplicity.
Definition: cmdchangemultiplicity.h:32
Uml::CmdChangeMultiplicity
Definition: cmdchangemultiplicity.h:23
UMLRole::multiplicity
QString multiplicity() const
Definition: umlrole.cpp:113