VR-Forces 4.1.1 Class Documentation
helpMenu.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: helpMenu.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DTHELPMENU_H
13 #define DTHELPMENU_H
14 
15 #include "commonWgt/popupMenu.h"
16 #include "tmqt/tmqtDefines.h"
17 
18 #include <QtCore/QHash>
19 
20 typedef QWidget* (*DtAboutBoxCreatorFcn)(QWidget* parent, const Qt::WindowFlags& flags);
21 
23 {
24  Q_OBJECT
25 
26 public:
27  DtHelpMenu(QWidget* menu, bool display = true);
28  virtual ~DtHelpMenu();
29 
32  virtual void addAboutDialog(int, DtAboutBoxCreatorFcn);
33 
35 protected:
36  virtual QString menuName();
37 
42  virtual bool initMenuItems();
43 
45  virtual bool initActionGroups();
46 
47  virtual void addHelpWebLinks();
48 
49 protected slots:
51  virtual void processShowAboutForMenuItem();
52 
53 public:
54  static DtPopupMenu* create(QWidget* menu, bool display = true);
55 
56 protected:
58 
59 protected:
61  QHash<int, DtAboutBoxCreatorFcn> myAboutBoxes;
62 };
63 
64 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)