umbrello  2.39.2
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  SPDX-License-Identifier: GPL-2.0-or-later
3  SPDX-FileCopyrightText: 2002-2014 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5 
6  /* Created By Krzywda Stanislas and Bouchikhi Mohamed-Amine ;) */
7 
8 #ifndef CMDCHANGEFILLCOLOR_H
9 #define CMDCHANGEFILLCOLOR_H
10 
11 #include "cmdbasewidgetcommand.h"
12 
13 #include <QColor>
14 
15 class UMLWidget;
16 
17 namespace Uml
18 {
20  {
21  public:
22  CmdChangeFillColor(UMLWidget* w, const QColor& col);
24 
25  void redo();
26  void undo();
27 
28  private:
29  QColor m_oldColor;
30  QColor m_color;
31 
32  };
33 }
34 
35 #endif /*CMDCHANGEFILLCOLOR_H*/
The base class for graphical UML objects.
Definition: umlwidget.h:36
Definition: cmdbasewidgetcommand.h:21
Definition: cmdchangefillcolor.h:20
CmdChangeFillColor(UMLWidget *w, const QColor &col)
Definition: cmdchangefillcolor.cpp:17
QColor m_oldColor
old color
Definition: cmdchangefillcolor.h:29
QColor m_color
new color
Definition: cmdchangefillcolor.h:30
void redo()
Definition: cmdchangefillcolor.cpp:30
~CmdChangeFillColor()
Definition: cmdchangefillcolor.cpp:26
void undo()
Definition: cmdchangefillcolor.cpp:35
Definition: basictypes.cpp:18