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

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

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

- File List
- File Members

cmdchangelinecolor.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 CMDCHANGELINECOLOR_H
7#define CMDCHANGELINECOLOR_H
8
9#include "cmdbasewidgetcommand.h"
10
11#include <QColor>
12
13class UMLWidget;
14
15namespace Uml
16{
17 class CmdChangeLineColor : public CmdBaseWidgetCommand
18 {
19 public:
20 CmdChangeLineColor(UMLWidget *w, const QColor& col);
21 ~CmdChangeLineColor();
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::CmdChangeLineColor
Definition cmdchangelinecolor.h:18
Uml::CmdChangeLineColor::redo
void redo()
Definition cmdchangelinecolor.cpp:31
Uml::CmdChangeLineColor::CmdChangeLineColor
CmdChangeLineColor(UMLWidget *w, const QColor &col)
Definition cmdchangelinecolor.cpp:17
Uml::CmdChangeLineColor::m_oldUsesDiagramValue
bool m_oldUsesDiagramValue
Definition cmdchangelinecolor.h:28
Uml::CmdChangeLineColor::m_newColor
QColor m_newColor
Definition cmdchangelinecolor.h:27
Uml::CmdChangeLineColor::m_oldColor
QColor m_oldColor
Definition cmdchangelinecolor.h:26
Uml::CmdChangeLineColor::~CmdChangeLineColor
~CmdChangeLineColor()
Definition cmdchangelinecolor.cpp:27
Uml::CmdChangeLineColor::undo
void undo()
Definition cmdchangelinecolor.cpp:36
cmdbasewidgetcommand.h
Uml
Definition basictypes.cpp:18