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

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

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