umbrello  2.32.3
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  * 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) 2003-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef BOXWIDGET_H
12 #define BOXWIDGET_H
13 
14 //app includes
15 #include "umlwidget.h"
16 
27 class BoxWidget : public UMLWidget
28 {
29 public:
31  virtual ~BoxWidget();
32 
33  virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
34  virtual void saveToXMI1(QDomDocument& qDoc, QDomElement& qElement);
35 
36  virtual bool showPropertiesDialog();
37 
38 protected:
39  void toForeground();
40 };
41 
42 #endif
Displays a box.
Definition: boxwidget.h:28
virtual ~BoxWidget()
Definition: boxwidget.cpp:43
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: boxwidget.cpp:64
void toForeground()
Definition: boxwidget.cpp:87
BoxWidget(UMLScene *scene, Uml::ID::Type id=Uml::ID::None, WidgetType type=WidgetBase::wt_Box)
Definition: boxwidget.cpp:31
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: boxwidget.cpp:50
virtual bool showPropertiesDialog()
Definition: boxwidget.cpp:74
Definition: umlscene.h:69
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetType
Definition: widgetbase.h:111
@ wt_Box
Definition: widgetbase.h:124
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
std::string Type
Definition: basictypes.h:351