umbrello: umbrello/umlwidgets/boxwidget.h Source File

umbrello 2.32.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 * 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:
30 explicit BoxWidget(UMLScene * scene, Uml::ID::Type id = Uml::ID::None, WidgetType type = WidgetBase::wt_Box);
31 virtual ~BoxWidget();
32
33 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
34 virtual void saveToXMI1(QXmlStreamWriter& writer);
35
36 virtual bool showPropertiesDialog();
37
38 protected:
39 void toForeground();
40 };
41
42 #endif
BoxWidget
Displays a box.
Definition: boxwidget.h:28
BoxWidget::~BoxWidget
virtual ~BoxWidget()
Definition: boxwidget.cpp:44
BoxWidget::toForeground
void toForeground()
Definition: boxwidget.cpp:88
BoxWidget::BoxWidget
BoxWidget(UMLScene *scene, Uml::ID::Type id=Uml::ID::None, WidgetType type=WidgetBase::wt_Box)
Definition: boxwidget.cpp:32
BoxWidget::saveToXMI1
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: boxwidget.cpp:65
BoxWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: boxwidget.cpp:51
BoxWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: boxwidget.cpp:75
UMLScene
Definition: umlscene.h:70
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:112
WidgetBase::wt_Box
@ wt_Box
Definition: widgetbase.h:125
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:387
Uml::ID::Type
std::string Type
Definition: basictypes.h:385
umlwidget.h