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

cmdchangelinecolor.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 CMDCHANGELINECOLOR_H
12 #define CMDCHANGELINECOLOR_H
13
14 #include "cmdbasewidgetcommand.h"
15
16 #include <QColor>
17
18 class UMLWidget;
19
20 namespace Uml
21 {
22 class CmdChangeLineColor : public CmdBaseWidgetCommand
23 {
24 public:
25 CmdChangeLineColor(UMLWidget *w, const QColor& col);
26 ~CmdChangeLineColor();
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
Uml::CmdChangeLineColor::~CmdChangeLineColor
~CmdChangeLineColor()
Definition: cmdchangelinecolor.cpp:32
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
WidgetBase::setUsesDiagramLineColor
void setUsesDiagramLineColor(bool state)
Definition: widgetbase.cpp:474
Uml::CmdChangeLineColor
Definition: cmdchangelinecolor.h:23
cmdbasewidgetcommand.h
WidgetBase::usesDiagramLineColor
bool usesDiagramLineColor() const
Definition: widgetbase.cpp:464
umlwidget.h
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
Uml::CmdChangeLineColor::m_newColor
QColor m_newColor
Definition: cmdchangelinecolor.h:32
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:76
Uml::CmdChangeLineColor::CmdChangeLineColor
CmdChangeLineColor(UMLWidget *w, const QColor &col)
Definition: cmdchangelinecolor.cpp:22
UMLWidget::setLineColorCmd
virtual void setLineColorCmd(const QColor &color)
Definition: umlwidget.cpp:1128
Uml
Definition: basictypes.cpp:37
WidgetBase::lineColor
QColor lineColor() const
Definition: widgetbase.cpp:356
Uml::CmdChangeLineColor::m_oldColor
QColor m_oldColor
Definition: cmdchangelinecolor.h:31
Uml::CmdChangeLineColor::redo
void redo()
Definition: cmdchangelinecolor.cpp:36
Uml::CmdChangeLineColor::undo
void undo()
Definition: cmdchangelinecolor.cpp:41
cmdchangelinecolor.h
Uml::CmdChangeLineColor::m_oldUsesDiagramValue
bool m_oldUsesDiagramValue
Definition: cmdchangelinecolor.h:33