umbrello: umbrello/umlwidgets/boxwidget.h Source File

umbrello 2.39.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
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 = nullptr);
29 virtual void saveToXMI(QXmlStreamWriter& writer);
30
31 virtual bool showPropertiesDialog();
32
33protected:
34 void toForeground();
35};
36
37#endif
BoxWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Definition boxwidget.cpp:46
BoxWidget::~BoxWidget
virtual ~BoxWidget()
Definition boxwidget.cpp:39
BoxWidget::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition boxwidget.cpp:60
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::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition boxwidget.cpp:70
UMLScene
Definition umlscene.h:65
UMLWidget::UMLWidget
UMLWidget(UMLScene *scene, WidgetType type=wt_UMLWidget, UMLObject *o=nullptr)
Definition umlwidget.cpp:86
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