umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

umlartifacttypewidget.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) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef UMLARTIFACTTYPEWIDGET_H
12 #define UMLARTIFACTTYPEWIDGET_H
13
14 #include "artifact.h"
15
16 #include <QMap>
17 #include <QWidget>
18
19 class QVBoxLayout;
20 class QGroupBox;
21 class QRadioButton;
22
23 class UMLArtifactTypeWidget : public QWidget
24 {
25 Q_OBJECT
26 public:
27 typedef QMap<UMLArtifact::Draw_Type,QRadioButton*> ButtonMap;
28
29 explicit UMLArtifactTypeWidget(UMLArtifact *a, QWidget *parent = 0);
30 ~UMLArtifactTypeWidget();
31
32 void addToLayout(QVBoxLayout *layout);
33 void apply();
34
35 protected:
36 QGroupBox *m_box;
37 UMLArtifact *m_object;
38 ButtonMap m_buttons;
39
40 };
41
42 #endif // UMLARTIFACTTYPEWIDGET_H
UMLArtifact
Non-graphical information for a Artifact.
Definition: artifact.h:28
Map
QMap< UMLArtifact::Draw_Type, QString > Map
Definition: umlartifacttypewidget.cpp:21
UMLArtifactTypeWidget::~UMLArtifactTypeWidget
~UMLArtifactTypeWidget()
Definition: umlartifacttypewidget.cpp:52
artifact.h
UMLArtifactTypeWidget::apply
void apply()
Definition: umlartifacttypewidget.cpp:69
UMLArtifactTypeWidget::m_buttons
ButtonMap m_buttons
Definition: umlartifacttypewidget.h:38
UMLArtifactTypeWidget::addToLayout
void addToLayout(QVBoxLayout *layout)
Definition: umlartifacttypewidget.cpp:61
UMLArtifactTypeWidget::m_object
UMLArtifact * m_object
Definition: umlartifacttypewidget.h:37
UMLArtifactTypeWidget::ButtonMap
QMap< UMLArtifact::Draw_Type, QRadioButton * > ButtonMap
Definition: umlartifacttypewidget.h:27
umlartifacttypewidget.h
UMLArtifact::defaultDraw
@ defaultDraw
Definition: artifact.h:36
a
QString a
Definition: petalnode.cpp:18
UMLArtifact::table
@ table
Definition: artifact.h:39
i18n
#define i18n
Definition: main.cpp:39
UMLArtifactTypeWidget
Definition: umlartifacttypewidget.h:24
UMLArtifactTypeWidget::UMLArtifactTypeWidget
UMLArtifactTypeWidget(UMLArtifact *a, QWidget *parent=0)
Definition: umlartifacttypewidget.cpp:23
UMLArtifact::library
@ library
Definition: artifact.h:38
uml.h
UMLArtifactTypeWidget::m_box
QGroupBox * m_box
Definition: umlartifacttypewidget.h:36
UMLArtifact::file
@ file
Definition: artifact.h:37
UMLArtifact::setDrawAsType
void setDrawAsType(Draw_Type type)
Definition: artifact.cpp:79