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

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

cmdchangelinewidth.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 CMDCHANGELINEWIDTH_H
12 #define CMDCHANGELINEWIDTH_H
13
14 #include "cmdbasewidgetcommand.h"
15
16 class UMLWidget;
17
18 namespace Uml
19 {
20 class CmdChangeLineWidth : public CmdBaseWidgetCommand
21 {
22 public:
23 CmdChangeLineWidth(UMLWidget *w, const uint width);
24 ~CmdChangeLineWidth();
25 void redo();
26 void undo();
27
28 private:
29 uint m_oldWidth;
30 uint m_newWidth;
31 };
32 }
33
34 #endif // CMDCHANGELINEWIDTH_H
Uml::CmdChangeLineWidth::CmdChangeLineWidth
CmdChangeLineWidth(UMLWidget *w, const uint width)
Definition: cmdchangelinewidth.cpp:23
Uml::CmdChangeLineWidth::m_oldWidth
uint m_oldWidth
Definition: cmdchangelinewidth.h:29
Uml::CmdChangeLineWidth::undo
void undo()
Definition: cmdchangelinewidth.cpp:41
cmdchangelinewidth.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
cmdbasewidgetcommand.h
Uml::CmdChangeLineWidth::m_newWidth
uint m_newWidth
Definition: cmdchangelinewidth.h:30
Uml::CmdChangeLineWidth
Definition: cmdchangelinewidth.h:21
umlwidget.h
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
i18n
#define i18n
Definition: main.cpp:39
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:76
Uml
Definition: basictypes.cpp:37
Uml::CmdChangeLineWidth::redo
void redo()
Definition: cmdchangelinewidth.cpp:36
UMLWidget::setLineWidthCmd
void setLineWidthCmd(uint width)
Definition: umlwidget.cpp:1157
umlscene.h
WidgetBase::lineWidth
uint lineWidth() const
Definition: widgetbase.cpp:398
Uml::CmdChangeLineWidth::~CmdChangeLineWidth
~CmdChangeLineWidth()
Definition: cmdchangelinewidth.cpp:32