![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: entityEditorCreateMenu.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtEntityEditorCreateMenu_H_ 00013 #define DtEntityEditorCreateMenu_H_ 00014 00015 #include "commonWgt/popupMenu.h" 00016 #include "entityEditorImpl/entityEditorMenuItems.h" 00017 #include "entityEditorImpl/entityEditorImplDefines.h" 00018 00019 class DT_DLL_entityeditorimpl DtEntityEditorCreateMenu : public DtPopupMenu 00020 { 00021 Q_OBJECT 00022 00023 public: 00024 DtEntityEditorCreateMenu(QWidget* parent, bool display = true); 00025 virtual ~DtEntityEditorCreateMenu(); 00026 00028 protected: 00029 virtual bool initMenuItems(); 00030 virtual QString menuName(); 00031 virtual bool initActionGroups(); 00032 virtual DtActionGroup* getActionGroupForType(DtMenuItemType iType); 00033 00034 public: 00035 static DtPopupMenu* create(QWidget* parent, bool display = true); 00036 00037 protected slots: 00038 virtual void processRevertExistingEntityValid(); 00039 virtual void processDeleteExistingEntityValid(); 00040 virtual void processCreateExistingEntityValid(); 00041 virtual void processCreateNewEntityValid(); 00042 00043 protected: 00044 DtActionGroup* myCreateActionGroup; 00045 }; 00046 00047 #endif