umbrello 25.04.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <widgetbasepopupmenu.h>
Public Member Functions | |
WidgetBasePopupMenu (QWidget *parent, WidgetBase *widget, bool multi, WidgetBase::WidgetType uniqueType=WidgetBase::wt_UMLWidget) | |
![]() | |
ListPopupMenu (QWidget *parent=nullptr) | |
virtual | ~ListPopupMenu () |
QAction * | getAction (MenuType idx) |
void | setActionEnabled (MenuType idx, bool value) |
MenuType | getMenuType (QAction *action) |
void | dumpActions (const QString &title) |
QMenu * | newMenu (const QString &title, QWidget *widget) |
void | addMenu (QMenu *menu) |
Protected Member Functions | |
void | makeMultiClassifierShowPopup (WidgetBase::WidgetType type) |
void | makeClassifierShowPopup (ClassifierWidget *c) |
void | insertSingleSelectionMenu (WidgetBase *widget) |
void | insertMultiSelectionMenu (WidgetBase::WidgetType uniqueType) |
void | insertStdItems (bool insertLeadingSeparator=true, WidgetBase::WidgetType type=WidgetBase::wt_UMLWidget) |
void | insertSubMenuAlign () |
void | insertSubMenuColor (bool fc) |
void | insertSubMenuNew (WidgetBase::WidgetType type) |
void | insertSubMenuShowEntity (EntityWidget *widget) |
QMenu * | makeCategoryTypeMenu (UMLCategory *category) |
![]() | |
void | insert (MenuType m) |
void | insertFromActionKey (const MenuType m, QMenu *menu, const QString &action) |
void | insert (const MenuType m, QMenu *menu) |
void | insert (const MenuType m, QMenu *menu, const QIcon &icon, const QString &text) |
void | insert (const MenuType m, QMenu *menu, const QString &text, const bool checkable=false) |
void | insert (const MenuType m, const QIcon &icon, const QString &text) |
void | insert (const MenuType m, const QString &text, const bool checkable=false) |
void | insertContainerItems (bool folders, bool diagrams, bool packages) |
void | insertContainerItems (QMenu *menu, bool folders, bool diagrams, bool packages) |
void | insertAssociationTextItem (const QString &label, MenuType mt) |
QMenu * | makeNewMenu () |
void | insertSubMenuCategoryType (UMLCategory *category) |
void | setActionChecked (MenuType idx, bool value) |
void | setupActionsData () |
Constructs the popup menu for a WidgetBase with customized menu type.
WidgetBasePopupMenu::WidgetBasePopupMenu | ( | QWidget * | parent, |
WidgetBase * | widget, | ||
bool | multi, | ||
WidgetBase::WidgetType | uniqueType = WidgetBase::wt_UMLWidget |
||
) |
Constructs the popup menu for a scene widget.
parent | The parent to ListPopupMenu. |
widget | The WidgetBase to represent a menu for. |
multi | True if multiple items are selected. |
uniqueType | The type of widget shared by all selected widgets |
|
protected |
Inserts the menu actions that work on the whole selection of widgets
|
protected |
Inserts the menu actions for a widget
widget | widget to generate the menu for |
|
protected |
Shortcut for the frequently used insert() calls.
insertLeadingSeparator | Set this true if the group shall start with a separator. |
type | The WidgetType for which to insert the menu items. If no argument is supplied then a Rename item will be included. |
|
protected |
Add the align actions submenu
|
protected |
Shortcut for commonly used sub menu initializations.
fc | The "Use Fill Color" is checked. |
|
protected |
Shortcut for commonly used sub menu initializations.
type | The widget type for which to set up the menu. |
|
protected |
|
protected |
|
protected |
Creates the "Show" submenu in the context menu of one classifier widget
|
protected |
Creates the "Show" submenu the context menu of multiple classifier widgets