MAK Data Logger API Documentation for HLA
lgrAppGuiEvent.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrAppGuiEvent_H_
10 #define lgrAppGuiEvent_H_
11 
12 #include "lgrGui.h"
13 
14 #include "virtualConstructor.h"
15 #include "lgrMenu.h"
16 
17 #include <commonWidgets/dynamicMenuItem.h>
18 #include <QtCore/QEvent>
19 #include <QtCore/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

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)