umbrello: umbrello/menus/associationwidgetpopupmenu.h Source File

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

associationwidgetpopupmenu.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 ASSOCIATIONWIDGETPOPUPMENU_H
12 #define ASSOCIATIONWIDGETPOPUPMENU_H
13
14 #include "listpopupmenu.h"
15
16 class AssociationLine;
17
21 class AssociationWidgetPopupMenu : public ListPopupMenu
22 {
23 public:
24 AssociationWidgetPopupMenu(QWidget *parent, Uml::AssociationType::Enum type, AssociationWidget *widget);
25
26 protected:
27 void insertSubMenuLayout(AssociationLine *associationLine);
28 void insertSubmodelAction();
29 };
30
31 #endif // ASSOCIATIONWIDGETPOPUPMENU_H
ListPopupMenu::mt_LayoutSpline
@ mt_LayoutSpline
Definition: listpopupmenu.h:247
ListPopupMenu::mt_Reset_Label_Positions
@ mt_Reset_Label_Positions
Definition: listpopupmenu.h:196
AssociationWidgetPopupMenu::insertSubmodelAction
void insertSubmodelAction()
associationline.h
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:51
WidgetBase::autoResize
bool autoResize()
Definition: widgetbase.cpp:560
ListPopupMenu::mt_Properties
@ mt_Properties
Definition: listpopupmenu.h:182
Icon_Utils::it_Delete_Point
@ it_Delete_Point
Definition: icon_utils.h:137
ListPopupMenu::mt_Rename_Name
@ mt_Rename_Name
Definition: listpopupmenu.h:206
AssociationWidget::associationLine
AssociationLine * associationLine() const
Definition: associationwidget.cpp:658
ListPopupMenu::m_actions
QHash< MenuType, QAction * > m_actions
Definition: listpopupmenu.h:314
ListPopupMenu::mt_LayoutPolyline
@ mt_LayoutPolyline
Definition: listpopupmenu.h:249
LocalTriggerType::AttributeAssociation
@ AttributeAssociation
LocalTriggerType::FullAssociation
@ FullAssociation
ListPopupMenu::mt_AutoResize
@ mt_AutoResize
Definition: listpopupmenu.h:215
ListPopupMenu::mt_Rename_RoleAName
@ mt_Rename_RoleAName
Definition: listpopupmenu.h:207
AssociationWidgetPopupMenu
Definition: associationwidgetpopupmenu.h:21
Icon_Utils::it_Add_Point
@ it_Add_Point
Definition: icon_utils.h:136
Uml::AssociationType::Anchor
@ Anchor
Definition: basictypes.h:137
AssociationWidget::isAutoLayouted
bool isAutoLayouted()
Definition: associationwidget.cpp:1309
ListPopupMenu::setupActionsData
void setupActionsData()
Definition: listpopupmenu.cpp:596
ListPopupMenu::addMenu
void addMenu(KMenu *menu)
Definition: listpopupmenu.cpp:106
Uml::LayoutType::Spline
@ Spline
Definition: basictypes.h:166
ListPopupMenu::mt_Delete_Point
@ mt_Delete_Point
Definition: listpopupmenu.h:222
AssociationWidget::isPointAddable
bool isPointAddable()
Return state if the association line point in the near of the last context menu event position is add...
Definition: associationwidget.cpp:1286
Uml::LayoutType::Polyline
@ Polyline
Definition: basictypes.h:165
ListPopupMenu::mt_Rename_RoleBName
@ mt_Rename_RoleBName
Definition: listpopupmenu.h:208
Uml::LayoutType::Direct
@ Direct
Definition: basictypes.h:163
ListPopupMenu::mt_Select_Operation
@ mt_Select_Operation
Definition: listpopupmenu.h:181
Icon_Utils::it_Delete
@ it_Delete
Definition: icon_utils.h:135
AssociationLine
Definition: associationline.h:105
i18n
#define i18n
Definition: main.cpp:39
AssociationWidget::isPointRemovable
bool isPointRemovable()
Return state if the association line point in the near of the last context menu event position is rem...
Definition: associationwidget.cpp:1301
ListPopupMenu::mt_Line_Color
@ mt_Line_Color
Definition: listpopupmenu.h:197
ListPopupMenu::mt_Change_Font
@ mt_Change_Font
Definition: listpopupmenu.h:209
Icon_Utils::SmallIcon
QPixmap SmallIcon(IconType type)
Definition: icon_utils.cpp:41
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:123
ListPopupMenu::mt_Add_Point
@ mt_Add_Point
Definition: listpopupmenu.h:221
AssociationWidgetPopupMenu::insertSubMenuLayout
void insertSubMenuLayout(AssociationLine *associationLine)
Definition: associationwidgetpopupmenu.cpp:97
ListPopupMenu
Displays a popup menu.
Definition: listpopupmenu.h:37
ListPopupMenu::newMenu
KMenu * newMenu(const QString &title, QWidget *widget)
Definition: listpopupmenu.cpp:99
AssociationWidget::association
UMLAssociation * association() const
Definition: associationwidget.cpp:520
ListPopupMenu::setActionChecked
void setActionChecked(MenuType idx, bool value)
Definition: listpopupmenu.cpp:560
ListPopupMenu::insert
void insert(MenuType m)
Definition: listpopupmenu.cpp:117
LocalTriggerType::AnchorSelected
@ AnchorSelected
associationwidget.h
ListPopupMenu::mt_Delete
@ mt_Delete
Definition: listpopupmenu.h:186
AssociationWidgetPopupMenu::AssociationWidgetPopupMenu
AssociationWidgetPopupMenu(QWidget *parent, Uml::AssociationType::Enum type, AssociationWidget *widget)
Definition: associationwidgetpopupmenu.cpp:30
LocalTriggerType
LocalTriggerType
Definition: associationwidgetpopupmenu.cpp:22
AssocRules::allowRole
static bool allowRole(Uml::AssociationType::Enum assocType)
Definition: assocrules.cpp:329
LocalTriggerType::CollaborationMessage
@ CollaborationMessage
debug_utils.h
assocrules.h
ListPopupMenu::mt_Auto_Layout_Spline
@ mt_Auto_Layout_Spline
Definition: listpopupmenu.h:223
AssociationWidget::isCollaboration
bool isCollaboration() const
Definition: associationwidget.cpp:1380
listpopupmenu.h
Uml::LayoutType::Orthogonal
@ Orthogonal
Definition: basictypes.h:164
ListPopupMenu::mt_LayoutDirect
@ mt_LayoutDirect
Definition: listpopupmenu.h:246
AssociationWidget::isLayoutChangeable
bool isLayoutChangeable()
Definition: associationwidget.cpp:1323
AssociationLine::layout
Uml::LayoutType::Enum layout() const
Definition: associationline.cpp:842
associationwidgetpopupmenu.h
LocalTriggerType::AssociationSelected
@ AssociationSelected
ListPopupMenu::mt_New_Operation
@ mt_New_Operation
Definition: listpopupmenu.h:139
ListPopupMenu::mt_LayoutOrthogonal
@ mt_LayoutOrthogonal
Definition: listpopupmenu.h:248