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 * 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
DialogsPopupMenu
Definition: dialogspopupmenu.h:17
DialogsPopupMenu::TriggerType
TriggerType
< This type hosts all possible menu types.
Definition: dialogspopupmenu.h:22
DialogsPopupMenu::tt_New_Template
@ tt_New_Template
Definition: dialogspopupmenu.h:37
DialogsPopupMenu::tt_Max
@ tt_Max
Definition: dialogspopupmenu.h:42
DialogsPopupMenu::tt_Attribute_Selected
@ tt_Attribute_Selected
Definition: dialogspopupmenu.h:26
DialogsPopupMenu::tt_Activity_Selected
@ tt_Activity_Selected
Definition: dialogspopupmenu.h:24
DialogsPopupMenu::tt_New_Operation
@ tt_New_Operation
Definition: dialogspopupmenu.h:35
DialogsPopupMenu::tt_New_EnumLiteral
@ tt_New_EnumLiteral
Definition: dialogspopupmenu.h:33
DialogsPopupMenu::tt_Association_Selected
@ tt_Association_Selected
Definition: dialogspopupmenu.h:25
DialogsPopupMenu::tt_New_InstanceAttribute
@ tt_New_InstanceAttribute
Definition: dialogspopupmenu.h:34
DialogsPopupMenu::tt_EnumLiteral_Selected
@ tt_EnumLiteral_Selected
Definition: dialogspopupmenu.h:28
DialogsPopupMenu::tt_New_EntityAttribute
@ tt_New_EntityAttribute
Definition: dialogspopupmenu.h:32
DialogsPopupMenu::tt_EntityAttribute_Selected
@ tt_EntityAttribute_Selected
Definition: dialogspopupmenu.h:27
DialogsPopupMenu::tt_New_Parameter
@ tt_New_Parameter
Definition: dialogspopupmenu.h:36
DialogsPopupMenu::tt_New_Attribute
@ tt_New_Attribute
Definition: dialogspopupmenu.h:31
DialogsPopupMenu::tt_Parameter_Selected
@ tt_Parameter_Selected
Definition: dialogspopupmenu.h:39
DialogsPopupMenu::tt_Undefined
@ tt_Undefined
Definition: dialogspopupmenu.h:41
DialogsPopupMenu::tt_Min
@ tt_Min
Definition: dialogspopupmenu.h:23
DialogsPopupMenu::tt_Operation_Selected
@ tt_Operation_Selected
Definition: dialogspopupmenu.h:38
DialogsPopupMenu::tt_New_Activity
@ tt_New_Activity
Definition: dialogspopupmenu.h:30
DialogsPopupMenu::tt_Template_Selected
@ tt_Template_Selected
Definition: dialogspopupmenu.h:40
DialogsPopupMenu::tt_InstanceAttribute_Selected
@ tt_InstanceAttribute_Selected
Definition: dialogspopupmenu.h:29
DialogsPopupMenu::DialogsPopupMenu
DialogsPopupMenu(QWidget *parent, TriggerType type)
Definition: dialogspopupmenu.cpp:19
DialogsPopupMenu::toString
static QString toString(TriggerType type)
Definition: dialogspopupmenu.cpp:134
DialogsPopupMenu::insertSubMenuNew
void insertSubMenuNew(TriggerType type, KMenu *menu=0)
Definition: dialogspopupmenu.cpp:116
ListPopupMenu
Displays a popup menu.
Definition: listpopupmenu.h:38
operator<<
QDebug operator<<(QDebug out, DialogsPopupMenu::TriggerType type)
Definition: dialogspopupmenu.cpp:139
listpopupmenu.h