![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2004 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: terrainCreateMenu.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DTTERRAINCREATEMENU_H 00013 #define DTTERRAINCREATEMENU_H 00014 00015 #include "tmqt/tmCreateMenu.h" 00016 00017 class DtCreateObjectAction; 00018 00020 #include "terrainqt/terrainqtDefines.h" 00021 class DT_DLL_terrainqt DtTerrainCreateMenu : public DtTMCreateMenu 00022 { 00023 Q_OBJECT 00024 00025 public: 00026 DtTerrainCreateMenu ( QWidget * parent, bool display = true ); 00027 virtual ~DtTerrainCreateMenu(); 00028 00029 public: 00030 static DtPopupMenu* create(QWidget* parent, bool display = true); 00031 00032 public slots: 00034 virtual void validate(); 00035 00036 protected: 00039 virtual void enableTerrainCreateItems(); 00040 00041 virtual void validateEdgeSelection(DtCreateObjectAction* action); 00042 virtual void validateNodeSelection(DtCreateObjectAction* action); 00043 00044 virtual void validateCreateMenuItems(bool currentlyEnabled); 00045 }; 00046 00047 #endif