![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtCockpitMappingEditorWidget.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvGlStudioQt/DtGlStudioQt.h> 00016 00017 #include <QtGui/QWidget> 00018 #include <vrvVrlQt/DtEntityMappingEditorInterface.h> 00019 00020 class QDialogButtonBox; 00021 00022 namespace makVrv 00023 { 00024 class DtDe; 00025 class DtCockpitMappingEditorLogic; 00026 class DtEntityTypeMapEditorWidget; 00027 class DtPersistenceToolbarWidget; 00028 00031 class DT_DLL_VRVGLSTUDIO_QT DtCockpitMappingEditorWidget : public QWidget, 00032 public DtEntityMappingEditorInterface 00033 { 00034 Q_OBJECT; 00035 public: 00036 00038 DtCockpitMappingEditorWidget(DtDe& de,QWidget* parent); 00039 00041 virtual ~DtCockpitMappingEditorWidget(); 00042 00044 virtual void warnUserOfExistingEntityType(const std::string& entityType); 00045 00047 virtual void askUserForEntityTypeMapping(const std::string& defaultType = ""); 00048 00049 virtual void activate(); 00050 virtual void deactivate(); 00051 00052 protected slots: 00053 00054 void on_validate_entityType(QString str); 00055 00056 protected: 00057 void setupGui(); 00058 00059 DtDe& myDe; 00060 DtCockpitMappingEditorLogic* myLogic; 00061 DtEntityTypeMapEditorWidget* myEditor; 00062 DtPersistenceToolbarWidget* myToolbar; 00063 00064 QDialogButtonBox* myEntityTypeMappingButtons; 00065 }; 00066 } //makVrv::