umbrello  2.39.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
cmdchangetextcolor.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 #ifndef CMDCHANGETEXTCOLOR_H
7 #define CMDCHANGETEXTCOLOR_H
8 
9 #include "cmdbasewidgetcommand.h"
10 
11 #include <QColor>
12 
13 class UMLWidget;
14 
15 namespace Uml
16 {
18  {
19  public:
20  CmdChangeTextColor(UMLWidget *w, const QColor& col);
22  void redo();
23  void undo();
24 
25  private:
26  QColor m_oldColor;
27  QColor m_newColor;
29  };
30 }
31 
32 #endif // CMDCHANGELINECOLOR_H
The base class for graphical UML objects.
Definition: umlwidget.h:36
Definition: cmdbasewidgetcommand.h:21
Definition: cmdchangetextcolor.h:18
CmdChangeTextColor(UMLWidget *w, const QColor &col)
Definition: cmdchangetextcolor.cpp:17
void redo()
Definition: cmdchangetextcolor.cpp:31
~CmdChangeTextColor()
Definition: cmdchangetextcolor.cpp:27
QColor m_oldColor
Definition: cmdchangetextcolor.h:26
void undo()
Definition: cmdchangetextcolor.cpp:36
QColor m_newColor
Definition: cmdchangetextcolor.h:27
bool m_oldUsesDiagramValue
Definition: cmdchangetextcolor.h:28
Definition: basictypes.cpp:18