umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
UMLDatatypeWidget Class Reference

#include <umldatatypewidget.h>

Inheritance diagram for UMLDatatypeWidget:
Collaboration diagram for UMLDatatypeWidget:

Signals

void editTextChanged (const QString &)
 

Public Member Functions

 UMLDatatypeWidget (UMLAttribute *attribute, QWidget *parent=0)
 
 UMLDatatypeWidget (UMLClassifierListItem *datatype, QWidget *parent=0)
 
 UMLDatatypeWidget (UMLEntityAttribute *entityAttribute, QWidget *parent=0)
 
 UMLDatatypeWidget (UMLOperation *operation, QWidget *parent=0)
 
 UMLDatatypeWidget (UMLTemplate *_template, QWidget *parent=0)
 
bool apply ()
 
void reset ()
 
- Public Member Functions inherited from ComboBoxWidgetBase
 ComboBoxWidgetBase (const QString &title, const QString &postLabel=QString(), QWidget *parent=nullptr)
 
void addToLayout (QGridLayout *layout, int row, int startColumn=0)
 
KComboBox * editField ()
 

Protected Member Functions

void init ()
 
bool applyAttribute ()
 
bool applyEntityAttribute ()
 
bool applyOperation ()
 
bool applyParameter ()
 
bool applyTemplate ()
 
void initTypesBox (QStringList &types, const QString &type)
 
void insertTypesFromConcepts (QStringList &types, bool fullName=true)
 
void insertTypesFromDatatypes (QStringList &types)
 
void insertTypesSortedAttribute (const QString &type)
 
void insertTypesSortedEntityAttribute (const QString &type)
 
void insertTypesSortedOperation (const QString &type)
 
void insertTypesSortedParameter (const QString &type)
 
void insertTypesSortedTemplate (const QString &type)
 

Protected Attributes

UMLAttributem_attribute
 
UMLClassifierListItemm_datatype
 
UMLEntityAttributem_entityAttribute
 
UMLOperationm_operation
 
UMLTemplatem_template
 
UMLClassifierm_parent
 
- Protected Attributes inherited from ComboBoxWidgetBase
QLabel * m_label
 
QLabel * m_postLabel
 
KComboBox * m_editField
 

Constructor & Destructor Documentation

◆ UMLDatatypeWidget() [1/5]

UMLDatatypeWidget::UMLDatatypeWidget ( UMLAttribute attribute,
QWidget *  parent = 0 
)
Here is the call graph for this function:

◆ UMLDatatypeWidget() [2/5]

UMLDatatypeWidget::UMLDatatypeWidget ( UMLClassifierListItem datatype,
QWidget *  parent = 0 
)
Here is the call graph for this function:

◆ UMLDatatypeWidget() [3/5]

UMLDatatypeWidget::UMLDatatypeWidget ( UMLEntityAttribute entityAttribute,
QWidget *  parent = 0 
)
Here is the call graph for this function:

◆ UMLDatatypeWidget() [4/5]

UMLDatatypeWidget::UMLDatatypeWidget ( UMLOperation operation,
QWidget *  parent = 0 
)
Here is the call graph for this function:

◆ UMLDatatypeWidget() [5/5]

UMLDatatypeWidget::UMLDatatypeWidget ( UMLTemplate _template,
QWidget *  parent = 0 
)
Here is the call graph for this function:

Member Function Documentation

◆ apply()

bool UMLDatatypeWidget::apply ( )
Here is the call graph for this function:

◆ applyAttribute()

bool UMLDatatypeWidget::applyAttribute ( )
protected
Here is the call graph for this function:

◆ applyEntityAttribute()

bool UMLDatatypeWidget::applyEntityAttribute ( )
protected
Here is the call graph for this function:

◆ applyOperation()

bool UMLDatatypeWidget::applyOperation ( )
protected
Here is the call graph for this function:

◆ applyParameter()

bool UMLDatatypeWidget::applyParameter ( )
protected
Here is the call graph for this function:

◆ applyTemplate()

bool UMLDatatypeWidget::applyTemplate ( )
protected
Here is the call graph for this function:

◆ editTextChanged

void UMLDatatypeWidget::editTextChanged ( const QString &  _t1)
signal

◆ init()

void UMLDatatypeWidget::init ( )
protected
Here is the call graph for this function:

◆ initTypesBox()

void UMLDatatypeWidget::initTypesBox ( QStringList &  types,
const QString &  type 
)
protected

Initialize types combo box from a list of types and a selected type.

Parameters
typeslist of types to add to combo box
typeselected type

◆ insertTypesFromConcepts()

void UMLDatatypeWidget::insertTypesFromConcepts ( QStringList &  types,
bool  fullName = true 
)
protected

Add classes and interfaces from document instance to the given string list.

Parameters
typeslist to store the classes and interfaces
fullNameif true then insert names including their package path
Here is the call graph for this function:

◆ insertTypesFromDatatypes()

void UMLDatatypeWidget::insertTypesFromDatatypes ( QStringList &  types)
protected

Add datatypes from document instance to the given string list.

Parameters
typeslist to store the datatypes
Here is the call graph for this function:

◆ insertTypesSortedAttribute()

void UMLDatatypeWidget::insertTypesSortedAttribute ( const QString &  type)
protected

Inserts type into the type-combobox as well as its completion object. The combobox is cleared and all types together with the optional new one sorted and then added again.

Parameters
typea new type to add
Here is the call graph for this function:

◆ insertTypesSortedEntityAttribute()

void UMLDatatypeWidget::insertTypesSortedEntityAttribute ( const QString &  type)
protected

Inserts type into the type-combobox as well as its completion object.

Here is the call graph for this function:

◆ insertTypesSortedOperation()

void UMLDatatypeWidget::insertTypesSortedOperation ( const QString &  type)
protected

Inserts type into the type-combobox. The combobox is cleared and all types together with the optional new one sorted and then added again.

Parameters
typea new type to add and selected
Here is the call graph for this function:

◆ insertTypesSortedParameter()

void UMLDatatypeWidget::insertTypesSortedParameter ( const QString &  type)
protected

Inserts type into the type-combobox as well as its completion object. The combobox is cleared and all types together with the optional new one sorted and then added again.

Parameters
typea new type to add and selected
Here is the call graph for this function:

◆ insertTypesSortedTemplate()

void UMLDatatypeWidget::insertTypesSortedTemplate ( const QString &  type)
protected

Inserts type into the type-combobox. The combobox is cleared and all types together with the optional new one sorted and then added again.

Parameters
typea new type to add and selected
Here is the call graph for this function:

◆ reset()

void UMLDatatypeWidget::reset ( )

Member Data Documentation

◆ m_attribute

UMLAttribute* UMLDatatypeWidget::m_attribute
protected

◆ m_datatype

UMLClassifierListItem* UMLDatatypeWidget::m_datatype
protected

◆ m_entityAttribute

UMLEntityAttribute* UMLDatatypeWidget::m_entityAttribute
protected

◆ m_operation

UMLOperation* UMLDatatypeWidget::m_operation
protected

◆ m_parent

UMLClassifier* UMLDatatypeWidget::m_parent
protected

◆ m_template

UMLTemplate* UMLDatatypeWidget::m_template
protected

The documentation for this class was generated from the following files: