![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtEntityMappingEditorWidget.h,v $ $Revision: 1.10 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtEntityMappingEditorWidget_H_ 00014 #define DtEntityMappingEditorWidget_H_ 00015 00016 #include <vrvVrlQt/vrvVrlQt.h> 00017 #include <QtGui/QWidget> 00018 #include <vrvVrlQt/DtEntityMappingEditorInterface.h> 00019 00020 class QDialogButtonBox; 00021 00022 namespace makVrv 00023 { 00024 class DtDe; 00025 class DtEntityTypeToElementDefinitionLogic; 00026 class DtEntityTypeMapEditorWidget; 00027 class DtPersistenceToolbarWidget; 00028 00031 class DT_DLL_VRVVRLQT DtEntityMappingEditorWidget : public QWidget, 00032 public DtEntityMappingEditorInterface 00033 { 00034 Q_OBJECT; 00035 public: 00036 00037 enum MappingType 00038 { 00039 Entity, 00040 Aggregate, 00041 WeaponFire, 00042 Detonation, 00043 Environmental, 00044 end_MappingType 00045 }; 00046 00048 DtEntityMappingEditorWidget(DtDe& de,QWidget* parent, 00049 MappingType mappingType); 00050 00052 virtual ~DtEntityMappingEditorWidget(); 00053 00055 virtual void warnUserOfExistingEntityType(const std::string& entityType); 00056 00059 virtual void askUserForEntityTypeMapping(const std::string& defaultMappingn = ""); 00060 00061 void activate(); 00062 00063 void deactivate(); 00064 00065 protected slots: 00066 00067 void on_validate_entityType(QString str); 00068 00069 protected: 00070 void setupGui(); 00071 00072 DtDe& myDe; 00073 DtEntityTypeToElementDefinitionLogic* myLogic; 00074 DtEntityTypeMapEditorWidget* myEditor; 00075 DtPersistenceToolbarWidget* myToolbar; 00076 MappingType myMappingType; 00077 00078 QDialogButtonBox* myEntityTypeMappingButtons; 00079 }; 00080 } 00081 00082 #endif 00083