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

umbrello 2.32.1 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 * 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 CMDCHANGEFONT_H
12 #define CMDCHANGEFONT_H
13
14 #include "cmdbasewidgetcommand.h"
15
16 #include <QFont>
17
18 class UMLWidget;
19
20 namespace Uml
21 {
22 class CmdChangeFont : public CmdBaseWidgetCommand
23 {
24 public:
25 CmdChangeFont(UMLWidget* widget, QFont font);
26
27 void undo();
28 void redo();
29
30 private:
31 QFont m_newFont;
32 QFont m_oldFont;
33 };
34 }
35
36 #endif // CMDCHANGEFONT_H
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
Uml::CmdChangeFont::CmdChangeFont
CmdChangeFont(UMLWidget *widget, QFont font)
Definition: cmdchangefont.cpp:21
cmdchangefont.h
cmdbasewidgetcommand.h
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:543
Uml::CmdChangeFont::m_newFont
QFont m_newFont
Definition: cmdchangefont.h:31
umlwidget.h
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdChangeFont::undo
void undo()
Definition: cmdchangefont.cpp:30
Uml::CmdChangeFont
Definition: cmdchangefont.h:23
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:76
UMLWidget::setFontCmd
void setFontCmd(const QFont &font)
Definition: umlwidget.cpp:1970
Uml
Definition: basictypes.cpp:37
Uml::CmdChangeFont::redo
void redo()
Definition: cmdchangefont.cpp:35
Uml::CmdChangeFont::m_oldFont
QFont m_oldFont
Definition: cmdchangefont.h:32