umbrello: umbrello/umlwidgets/boxwidget.h Source File

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 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2020 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{
24public:
25 explicit BoxWidget(UMLScene * scene, Uml::ID::Type id = Uml::ID::None, WidgetType type = WidgetBase::wt_Box);
26 virtual ~BoxWidget();
27
28 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
29 virtual void saveToXMI1(QXmlStreamWriter& writer);
30
31 virtual bool showPropertiesDialog();
32
33protected:
34 void toForeground();
35};
36
37#endif
BoxWidget
Displays a box.
Definition: boxwidget.h:23
BoxWidget::~BoxWidget
virtual ~BoxWidget()
Definition: boxwidget.cpp:39
BoxWidget::toForeground
void toForeground()
Definition: boxwidget.cpp:83
BoxWidget::BoxWidget
BoxWidget(UMLScene *scene, Uml::ID::Type id=Uml::ID::None, WidgetType type=WidgetBase::wt_Box)
Definition: boxwidget.cpp:27
BoxWidget::saveToXMI1
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: boxwidget.cpp:60
BoxWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: boxwidget.cpp:46
BoxWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: boxwidget.cpp:70
UMLScene
Definition: umlscene.h:65
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:36
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:107
WidgetBase::wt_Box
@ wt_Box
Definition: widgetbase.h:120
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
umlwidget.h