MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrAppGuiEvent.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrAppGuiEvent_H_
10 #define lgrAppGuiEvent_H_
11 
12 #include <lgrGui/lgrGui.h>
13 
15 #include <lgrGui/lgrMenu.h>
16 
17 #include <commonWidgets/dynamicMenuItem.h>
18 #include <QEvent>
19 #include <QString>
20 
21 class QAction;
22 class QDialog;
23 class QWidget;
24 
25 namespace MAKLogger
26 {
27  class DtLgrExportDialog;
28  class DtLgrGuiComponent;
29 
33  {
34 
35  public:
36 
37  //@name Static Helper functions
39  static DtLgrAppGuiEvent* addToolBarWidget(QWidget* widget,QString toolBarName);
40  static DtLgrAppGuiEvent* addGuiComponent(DtLgrGuiComponent* component);
41  static DtLgrAppGuiEvent* addMenu(DtLgrMenu* menu, QString previousMenuName);
42  static DtLgrAppGuiEvent* addStatusWidget(QWidget* widget);
43  static DtLgrAppGuiEvent* connectActionToMenu( QAction* action,
44  QString menuName,QString menuItemName );
45 
46  typedef DtLgrExportDialog* (*ExportDialogCreator)(DtLgrGuiModel*,QWidget* parent);
47  static DtLgrAppGuiEvent* addExportDialog(QString exportType,ExportDialogCreator);
49 
50 
52  {
72  AddExportDialog
73  };
74 
75  struct AddMenuArgs
76  {
79  };
80 
82  {
83  QString name;
84  };
85 
87  {
88  MAKCommonWidgets::DtDynamicMenuItem* item;
89  QString parentName;
90  int index;
91  };
92 
94  {
95  QString menuName;
96  QString parentName;
97  };
98 
100  {
101  QString itemName;
102  QString parentName;
103  QAction* action;
104  };
105 
107  {
109  };
110 
112  {
114  QString toolBarName;
115  };
116 
118  {
120  };
121 
123  {
124  QString exportType;
125  ExportDialogCreator creator;
126  };
127 
128  union EventArgs
129  {
139  };
140 
142 
143  virtual ~DtLgrAppGuiEvent();
144 
146  virtual LgrAppGuiEventType eventType() const;
147  virtual EventArgs arguments() const;
148 
149  static const QEvent::Type theLgrAppEventId = (QEvent::Type)(QEvent::User + 101);
150 
151  protected:
152 
155  };
156 
157 
158 
159 }
160 
161 #endif
Definition: lgrAppGuiEvent.h:128
QWidget * widget
Definition: lgrAppGuiEvent.h:119
Definition: lgrAppGuiEvent.h:70
QString exportType
Definition: lgrAppGuiEvent.h:124
Responsible for representing events to be passed to the Gui in a thread safe manner.
Definition: lgrAppGuiEvent.h:32
Definition: lgrAppGuiEvent.h:64
AddComponentControlArgs * addComponentControlArgs
Definition: lgrAppGuiEvent.h:135
LgrAppGuiEventType myType
Definition: lgrAppGuiEvent.h:153
Provides the base interface for Logger Application gui components.
Definition: lgrGuiComponent.h:36
MAKCommonWidgets::DtDynamicMenuItem * item
Definition: lgrAppGuiEvent.h:88
#define DT_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a Virtual Constructor Create using DT_VIRTUAL_CTR(CLASS_NAME,ARG_TYPES_LIST) Where CLASS_NAME...
Definition: virtualConstructor.h:34
Definition: lgrAppGuiEvent.h:63
EventArgs myArguments
Definition: lgrAppGuiEvent.h:154
Definition: lgrAppGuiEvent.h:62
Definition: lgrAppGuiEvent.h:55
AddMenuItemArgs * addMenuItemArgs
Definition: lgrAppGuiEvent.h:132
Contains MAKLogger::DtLgrMenu class.
QAction * action
Definition: lgrAppGuiEvent.h:103
Definition: lgrAppGuiEvent.h:68
RemoveMainMenuArgs * removeMenuArgs
Definition: lgrAppGuiEvent.h:131
Definition: lgrAppGuiEvent.h:69
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
Definition: lgrAppGuiEvent.h:54
QWidget * widget
Definition: lgrAppGuiEvent.h:113
RemoveMenuItemArgs * removeMenuItemArgs
Definition: lgrAppGuiEvent.h:133
The logger GUI&#39;s model.
Definition: lgrGuiModel.h:56
int index
Definition: lgrAppGuiEvent.h:90
ExportDialogCreator creator
Definition: lgrAppGuiEvent.h:125
Definition: lgrAppGuiEvent.h:122
AddStatusBarWidgetArgs * addStatusBarWidgetsArgs
Definition: lgrAppGuiEvent.h:137
AddExportDialogArgs * addExportDialogArgs
Definition: lgrAppGuiEvent.h:138
QString parentName
Definition: lgrAppGuiEvent.h:89
QString name
Definition: lgrAppGuiEvent.h:83
Definition: lgrAppGuiEvent.h:56
QString menuName
Definition: lgrAppGuiEvent.h:95
QString previousMenuName
Definition: lgrAppGuiEvent.h:78
AddMenuArgs * addMenuArgs
Definition: lgrAppGuiEvent.h:130
Definition: lgrExportDialog.h:20
QString toolBarName
Definition: lgrAppGuiEvent.h:114
LgrAppGuiEventType
Definition: lgrAppGuiEvent.h:51
#define DT_DLL_LGRGUI
Definition: lgrGui.h:19
QString parentName
Definition: lgrAppGuiEvent.h:102
Definition: lgrAppGuiEvent.h:86
Definition: lgrAppGuiEvent.h:75
DtLgrMenu * menu
Definition: lgrAppGuiEvent.h:77
AddToolBarWidgetArgs * addToolBarWidgetArgs
Definition: lgrAppGuiEvent.h:136
Definition: lgrAppGuiEvent.h:57
Definition: lgrAppGuiEvent.h:53
Defines INPORT/EXPORT macros for lgrGui library.
QString itemName
Definition: lgrAppGuiEvent.h:101
Definition: lgrAppGuiEvent.h:65
ConnectMenuItemArgs * connectMenuItemArgs
Definition: lgrAppGuiEvent.h:134
DtLgrGuiComponent * component
Definition: lgrAppGuiEvent.h:108
Abstract Menu which can be added to the MAKLogger::DtLgrMainWindow.
Definition: lgrMenu.h:26
QString parentName
Definition: lgrAppGuiEvent.h:96

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)