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 {
25  {
26  public:
27  CmdChangeFillColor(UMLWidget* w, const QColor& col);
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*/
The base class for graphical UML objects.
Definition: umlwidget.h:41
Definition: cmdbasewidgetcommand.h:26
Definition: cmdchangefillcolor.h:25
CmdChangeFillColor(UMLWidget *w, const QColor &col)
Definition: cmdchangefillcolor.cpp:22
QColor m_oldColor
old color
Definition: cmdchangefillcolor.h:34
QColor m_color
new color
Definition: cmdchangefillcolor.h:35
void redo()
Definition: cmdchangefillcolor.cpp:35
~CmdChangeFillColor()
Definition: cmdchangefillcolor.cpp:31
void undo()
Definition: cmdchangefillcolor.cpp:40
Definition: basictypes.cpp:37