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

umbrello 2.38.2 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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