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

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 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 CMDMOVEWIDGET_H
7#define CMDMOVEWIDGET_H
8
9#include "cmdbasewidgetcommand.h"
10
11#include <QPointF>
12
13class UMLWidget;
14
15namespace Uml
16{
17 class CmdMoveWidget : public CmdBaseWidgetCommand
18 {
19 public:
20 explicit CmdMoveWidget(UMLWidget* widget);
21 ~CmdMoveWidget();
22
23 void redo();
24 void undo();
25
26 private:
27 QPointF m_pos;
28 QPointF m_posOld;
29
30 };
31}
32
33#endif
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
Uml::CmdBaseWidgetCommand
Definition: cmdbasewidgetcommand.h:21
Uml::CmdBaseWidgetCommand::widget
UMLWidget * widget()
Definition: cmdbasewidgetcommand.cpp:71
Uml::CmdMoveWidget
Definition: cmdmovewidget.h:18
Uml::CmdMoveWidget::m_pos
QPointF m_pos
Definition: cmdmovewidget.h:27
Uml::CmdMoveWidget::m_posOld
QPointF m_posOld
Definition: cmdmovewidget.h:28
Uml::CmdMoveWidget::undo
void undo()
Definition: cmdmovewidget.cpp:38
Uml::CmdMoveWidget::~CmdMoveWidget
~CmdMoveWidget()
Definition: cmdmovewidget.cpp:27
Uml::CmdMoveWidget::CmdMoveWidget
CmdMoveWidget(UMLWidget *widget)
Definition: cmdmovewidget.cpp:18
Uml::CmdMoveWidget::redo
void redo()
Definition: cmdmovewidget.cpp:31
cmdbasewidgetcommand.h
Uml
Definition: basictypes.cpp:23