![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2000 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: createObjectAction.h,v $ $Revision: 1.5 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef CREATEOBJECTACTION_H 00013 #define CREATEOBJECTACTION_H 00014 00015 #include <QtGui/QAction> 00016 00017 #include "ngutil/entityMapperKey.h" 00018 00022 #include "tmqt/tmqtDefines.h" 00023 class DT_DLL_tmqt DtCreateObjectAction : public QAction 00024 { 00025 00026 Q_OBJECT 00027 00028 public: 00029 00031 DtCreateObjectAction 00032 ( 00033 QObject * parent, 00034 const DtEntityMapperKey& o, 00035 int f 00036 ); 00037 00039 virtual ~DtCreateObjectAction(); 00040 00041 virtual DtEntityMapperKey objectType() const; 00042 virtual int forceType() const; 00043 00044 signals: 00045 void createObject(const DtEntityMapperKey& o, int f); 00046 00047 public slots: 00048 00050 00051 virtual void activateCreateObject(); 00052 00053 protected: 00054 00056 DtCreateObjectAction(const DtCreateObjectAction& orig); 00057 00059 DtCreateObjectAction& operator=(const DtCreateObjectAction& orig); 00060 00061 DtEntityMapperKey myObjectType; 00062 int myForceType; 00063 QString myKey; 00064 }; 00065 00066 #endif