umbrello  2.32.0
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);
31 
32  void addToLayout(QVBoxLayout *layout);
33  void apply();
34 
35 protected:
36  QGroupBox *m_box;
39 
40 };
41 
42 #endif // UMLARTIFACTTYPEWIDGET_H
Definition: umlartifacttypewidget.h:24
~UMLArtifactTypeWidget()
Definition: umlartifacttypewidget.cpp:52
ButtonMap m_buttons
Definition: umlartifacttypewidget.h:38
QMap< UMLArtifact::Draw_Type, QRadioButton * > ButtonMap
Definition: umlartifacttypewidget.h:27
QGroupBox * m_box
Definition: umlartifacttypewidget.h:36
UMLArtifact * m_object
Definition: umlartifacttypewidget.h:37
void addToLayout(QVBoxLayout *layout)
Definition: umlartifacttypewidget.cpp:61
UMLArtifactTypeWidget(UMLArtifact *a, QWidget *parent=0)
Definition: umlartifacttypewidget.cpp:23
void apply()
Definition: umlartifacttypewidget.cpp:69
Non-graphical information for a Artifact.
Definition: artifact.h:28
QString a
Definition: petalnode.cpp:18