umbrello 25.04.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
boxwidget.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef BOXWIDGET_H
7#define BOXWIDGET_H
8
9//app includes
10#include "umlwidget.h"
11
22class BoxWidget : public UMLWidget
23{
24public:
26 virtual ~BoxWidget();
27
28 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
29 virtual void saveToXMI(QXmlStreamWriter& writer);
30
31 virtual bool showPropertiesDialog();
32
33protected:
34 void toForeground();
35};
36
37#endif
Displays a box.
Definition boxwidget.h:23
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition boxwidget.cpp:46
virtual ~BoxWidget()
Definition boxwidget.cpp:39
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition boxwidget.cpp:60
void toForeground()
Definition boxwidget.cpp:83
virtual bool showPropertiesDialog()
Definition boxwidget.cpp:70
Definition umlscene.h:65
The base class for graphical UML objects.
Definition umlwidget.h:36
WidgetType
Definition widgetbase.h:107
@ wt_Box
Definition widgetbase.h:120
const Type None
special value for uninitialized ID
Definition basictypes.h:373
std::string Type
Definition basictypes.h:371