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

cmdsetvisibility.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 CMDSETVISIBILITY_H
12 #define CMDSETVISIBILITY_H
13
14 #include "cmdbaseobjectcommand.h"
15
16 namespace Uml
17 {
18 class CmdSetVisibility : public CmdBaseObjectCommand
19 {
20 public:
21 CmdSetVisibility(UMLObject* obj, Uml::Visibility::Enum visibility);
22 ~CmdSetVisibility();
23
24 void redo();
25 void undo();
26
27 private:
28 Uml::Visibility::Enum m_oldVisibility;
29 Uml::Visibility::Enum m_visibility;
30 };
31 }
32
33 #endif
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLObject::setVisibilityCmd
void setVisibilityCmd(Uml::Visibility::Enum visibility)
Definition: umlobject.cpp:486
Uml::CmdSetVisibility::~CmdSetVisibility
~CmdSetVisibility()
Definition: cmdsetvisibility.cpp:31
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
Uml::CmdSetVisibility::redo
void redo()
Definition: cmdsetvisibility.cpp:35
Uml::CmdBaseObjectCommand::object
UMLObject * object()
Definition: cmdbaseobjectcommand.cpp:40
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdSetVisibility::CmdSetVisibility
CmdSetVisibility(UMLObject *obj, Uml::Visibility::Enum visibility)
Definition: cmdsetvisibility.cpp:23
Uml::CmdSetVisibility
Definition: cmdsetvisibility.h:19
visibility
Definition: visibility.py:1
Uml::CmdSetVisibility::m_visibility
Uml::Visibility::Enum m_visibility
Definition: cmdsetvisibility.h:29
Uml
Definition: basictypes.cpp:37
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
cmdsetvisibility.h
uml.h
Uml::CmdBaseObjectCommand
Definition: cmdbaseobjectcommand.h:24
Uml::CmdSetVisibility::m_oldVisibility
Uml::Visibility::Enum m_oldVisibility
Definition: cmdsetvisibility.h:28
umlobject.h
Uml::CmdSetVisibility::undo
void undo()
Definition: cmdsetvisibility.cpp:42
cmdbaseobjectcommand.h
umldoc.h