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 {
22 class CmdChangeTextColor : public CmdBaseWidgetCommand
23 {
24 public:
25 CmdChangeTextColor(UMLWidget *w, const QColor& col);
26 ~CmdChangeTextColor();
27 void redo();
28 void undo();
29
30 private:
31 QColor m_oldColor;
32 QColor m_newColor;
33 bool m_oldUsesDiagramValue;
34 };
35 }
36
37 #endif // CMDCHANGELINECOLOR_H
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
Uml::CmdChangeTextColor::undo
void undo()
Definition: cmdchangetextcolor.cpp:41
Uml::CmdChangeTextColor::redo
void redo()
Definition: cmdchangetextcolor.cpp:36
Uml::CmdChangeTextColor::CmdChangeTextColor
CmdChangeTextColor(UMLWidget *w, const QColor &col)
Definition: cmdchangetextcolor.cpp:22
cmdbasewidgetcommand.h
cmdchangetextcolor.h
umlwidget.h
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:76
Uml
Definition: basictypes.cpp:37
Uml::CmdChangeTextColor::m_newColor
QColor m_newColor
Definition: cmdchangetextcolor.h:32
umlscene.h
WidgetBase::setUsesDiagramTextColor
void setUsesDiagramTextColor(bool state)
Definition: widgetbase.cpp:450
Uml::CmdChangeTextColor::~CmdChangeTextColor
~CmdChangeTextColor()
Definition: cmdchangetextcolor.cpp:32
Uml::CmdChangeTextColor::m_oldColor
QColor m_oldColor
Definition: cmdchangetextcolor.h:31
Uml::CmdChangeTextColor
Definition: cmdchangetextcolor.h:23
WidgetBase::usesDiagramTextColor
bool usesDiagramTextColor() const
Definition: widgetbase.cpp:440
UMLWidget::setTextColorCmd
void setTextColorCmd(const QColor &color)
Definition: umlwidget.cpp:1108
Uml::CmdChangeTextColor::m_oldUsesDiagramValue
bool m_oldUsesDiagramValue
Definition: cmdchangetextcolor.h:33