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

dialogspopupmenu.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 DIALOGSPOPUPMENU_H
12 #define DIALOGSPOPUPMENU_H
13
14 #include "listpopupmenu.h"
15
16 class DialogsPopupMenu : public ListPopupMenu
17 {
18 Q_OBJECT
19 Q_ENUMS(TriggerType)
20 public:
21 enum TriggerType
22 {
23 tt_Min = -1,
24 tt_Activity_Selected,
25 tt_Association_Selected,
26 tt_Attribute_Selected,
27 tt_EntityAttribute_Selected,
28 tt_EnumLiteral_Selected,
29 tt_InstanceAttribute_Selected,
30 tt_New_Activity,
31 tt_New_Attribute,
32 tt_New_EntityAttribute,
33 tt_New_EnumLiteral,
34 tt_New_InstanceAttribute,
35 tt_New_Operation,
36 tt_New_Parameter,
37 tt_New_Template,
38 tt_Operation_Selected,
39 tt_Parameter_Selected,
40 tt_Template_Selected,
41 tt_Undefined,
42 tt_Max
43 };
44
45 DialogsPopupMenu(QWidget *parent, TriggerType type);
46 void insertSubMenuNew(TriggerType type, KMenu *menu = 0);
47 static QString toString(TriggerType type);
48 };
49
50 QDebug operator<<(QDebug out, DialogsPopupMenu::TriggerType type);
51
52 #endif // DIALOGSPOPUPMENU_H
ListPopupMenu::makeNewMenu
KMenu * makeNewMenu()
Definition: listpopupmenu.cpp:501
DialogsPopupMenu::tt_New_EntityAttribute
@ tt_New_EntityAttribute
Definition: dialogspopupmenu.h:32
ListPopupMenu::mt_Properties
@ mt_Properties
Definition: listpopupmenu.h:182
ListPopupMenu::mt_New_Template
@ mt_New_Template
Definition: listpopupmenu.h:141
DialogsPopupMenu::tt_Activity_Selected
@ tt_Activity_Selected
Definition: dialogspopupmenu.h:24
DialogsPopupMenu::tt_New_Template
@ tt_New_Template
Definition: dialogspopupmenu.h:37
DialogsPopupMenu
Definition: dialogspopupmenu.h:17
DialogsPopupMenu::tt_InstanceAttribute_Selected
@ tt_InstanceAttribute_Selected
Definition: dialogspopupmenu.h:29
DialogsPopupMenu::tt_EntityAttribute_Selected
@ tt_EntityAttribute_Selected
Definition: dialogspopupmenu.h:27
DialogsPopupMenu::insertSubMenuNew
void insertSubMenuNew(TriggerType type, KMenu *menu=0)
Definition: dialogspopupmenu.cpp:116
Icon_Utils::it_Template_New
@ it_Template_New
Definition: icon_utils.h:160
ListPopupMenu::mt_New_EnumLiteral
@ mt_New_EnumLiteral
Definition: listpopupmenu.h:137
ENUM_NAME
#define ENUM_NAME(o, e, v)
Definition: debug_utils.h:143
operator<<
QDebug operator<<(QDebug out, DialogsPopupMenu::TriggerType type)
Definition: dialogspopupmenu.cpp:139
DialogsPopupMenu::DialogsPopupMenu
DialogsPopupMenu(QWidget *parent, TriggerType type)
Definition: dialogspopupmenu.cpp:19
ListPopupMenu::mt_New_InstanceAttribute
@ mt_New_InstanceAttribute
Definition: listpopupmenu.h:138
DialogsPopupMenu::tt_Template_Selected
@ tt_Template_Selected
Definition: dialogspopupmenu.h:40
ListPopupMenu::setupActionsData
void setupActionsData()
Definition: listpopupmenu.cpp:596
DialogsPopupMenu::tt_Attribute_Selected
@ tt_Attribute_Selected
Definition: dialogspopupmenu.h:26
ListPopupMenu::addMenu
void addMenu(KMenu *menu)
Definition: listpopupmenu.cpp:106
DialogsPopupMenu::tt_Association_Selected
@ tt_Association_Selected
Definition: dialogspopupmenu.h:25
DialogsPopupMenu::tt_New_EnumLiteral
@ tt_New_EnumLiteral
Definition: dialogspopupmenu.h:33
uWarning
#define uWarning()
Definition: debug_utils.h:124
DialogsPopupMenu::tt_New_Parameter
@ tt_New_Parameter
Definition: dialogspopupmenu.h:36
DialogsPopupMenu::tt_Max
@ tt_Max
Definition: dialogspopupmenu.h:42
i18n
#define i18n
Definition: main.cpp:39
operator<<
QDebug operator<<(QDebug out, DialogsPopupMenu::TriggerType type)
Definition: dialogspopupmenu.cpp:139
DialogsPopupMenu::tt_New_Activity
@ tt_New_Activity
Definition: dialogspopupmenu.h:30
DialogsPopupMenu::tt_New_InstanceAttribute
@ tt_New_InstanceAttribute
Definition: dialogspopupmenu.h:34
Icon_Utils::SmallIcon
QPixmap SmallIcon(IconType type)
Definition: icon_utils.cpp:41
ListPopupMenu
Displays a popup menu.
Definition: listpopupmenu.h:38
DialogsPopupMenu::tt_Operation_Selected
@ tt_Operation_Selected
Definition: dialogspopupmenu.h:38
ListPopupMenu::insert
void insert(MenuType m)
Definition: listpopupmenu.cpp:117
DialogsPopupMenu::tt_New_Attribute
@ tt_New_Attribute
Definition: dialogspopupmenu.h:31
DialogsPopupMenu::TriggerType
TriggerType
< This type hosts all possible menu types.
Definition: dialogspopupmenu.h:22
ListPopupMenu::mt_Delete
@ mt_Delete
Definition: listpopupmenu.h:186
DialogsPopupMenu::tt_Parameter_Selected
@ tt_Parameter_Selected
Definition: dialogspopupmenu.h:39
DialogsPopupMenu::toString
static QString toString(TriggerType type)
Definition: dialogspopupmenu.cpp:134
DialogsPopupMenu::tt_Undefined
@ tt_Undefined
Definition: dialogspopupmenu.h:41
debug_utils.h
dialogspopupmenu.h
DialogsPopupMenu::tt_EnumLiteral_Selected
@ tt_EnumLiteral_Selected
Definition: dialogspopupmenu.h:28
ListPopupMenu::mt_Rename
@ mt_Rename
Definition: listpopupmenu.h:183
ListPopupMenu::mt_New_Parameter
@ mt_New_Parameter
Definition: listpopupmenu.h:140
listpopupmenu.h
DialogsPopupMenu::tt_New_Operation
@ tt_New_Operation
Definition: dialogspopupmenu.h:35
ListPopupMenu::mt_New_Attribute
@ mt_New_Attribute
Definition: listpopupmenu.h:135
ListPopupMenu::mt_New_EntityAttribute
@ mt_New_EntityAttribute
Definition: listpopupmenu.h:136
ListPopupMenu::mt_New_Operation
@ mt_New_Operation
Definition: listpopupmenu.h:139
DialogsPopupMenu::tt_Min
@ tt_Min
Definition: dialogspopupmenu.h:23