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

umbrello 2.32.0 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
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
Uml::CmdChangeFillColor
Definition: cmdchangefillcolor.h:25
Uml::CmdChangeFillColor::CmdChangeFillColor
CmdChangeFillColor(UMLWidget *w, const QColor &col)
Definition: cmdchangefillcolor.cpp:22
Uml::CmdChangeFillColor::m_oldColor
QColor m_oldColor
old color
Definition: cmdchangefillcolor.h:34
Uml::CmdChangeFillColor::m_color
QColor m_color
new color
Definition: cmdchangefillcolor.h:35
Uml::CmdChangeFillColor::redo
void redo()
Definition: cmdchangefillcolor.cpp:35
Uml::CmdChangeFillColor::~CmdChangeFillColor
~CmdChangeFillColor()
Definition: cmdchangefillcolor.cpp:31
Uml::CmdChangeFillColor::undo
void undo()
Definition: cmdchangefillcolor.cpp:40
cmdbasewidgetcommand.h
Uml
Definition: basictypes.cpp:37