VR-Forces 4.0.4 Class Documentation
include/tmqt/helpMenu.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: helpMenu.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DTHELPMENU_H
00013 #define DTHELPMENU_H
00014 
00015 #include "commonWgt/popupMenu.h"
00016 #include "tmqt/tmqtDefines.h"
00017 
00018 #include <QtCore/QHash>
00019 
00020 typedef QWidget* (*DtAboutBoxCreatorFcn)(QWidget* parent, const Qt::WindowFlags& flags);
00021 
00022 class DT_DLL_tmqt DtHelpMenu : public DtPopupMenu
00023 {
00024    Q_OBJECT
00025 
00026 public:
00027    DtHelpMenu(QWidget* menu, bool display = true);
00028    virtual ~DtHelpMenu();
00029 
00032    virtual void addAboutDialog(int, DtAboutBoxCreatorFcn);
00033 
00035 protected:
00036    virtual QString menuName();
00037 
00042    virtual bool initMenuItems();
00043 
00045    virtual bool initActionGroups();
00046 
00047    virtual void addHelpWebLinks();
00048 
00049 protected slots:
00051    virtual void processShowAboutForMenuItem();
00052 
00053 public:
00054    static DtPopupMenu* create(QWidget* menu, bool display = true);
00055 
00056 protected:
00057    virtual DtActionGroup* getActionGroupForType(DtMenuItemType iType);
00058 
00059 protected:
00060    DtActionGroup* myHelpActionGroup;
00061    QHash<int, DtAboutBoxCreatorFcn> myAboutBoxes;
00062 };
00063 
00064 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)