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

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

cmdchangefont.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 CMDCHANGEFONT_H
7#define CMDCHANGEFONT_H
8
9#include "cmdbasewidgetcommand.h"
10
11#include <QFont>
12
13class UMLWidget;
14
15namespace Uml
16{
17 class CmdChangeFont : public CmdBaseWidgetCommand
18 {
19 public:
20 CmdChangeFont(UMLWidget* widget, QFont font);
21
22 void undo();
23 void redo();
24
25 private:
26 QFont m_newFont;
27 QFont m_oldFont;
28 };
29}
30
31#endif // CMDCHANGEFONT_H
UMLWidget
The base class for graphical UML objects.
Definition umlwidget.h:36
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition cmdbasewidgetcommand.cpp:71
Uml::CmdBaseWidgetCommand::CmdBaseWidgetCommand
CmdBaseWidgetCommand(UMLWidget *widget)
Definition cmdbasewidgetcommand.cpp:22
Uml::CmdChangeFont::m_oldFont
QFont m_oldFont
Definition cmdchangefont.h:27
Uml::CmdChangeFont::undo
void undo()
Definition cmdchangefont.cpp:25
Uml::CmdChangeFont::CmdChangeFont
CmdChangeFont(UMLWidget *widget, QFont font)
Definition cmdchangefont.cpp:16
Uml::CmdChangeFont::m_newFont
QFont m_newFont
Definition cmdchangefont.h:26
Uml::CmdChangeFont::redo
void redo()
Definition cmdchangefont.cpp:30
cmdbasewidgetcommand.h
Uml
Definition basictypes.cpp:17