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

#include <selectdiagramwidget.h>

Inheritance diagram for SelectDiagramWidget:
Collaboration diagram for SelectDiagramWidget:

Public Member Functions

 SelectDiagramWidget (const QString &title, QWidget *parent=nullptr)
 
void setupWidget (Uml::DiagramType::Enum type, const QString &currentName, const QString &excludeName, bool withNewEntry=true)
 
QString currentText ()
 
Uml::ID::Type currentID ()
 
- 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from ComboBoxWidgetBase
QLabel * m_label
 
QLabel * m_postLabel
 
KComboBox * m_editField
 

Detailed Description

This widget provides selecting a diagram from the list of currently available diagrams

Author
Ralf Habacker

Constructor & Destructor Documentation

◆ SelectDiagramWidget()

SelectDiagramWidget::SelectDiagramWidget ( const QString &  title,
QWidget *  parent = nullptr 
)
explicit

constructor

Parameters
titletitle shown as label
parentparent widget

Member Function Documentation

◆ currentID()

Uml::ID::Type SelectDiagramWidget::currentID ( )

Return the id of the currently selected diagram

Returns
id of diagram
Uml::ID::None in case the diagram was not found
Here is the call graph for this function:

◆ currentText()

QString SelectDiagramWidget::currentText ( )

Return current text

Returns
The text entered by the user

◆ setupWidget()

void SelectDiagramWidget::setupWidget ( Uml::DiagramType::Enum  type,
const QString &  currentName,
const QString &  excludeName,
bool  withNewEntry = true 
)

setup widget woth diagram type, currently used diagram, diagram name to exclude and an option to choose a new diagram

Parameters
type
currentName
excludeName
withNewEntry
Here is the call graph for this function:

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