umbrello: umbrello/menus/widgetbasepopupmenu.h Source File

umbrello 2.32.0 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 * 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) 2018-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef WIDGETBASEPOPUPMENU_H
12 #define WIDGETBASEPOPUPMENU_H
13
14 #include "listpopupmenu.h"
15
19 class WidgetBasePopupMenu : public ListPopupMenu
20 {
21 public:
22 WidgetBasePopupMenu(QWidget * parent, WidgetBase * widget, bool multi, WidgetBase::WidgetType uniqueType = WidgetBase::wt_UMLWidget);
23
24 protected:
25 void makeMultiClassifierShowPopup(WidgetBase::WidgetType type);
26 void makeClassifierShowPopup(ClassifierWidget *c);
27 void insertSingleSelectionMenu(WidgetBase* widget);
28 void insertMultiSelectionMenu(WidgetBase::WidgetType uniqueType);
29 void insertStdItems(bool insertLeadingSeparator = true, WidgetBase::WidgetType type = WidgetBase::wt_UMLWidget);
30 void insertSubMenuAlign();
31 void insertSubMenuColor(bool fc);
32 void insertSubMenuNew(WidgetBase::WidgetType type, KMenu *menu=0);
33 void insertSubMenuShowEntity(EntityWidget *widget);
34 KMenu *makeCategoryTypeMenu(UMLCategory *category);
35 };
36
37 #endif // WIDGETBASEPOPUPMENU_H
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:33
EntityWidget
A graphical version of an entity.
Definition: entitywidget.h:30
ListPopupMenu
Displays a popup menu.
Definition: listpopupmenu.h:38
UMLCategory
Information for a non-graphical UML Category.
Definition: category.h:28
WidgetBasePopupMenu
Definition: widgetbasepopupmenu.h:20
WidgetBasePopupMenu::insertSubMenuShowEntity
void insertSubMenuShowEntity(EntityWidget *widget)
Definition: widgetbasepopupmenu.cpp:726
WidgetBasePopupMenu::insertSubMenuColor
void insertSubMenuColor(bool fc)
Definition: widgetbasepopupmenu.cpp:616
WidgetBasePopupMenu::insertStdItems
void insertStdItems(bool insertLeadingSeparator=true, WidgetBase::WidgetType type=WidgetBase::wt_UMLWidget)
Definition: widgetbasepopupmenu.cpp:573
WidgetBasePopupMenu::insertSubMenuNew
void insertSubMenuNew(WidgetBase::WidgetType type, KMenu *menu=0)
Definition: widgetbasepopupmenu.cpp:631
WidgetBasePopupMenu::insertSubMenuAlign
void insertSubMenuAlign()
Definition: widgetbasepopupmenu.cpp:595
WidgetBasePopupMenu::makeClassifierShowPopup
void makeClassifierShowPopup(ClassifierWidget *c)
Definition: widgetbasepopupmenu.cpp:75
WidgetBasePopupMenu::WidgetBasePopupMenu
WidgetBasePopupMenu(QWidget *parent, WidgetBase *widget, bool multi, WidgetBase::WidgetType uniqueType=WidgetBase::wt_UMLWidget)
Definition: widgetbasepopupmenu.cpp:46
WidgetBasePopupMenu::insertMultiSelectionMenu
void insertMultiSelectionMenu(WidgetBase::WidgetType uniqueType)
Definition: widgetbasepopupmenu.cpp:533
WidgetBasePopupMenu::insertSingleSelectionMenu
void insertSingleSelectionMenu(WidgetBase *widget)
Definition: widgetbasepopupmenu.cpp:162
WidgetBasePopupMenu::makeMultiClassifierShowPopup
void makeMultiClassifierShowPopup(WidgetBase::WidgetType type)
Definition: widgetbasepopupmenu.cpp:115
WidgetBasePopupMenu::makeCategoryTypeMenu
KMenu * makeCategoryTypeMenu(UMLCategory *category)
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:106
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:112
WidgetBase::wt_UMLWidget
@ wt_UMLWidget
Definition: widgetbase.h:114
listpopupmenu.h