umbrello: umbrello/menus/dialogspopupmenu.h Source File

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 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 DIALOGSPOPUPMENU_H
7#define DIALOGSPOPUPMENU_H
8
9#include "listpopupmenu.h"
10
11 class DialogsPopupMenu : public ListPopupMenu
12{
13 Q_OBJECT
14 Q_ENUMS(TriggerType)
15public:
16 enum TriggerType
17 {
18 tt_Min = -1,
19 tt_Activity_Selected,
20 tt_Association_Selected,
21 tt_Attribute_Selected,
22 tt_EntityAttribute_Selected,
23 tt_EnumLiteral_Selected,
24 tt_InstanceAttribute_Selected,
25 tt_New_Activity,
26 tt_New_Attribute,
27 tt_New_EntityAttribute,
28 tt_New_EnumLiteral,
29 tt_New_InstanceAttribute,
30 tt_New_Operation,
31 tt_New_Parameter,
32 tt_New_Template,
33 tt_Operation_Selected,
34 tt_Parameter_Selected,
35 tt_Template_Selected,
36 tt_Undefined,
37 tt_Max
38 };
39
40 DialogsPopupMenu(QWidget *parent, TriggerType type);
41 void insertSubMenuNew(TriggerType type, KMenu *menu = 0);
42 static QString toString(TriggerType type);
43};
44
45QDebug operator<<(QDebug out, DialogsPopupMenu::TriggerType type);
46
47#endif // DIALOGSPOPUPMENU_H
DialogsPopupMenu
Definition: dialogspopupmenu.h:12
DialogsPopupMenu::TriggerType
TriggerType
< This type hosts all possible menu types.
Definition: dialogspopupmenu.h:17
DialogsPopupMenu::tt_New_Template
@ tt_New_Template
Definition: dialogspopupmenu.h:32
DialogsPopupMenu::tt_Max
@ tt_Max
Definition: dialogspopupmenu.h:37
DialogsPopupMenu::tt_Attribute_Selected
@ tt_Attribute_Selected
Definition: dialogspopupmenu.h:21
DialogsPopupMenu::tt_Activity_Selected
@ tt_Activity_Selected
Definition: dialogspopupmenu.h:19
DialogsPopupMenu::tt_New_Operation
@ tt_New_Operation
Definition: dialogspopupmenu.h:30
DialogsPopupMenu::tt_New_EnumLiteral
@ tt_New_EnumLiteral
Definition: dialogspopupmenu.h:28
DialogsPopupMenu::tt_Association_Selected
@ tt_Association_Selected
Definition: dialogspopupmenu.h:20
DialogsPopupMenu::tt_New_InstanceAttribute
@ tt_New_InstanceAttribute
Definition: dialogspopupmenu.h:29
DialogsPopupMenu::tt_EnumLiteral_Selected
@ tt_EnumLiteral_Selected
Definition: dialogspopupmenu.h:23
DialogsPopupMenu::tt_New_EntityAttribute
@ tt_New_EntityAttribute
Definition: dialogspopupmenu.h:27
DialogsPopupMenu::tt_EntityAttribute_Selected
@ tt_EntityAttribute_Selected
Definition: dialogspopupmenu.h:22
DialogsPopupMenu::tt_New_Parameter
@ tt_New_Parameter
Definition: dialogspopupmenu.h:31
DialogsPopupMenu::tt_New_Attribute
@ tt_New_Attribute
Definition: dialogspopupmenu.h:26
DialogsPopupMenu::tt_Parameter_Selected
@ tt_Parameter_Selected
Definition: dialogspopupmenu.h:34
DialogsPopupMenu::tt_Undefined
@ tt_Undefined
Definition: dialogspopupmenu.h:36
DialogsPopupMenu::tt_Min
@ tt_Min
Definition: dialogspopupmenu.h:18
DialogsPopupMenu::tt_Operation_Selected
@ tt_Operation_Selected
Definition: dialogspopupmenu.h:33
DialogsPopupMenu::tt_New_Activity
@ tt_New_Activity
Definition: dialogspopupmenu.h:25
DialogsPopupMenu::tt_Template_Selected
@ tt_Template_Selected
Definition: dialogspopupmenu.h:35
DialogsPopupMenu::tt_InstanceAttribute_Selected
@ tt_InstanceAttribute_Selected
Definition: dialogspopupmenu.h:24
DialogsPopupMenu::DialogsPopupMenu
DialogsPopupMenu(QWidget *parent, TriggerType type)
Definition: dialogspopupmenu.cpp:14
DialogsPopupMenu::toString
static QString toString(TriggerType type)
Definition: dialogspopupmenu.cpp:129
DialogsPopupMenu::insertSubMenuNew
void insertSubMenuNew(TriggerType type, KMenu *menu=0)
Definition: dialogspopupmenu.cpp:111
ListPopupMenu
Displays a popup menu.
Definition: listpopupmenu.h:33
operator<<
QDebug operator<<(QDebug out, DialogsPopupMenu::TriggerType type)
Definition: dialogspopupmenu.cpp:134
listpopupmenu.h