umbrello 2.32.3 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
Uml::CmdChangeVisualProperty
Definition: cmdchangevisualproperty.h:21
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
classifierwidget.h
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
Uml::CmdChangeVisualProperty::CmdChangeVisualProperty
CmdChangeVisualProperty(ClassifierWidget *widget, ClassifierWidget::VisualProperty property, bool value)
Definition: cmdchangevisualproperty.cpp:24
cmdbasewidgetcommand.h
Uml::CmdChangeVisualProperty::redo
void redo()
Definition: cmdchangevisualproperty.cpp:41
cmdchangevisualproperty.h
WidgetBase::asClassifierWidget
ClassifierWidget * asClassifierWidget()
Definition: widgetbase.cpp:1471
Uml::CmdChangeVisualProperty::~CmdChangeVisualProperty
~CmdChangeVisualProperty()
Definition: cmdchangevisualproperty.cpp:37
Uml::CmdChangeVisualProperty::m_newValue
bool m_newValue
Definition: cmdchangevisualproperty.h:30
ClassifierWidget::VisualProperty
VisualProperty
Definition: classifierwidget.h:42
Uml::CmdChangeVisualProperty::m_property
ClassifierWidget::VisualProperty m_property
Definition: cmdchangevisualproperty.h:29
umlwidget.h
uWarning
#define uWarning()
Definition: debug_utils.h:124
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
i18n
#define i18n
Definition: main.cpp:39
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:33
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:76
ClassifierWidget::setVisualPropertyCmd
void setVisualPropertyCmd(VisualProperty property, bool enable=true)
Definition: classifierwidget.cpp:224
Uml::CmdChangeVisualProperty::m_oldValue
bool m_oldValue
Definition: cmdchangevisualproperty.h:31
Uml::CmdChangeVisualProperty::undo
void undo()
Definition: cmdchangevisualproperty.cpp:50
Uml
Definition: basictypes.cpp:37
debug_utils.h
Uml::CmdBaseWidgetCommand::m_widgetId
Uml::ID::Type m_widgetId
Definition: cmdbasewidgetcommand.h:34