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:
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(QDomDocument& qDoc, QDomElement& qElement);
35
36 virtual bool showPropertiesDialog();
37
38 protected:
39 void toForeground();
40 };
41
42 #endif
BoxWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: boxwidget.cpp:50
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
UMLWidget::setPenFromSettings
void setPenFromSettings(QPainter &p)
Definition: umlwidget.cpp:1392
BoxWidget::BoxWidget
BoxWidget(UMLScene *scene, Uml::ID::Type id=Uml::ID::None, WidgetType type=WidgetBase::wt_Box)
Definition: boxwidget.cpp:31
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
BoxWidget::~BoxWidget
virtual ~BoxWidget()
Definition: boxwidget.cpp:43
UMLWidget::setLineColor
virtual void setLineColor(const QColor &color)
Definition: umlwidget.cpp:1137
WidgetBase::setUsesDiagramLineColor
void setUsesDiagramLineColor(bool state)
Definition: widgetbase.cpp:474
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
WidgetBase::wt_Box
@ wt_Box
Definition: widgetbase.h:124
umlwidget.h
boxwidget.h
BoxWidget::toForeground
void toForeground()
Definition: boxwidget.cpp:87
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3136
BoxWidget
Displays a box.
Definition: boxwidget.h:28
Uml
Definition: basictypes.cpp:37
BoxWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: boxwidget.cpp:64
WidgetBase::lineColor
QColor lineColor() const
Definition: widgetbase.cpp:356
uml.h
debug_utils.h
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:111
UMLScene
Definition: umlscene.h:69
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
BoxWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: boxwidget.cpp:74
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
umldoc.h
WidgetBase::umlDoc
UMLDoc * umlDoc() const
Definition: widgetbase.cpp:172
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869