umbrello: umbrello/menus/widgetbasepopupmenu.h Source File

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

widgetbasepopupmenu.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2018-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef WIDGETBASEPOPUPMENU_H
7#define WIDGETBASEPOPUPMENU_H
8
9#include "listpopupmenu.h"
10
14 class WidgetBasePopupMenu : public ListPopupMenu
15{
16public:
17 WidgetBasePopupMenu(QWidget * parent, WidgetBase * widget, bool multi, WidgetBase::WidgetType uniqueType = WidgetBase::wt_UMLWidget);
18
19protected:
20 void makeMultiClassifierShowPopup(WidgetBase::WidgetType type);
21 void makeClassifierShowPopup(ClassifierWidget *c);
22 void insertSingleSelectionMenu(WidgetBase* widget);
23 void insertMultiSelectionMenu(WidgetBase::WidgetType uniqueType);
24 void insertStdItems(bool insertLeadingSeparator = true, WidgetBase::WidgetType type = WidgetBase::wt_UMLWidget);
25 void insertSubMenuAlign();
26 void insertSubMenuColor(bool fc);
27 void insertSubMenuNew(WidgetBase::WidgetType type, KMenu *menu=0);
28 void insertSubMenuShowEntity(EntityWidget *widget);
29 KMenu *makeCategoryTypeMenu(UMLCategory *category);
30};
31
32#endif // WIDGETBASEPOPUPMENU_H
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:28
EntityWidget
A graphical version of an entity.
Definition: entitywidget.h:25
ListPopupMenu
Displays a popup menu.
Definition: listpopupmenu.h:33
UMLCategory
Information for a non-graphical UML Category.
Definition: category.h:22
WidgetBasePopupMenu
Definition: widgetbasepopupmenu.h:15
WidgetBasePopupMenu::insertSubMenuShowEntity
void insertSubMenuShowEntity(EntityWidget *widget)
Definition: widgetbasepopupmenu.cpp:721
WidgetBasePopupMenu::makeCategoryTypeMenu
KMenu * makeCategoryTypeMenu(UMLCategory *category)
WidgetBasePopupMenu::insertSubMenuColor
void insertSubMenuColor(bool fc)
Definition: widgetbasepopupmenu.cpp:611
WidgetBasePopupMenu::insertStdItems
void insertStdItems(bool insertLeadingSeparator=true, WidgetBase::WidgetType type=WidgetBase::wt_UMLWidget)
Definition: widgetbasepopupmenu.cpp:568
WidgetBasePopupMenu::insertSubMenuNew
void insertSubMenuNew(WidgetBase::WidgetType type, KMenu *menu=0)
Definition: widgetbasepopupmenu.cpp:626
WidgetBasePopupMenu::insertSubMenuAlign
void insertSubMenuAlign()
Definition: widgetbasepopupmenu.cpp:590
WidgetBasePopupMenu::makeClassifierShowPopup
void makeClassifierShowPopup(ClassifierWidget *c)
Definition: widgetbasepopupmenu.cpp:70
WidgetBasePopupMenu::WidgetBasePopupMenu
WidgetBasePopupMenu(QWidget *parent, WidgetBase *widget, bool multi, WidgetBase::WidgetType uniqueType=WidgetBase::wt_UMLWidget)
Definition: widgetbasepopupmenu.cpp:41
WidgetBasePopupMenu::insertMultiSelectionMenu
void insertMultiSelectionMenu(WidgetBase::WidgetType uniqueType)
Definition: widgetbasepopupmenu.cpp:528
WidgetBasePopupMenu::insertSingleSelectionMenu
void insertSingleSelectionMenu(WidgetBase *widget)
Definition: widgetbasepopupmenu.cpp:157
WidgetBasePopupMenu::makeMultiClassifierShowPopup
void makeMultiClassifierShowPopup(WidgetBase::WidgetType type)
Definition: widgetbasepopupmenu.cpp:110
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:101
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:107
WidgetBase::wt_UMLWidget
@ wt_UMLWidget
Definition: widgetbase.h:109
listpopupmenu.h