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

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

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