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

cmdmovewidget.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 CMDMOVEWIDGET_H
12 #define CMDMOVEWIDGET_H
13
14 #include "cmdbasewidgetcommand.h"
15
16 #include <QPointF>
17
18 class UMLWidget;
19
20 namespace Uml
21 {
22 class CmdMoveWidget : public CmdBaseWidgetCommand
23 {
24 public:
25 explicit CmdMoveWidget(UMLWidget* widget);
26 ~CmdMoveWidget();
27
28 void redo();
29 void undo();
30
31 private:
32 QPointF m_pos;
33 QPointF m_posOld;
34
35 };
36 }
37
38 #endif
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
cmdmovewidget.h
Uml::CmdMoveWidget::redo
void redo()
Definition: cmdmovewidget.cpp:36
cmdbasewidgetcommand.h
Uml::CmdMoveWidget::CmdMoveWidget
CmdMoveWidget(UMLWidget *widget)
Definition: cmdmovewidget.cpp:23
Uml::CmdMoveWidget::m_pos
QPointF m_pos
Definition: cmdmovewidget.h:32
Uml::CmdMoveWidget::undo
void undo()
Definition: cmdmovewidget.cpp:43
umlwidget.h
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:26
Uml::CmdMoveWidget::~CmdMoveWidget
~CmdMoveWidget()
Definition: cmdmovewidget.cpp:32
Uml::CmdMoveWidget
Definition: cmdmovewidget.h:23
i18n
#define i18n
Definition: main.cpp:39
basictypes.h
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:76
Uml
Definition: basictypes.cpp:37
umlscene.h
Uml::CmdMoveWidget::m_posOld
QPointF m_posOld
Definition: cmdmovewidget.h:33
UMLWidget::updateGeometry
void updateGeometry(bool withAssocs=true)
Definition: umlwidget.cpp:1781
UMLWidget::startMovePosition
QPointF startMovePosition() const
Definition: umlwidget.cpp:598