umbrello  2.39.2
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 
22 class BoxWidget : public UMLWidget
23 {
24 public:
26  virtual ~BoxWidget();
27 
28  virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
29  virtual void saveToXMI(QXmlStreamWriter& writer);
30 
31  virtual bool showPropertiesDialog();
32 
33 protected:
34  void toForeground();
35 };
36 
37 #endif
Displays a box.
Definition: boxwidget.h:23
virtual ~BoxWidget()
Definition: boxwidget.cpp:39
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: boxwidget.cpp:60
void toForeground()
Definition: boxwidget.cpp:83
BoxWidget(UMLScene *scene, Uml::ID::Type id=Uml::ID::None, WidgetType type=WidgetBase::wt_Box)
Definition: boxwidget.cpp:27
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: boxwidget.cpp:46
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