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

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

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

- File List
- File Members

cmdchangevisualproperty.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#ifndef CMDCHANGEVISUALPROPERTY_H
7#define CMDCHANGEVISUALPROPERTY_H
8
9#include "classifierwidget.h"
10#include "cmdbasewidgetcommand.h"
11
12
13namespace Uml
14{
15 class CmdChangeVisualProperty : public CmdBaseWidgetCommand
16 {
17 public:
18 CmdChangeVisualProperty(ClassifierWidget* widget, ClassifierWidget::VisualProperty property, bool value);
19 ~CmdChangeVisualProperty();
20 void redo();
21 void undo();
22
23 private:
24 ClassifierWidget::VisualProperty m_property;
25 bool m_newValue;
26 bool m_oldValue;
27 };
28}
29
30#endif // CMDCHANGEVISUALPROPERTY_H
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:28
ClassifierWidget::VisualProperty
VisualProperty
Definition: classifierwidget.h:37
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:21
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:71
Uml::CmdChangeVisualProperty
Definition: cmdchangevisualproperty.h:16
Uml::CmdChangeVisualProperty::m_newValue
bool m_newValue
Definition: cmdchangevisualproperty.h:25
Uml::CmdChangeVisualProperty::m_property
ClassifierWidget::VisualProperty m_property
Definition: cmdchangevisualproperty.h:24
Uml::CmdChangeVisualProperty::~CmdChangeVisualProperty
~CmdChangeVisualProperty()
Definition: cmdchangevisualproperty.cpp:33
Uml::CmdChangeVisualProperty::undo
void undo()
Definition: cmdchangevisualproperty.cpp:47
Uml::CmdChangeVisualProperty::redo
void redo()
Definition: cmdchangevisualproperty.cpp:37
Uml::CmdChangeVisualProperty::m_oldValue
bool m_oldValue
Definition: cmdchangevisualproperty.h:26
classifierwidget.h
cmdbasewidgetcommand.h
Uml
Definition: basictypes.cpp:18