umbrello  2.32.3
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  * 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 #ifndef CMDCHANGETEXTCOLOR_H
12 #define CMDCHANGETEXTCOLOR_H
13 
14 #include "cmdbasewidgetcommand.h"
15 
16 #include <QColor>
17 
18 class UMLWidget;
19 
20 namespace Uml
21 {
23  {
24  public:
25  CmdChangeTextColor(UMLWidget *w, const QColor& col);
27  void redo();
28  void undo();
29 
30  private:
31  QColor m_oldColor;
32  QColor m_newColor;
34  };
35 }
36 
37 #endif // CMDCHANGELINECOLOR_H
The base class for graphical UML objects.
Definition: umlwidget.h:41
Definition: cmdbasewidgetcommand.h:26
Definition: cmdchangetextcolor.h:23
CmdChangeTextColor(UMLWidget *w, const QColor &col)
Definition: cmdchangetextcolor.cpp:22
void redo()
Definition: cmdchangetextcolor.cpp:36
~CmdChangeTextColor()
Definition: cmdchangetextcolor.cpp:32
QColor m_oldColor
Definition: cmdchangetextcolor.h:31
void undo()
Definition: cmdchangetextcolor.cpp:41
QColor m_newColor
Definition: cmdchangetextcolor.h:32
bool m_oldUsesDiagramValue
Definition: cmdchangetextcolor.h:33
Definition: basictypes.cpp:37