umbrello  2.32.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
umlstereotypewidget.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-2014,2019 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef UMLSTEREOTYPEWIDGET_H
12 #define UMLSTEREOTYPEWIDGET_H
13 
14 #include "comboboxwidgetbase.h"
15 
16 class UMLObject;
17 class UMLStereotype;
18 
20 {
21 public:
22  explicit UMLStereotypeWidget(UMLObject *object, QWidget *parent=0);
23 
24  void setEditable(bool state);
25  void apply();
26 
27 protected:
29 
30  void insertItems(UMLStereotype *type);
31 };
32 
33 #endif // UMLSTEREOTYPEWIDGET_H
stereotype.h
UMLDoc::stereotypes
const UMLStereotypeList & stereotypes() const
Definition: umldoc.cpp:1387
UMLStereotype::name
QString name(bool includeAdornments=false) const
Definition: stereotype.cpp:147
UMLStereotypeWidget::m_object
UMLObject * m_object
Definition: umlstereotypewidget.h:28
UMLObject
The base class for UML objects.
Definition: umlobject.h:73
ComboBoxWidgetBase
Definition: comboboxwidgetbase.h:20
UMLStereotype
Sets up stereotype information.
Definition: stereotype.h:40
UMLStereotypeWidget::apply
void apply()
Definition: umlstereotypewidget.cpp:48
UMLStereotypeWidget::insertItems
void insertItems(UMLStereotype *type)
Definition: umlstereotypewidget.cpp:75
i18n
#define i18n
Definition: main.cpp:39
basictypes.h
v
std::vector< std::string > v
Definition: cxx11-initializer-lists.h:19
types
Definition: types.py:1
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(UMLStereotype *)
UMLStereotypeWidget::UMLStereotypeWidget
UMLStereotypeWidget(UMLObject *object, QWidget *parent=0)
Definition: umlstereotypewidget.cpp:28
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLStereotypeWidget
Definition: umlstereotypewidget.h:19
UMLDoc
Definition: umldoc.h:74
UMLDoc::addStereotype
void addStereotype(UMLStereotype *s)
Definition: umldoc.cpp:1354
uml.h
umlstereotypewidget.h
ComboBoxWidgetBase::m_editField
KComboBox * m_editField
Definition: comboboxwidgetbase.h:30
UMLObject::umlStereotype
UMLStereotype * umlStereotype()
Definition: umlobject.cpp:551
UMLObject::setUMLStereotype
void setUMLStereotype(UMLStereotype *stereo)
Definition: umlobject.cpp:501
UMLStereotypeWidget::setEditable
void setEditable(bool state)
Definition: umlstereotypewidget.cpp:40
comboboxwidgetbase.h
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h