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

umbrello 2.32.0 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
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
Uml::CmdChangeLineColor
Definition: cmdchangelinecolor.h:23
Uml::CmdChangeLineColor::redo
void redo()
Definition: cmdchangelinecolor.cpp:36
Uml::CmdChangeLineColor::CmdChangeLineColor
CmdChangeLineColor(UMLWidget *w, const QColor &col)
Definition: cmdchangelinecolor.cpp:22
Uml::CmdChangeLineColor::m_oldUsesDiagramValue
bool m_oldUsesDiagramValue
Definition: cmdchangelinecolor.h:33
Uml::CmdChangeLineColor::m_newColor
QColor m_newColor
Definition: cmdchangelinecolor.h:32
Uml::CmdChangeLineColor::m_oldColor
QColor m_oldColor
Definition: cmdchangelinecolor.h:31
Uml::CmdChangeLineColor::~CmdChangeLineColor
~CmdChangeLineColor()
Definition: cmdchangelinecolor.cpp:32
Uml::CmdChangeLineColor::undo
void undo()
Definition: cmdchangelinecolor.cpp:41
cmdbasewidgetcommand.h
Uml
Definition: basictypes.cpp:37