umbrello: umbrello/cmds/cmdsetvisibility.h Source File

umbrello 2.31.0 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:39
UMLObject
The base class for UML objects.
Definition: umlobject.h:73
Uml::CmdSetVisibility::redo
void redo()
Definition: cmdsetvisibility.cpp:43
Uml::CmdBaseObjectCommand::object
UMLObject * object()
Definition: cmdbaseobjectcommand.cpp:48
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:31
visibility
Definition: visibility.py:1
Uml::CmdSetVisibility::m_visibility
Uml::Visibility::Enum m_visibility
Definition: cmdsetvisibility.h:45
Uml
Definition: basictypes.cpp:36
Uml::Visibility::Enum
Enum
Definition: basictypes.h:76
cmdsetvisibility.h
uml.h
Uml::CmdSetVisibility::m_oldVisibility
Uml::Visibility::Enum m_oldVisibility
Definition: cmdsetvisibility.h:44
umlobject.h
Uml::CmdSetVisibility::undo
void undo()
Definition: cmdsetvisibility.cpp:50
cmdbaseobjectcommand.h
umldoc.h