umbrello: umbrello/dialogs/widgets/selectdiagramwidget.h Source File

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

selectdiagramwidget.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) 2019-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef SELECTDIAGRAMWIDGET_H
12 #define SELECTDIAGRAMWIDGET_H
13
14 #include "basictypes.h"
15
16 #include "comboboxwidgetbase.h"
17
22 class SelectDiagramWidget : public ComboBoxWidgetBase
23 {
24 Q_OBJECT
25 public:
26 explicit SelectDiagramWidget(const QString &title, QWidget *parent = nullptr);
27
28 void setupWidget(Uml::DiagramType::Enum type, const QString &currentName, const QString &excludeName, bool withNewEntry = true);
29 QString currentText();
30 Uml::ID::Type currentID();
31 };
32
33 #endif // SELECTDIAGRAMWIDGET_H
basictypes.h
ComboBoxWidgetBase
Definition: comboboxwidgetbase.h:21
SelectDiagramWidget
Definition: selectdiagramwidget.h:23
SelectDiagramWidget::setupWidget
void setupWidget(Uml::DiagramType::Enum type, const QString &currentName, const QString &excludeName, bool withNewEntry=true)
Definition: selectdiagramwidget.cpp:41
SelectDiagramWidget::SelectDiagramWidget
SelectDiagramWidget(const QString &title, QWidget *parent=nullptr)
Definition: selectdiagramwidget.cpp:29
SelectDiagramWidget::currentText
QString currentText()
Definition: selectdiagramwidget.cpp:69
SelectDiagramWidget::currentID
Uml::ID::Type currentID()
Definition: selectdiagramwidget.cpp:79
comboboxwidgetbase.h
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Uml::ID::Type
std::string Type
Definition: basictypes.h:385