umbrello  2.34.3
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 
13 class UMLWidget;
14 
15 namespace Uml
16 {
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:35
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:321
Uml::CmdChangeFont::CmdChangeFont
CmdChangeFont(UMLWidget *widget, QFont font)
Definition: cmdchangefont.cpp:16
cmdchangefont.h
cmdbasewidgetcommand.h
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:555
Uml::CmdChangeFont::m_newFont
QFont m_newFont
Definition: cmdchangefont.h:26
umlwidget.h
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:20
i18n
#define i18n
Definition: main.cpp:35
Uml::CmdChangeFont::undo
void undo()
Definition: cmdchangefont.cpp:25
Uml::CmdChangeFont
Definition: cmdchangefont.h:17
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:71
UMLWidget::setFontCmd
void setFontCmd(const QFont &font)
Definition: umlwidget.cpp:2075
Uml
Definition: basictypes.cpp:22
Uml::CmdChangeFont::redo
void redo()
Definition: cmdchangefont.cpp:30
Uml::CmdChangeFont::m_oldFont
QFont m_oldFont
Definition: cmdchangefont.h:27