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