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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

cmdchangemultiplicity.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2014 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6 /* Created By Bouchikhi Mohamed-Amine */
7
8#ifndef CMDCHANGEMULTIPLICITY_H
9#define CMDCHANGEMULTIPLICITY_H
10
11#include <QUndoCommand>
12
13 class UMLRole;
14
15 namespace Uml
16{
17 class CmdChangeMultiplicity : public QUndoCommand
18 {
19 public:
20 CmdChangeMultiplicity(UMLRole *role, const QString &multi);
21 void redo();
22 void undo();
23
24 private:
25 UMLRole* m_umlRole;
26 QString m_oldMulti;
27 QString m_newMulti;
28 };
29
30}
31
32#endif // CMDCHANGEMULTI_H
33
UMLRole
Definition umlrole.h:20
Uml::CmdChangeMultiplicity
Definition cmdchangemultiplicity.h:18
Uml::CmdChangeMultiplicity::undo
void undo()
Definition cmdchangemultiplicity.cpp:25
Uml::CmdChangeMultiplicity::redo
void redo()
Definition cmdchangemultiplicity.cpp:35
Uml::CmdChangeMultiplicity::m_oldMulti
QString m_oldMulti
Old multiplicity.
Definition cmdchangemultiplicity.h:26
Uml::CmdChangeMultiplicity::m_newMulti
QString m_newMulti
New multiplicity.
Definition cmdchangemultiplicity.h:27
Uml::CmdChangeMultiplicity::CmdChangeMultiplicity
CmdChangeMultiplicity(UMLRole *role, const QString &multi)
Definition cmdchangemultiplicity.cpp:18
Uml::CmdChangeMultiplicity::m_umlRole
UMLRole * m_umlRole
Object selected.
Definition cmdchangemultiplicity.h:25
Uml
Definition basictypes.cpp:18