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

cmdchangefillcolor.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 /* Created By Krzywda Stanislas and Bouchikhi Mohamed-Amine ;) */
12
13 #ifndef CMDCHANGEFILLCOLOR_H
14 #define CMDCHANGEFILLCOLOR_H
15
16 #include "cmdbasewidgetcommand.h"
17
18 #include <QColor>
19
20 class UMLWidget;
21
22 namespace Uml
23 {
24 class CmdChangeFillColor : public CmdBaseWidgetCommand
25 {
26 public:
27 CmdChangeFillColor(UMLWidget* w, const QColor& col);
28 ~CmdChangeFillColor();
29
30 void redo();
31 void undo();
32
33 private:
34 QColor m_oldColor;
35 QColor m_color;
36
37 };
38 }
39
40 #endif /*CMDCHANGEFILLCOLOR_H*/
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
Uml::CmdChangeFillColor::m_oldColor
QColor m_oldColor
old color
Definition: cmdchangefillcolor.h:34
cmdchangefillcolor.h
cmdbasewidgetcommand.h
Uml::CmdChangeFillColor
Definition: cmdchangefillcolor.h:25
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
umlwidget.h
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
Uml::CmdChangeFillColor::redo
void redo()
Definition: cmdchangefillcolor.cpp:35
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:76
UMLWidget::setFillColorCmd
void setFillColorCmd(const QColor &color)
Definition: umlwidget.cpp:1180
Uml::CmdChangeFillColor::CmdChangeFillColor
CmdChangeFillColor(UMLWidget *w, const QColor &col)
Definition: cmdchangefillcolor.cpp:22
Uml
Definition: basictypes.cpp:37
Uml::CmdChangeFillColor::undo
void undo()
Definition: cmdchangefillcolor.cpp:40
Uml::CmdChangeFillColor::m_color
QColor m_color
new color
Definition: cmdchangefillcolor.h:35
Uml::CmdChangeFillColor::~CmdChangeFillColor
~CmdChangeFillColor()
Definition: cmdchangefillcolor.cpp:31