umbrello 2.32.3 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 * 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 CMDRESIZEWIDGET_H
12 #define CMDRESIZEWIDGET_H
13
14 #include "cmdbasewidgetcommand.h"
15
16 #include <QSizeF>
17
18 class UMLWidget;
19
20 namespace Uml
21 {
22 class CmdResizeWidget : public CmdBaseWidgetCommand
23 {
24 public:
25 explicit CmdResizeWidget(UMLWidget* widget);
26 ~CmdResizeWidget();
27
28 void redo();
29 void undo();
30
31 private:
32 QSizeF m_size;
33 QSizeF m_sizeOld;
34 };
35 }
36
37 #endif
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
Uml::CmdResizeWidget
Definition: cmdresizewidget.h:23
UMLWidget::startResizeSize
QSizeF startResizeSize() const
Definition: umlwidget.cpp:616
Uml::CmdResizeWidget::CmdResizeWidget
CmdResizeWidget(UMLWidget *widget)
Definition: cmdresizewidget.cpp:22
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
cmdbasewidgetcommand.h
Uml::CmdResizeWidget::undo
void undo()
Definition: cmdresizewidget.cpp:41
Uml::CmdResizeWidget::~CmdResizeWidget
~CmdResizeWidget()
Definition: cmdresizewidget.cpp:32
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::CmdResizeWidget::redo
void redo()
Definition: cmdresizewidget.cpp:36
Uml::CmdResizeWidget::m_size
QSizeF m_size
Definition: cmdresizewidget.h:32
Uml
Definition: basictypes.cpp:37
umlscene.h
UMLWidget::setSize
void setSize(qreal width, qreal height)
Definition: umlwidget.cpp:1745
Uml::CmdResizeWidget::m_sizeOld
QSizeF m_sizeOld
Definition: cmdresizewidget.h:33
cmdresizewidget.h
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121