umbrello  2.31.1
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
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:49
Uml::CmdChangeTextColor::redo
void redo()
Definition: cmdchangetextcolor.cpp:44
Uml::CmdChangeTextColor::CmdChangeTextColor
CmdChangeTextColor(UMLWidget *w, const QColor &col)
Definition: cmdchangetextcolor.cpp:30
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:84
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:40
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