![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtAggregateMappinEditorWidget.h,v $ $Revision: 1.10 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvUtil/signalslib.h> 00016 00017 #include <vrvVrlQt/vrvVrlQt.h> 00018 #include <QtGui/QWidget> 00019 #include <vrvVrlQt/DtEntityTypeMapEditorWidget.h> 00020 #include <vrvVrlQt/DtEntityMappingEditorInterface.h> 00021 00022 class QDialogButtonBox; 00023 00024 namespace makVrv 00025 { 00026 class DtDe; 00027 class DtEntityTypeToElementDefinitionLogic; 00028 class DtEntityTypeMapEditorWidget; 00029 class DtPersistenceToolbarWidget; 00030 00033 class DT_DLL_VRVVRLQT DtAggregateMappingEditorWidget : public QWidget, 00034 public DtEntityMappingEditorInterface 00035 { 00036 Q_OBJECT; 00037 public: 00039 DtAggregateMappingEditorWidget(DtDe& de,QWidget* parent); 00040 00042 virtual ~DtAggregateMappingEditorWidget(); 00043 00045 virtual void warnUserOfExistingEntityType(const std::string& entityType); 00046 00049 virtual void askUserForEntityTypeMapping(const std::string& defaultMappingn = ""); 00050 00051 virtual void activate(); 00052 00053 virtual void deactivate(); 00054 00055 protected slots: 00056 00057 void on_validate_entityType(QString str); 00058 00059 protected: 00060 void setupGui(); 00061 00062 DtDe& myDe; 00063 DtEntityTypeToElementDefinitionLogic* myLogic; 00064 DtEntityTypeMapEditorWidget* myEditor; 00065 DtPersistenceToolbarWidget* myToolbar; 00066 00067 QDialogButtonBox* myEntityTypeMappingButtons; 00068 }; 00069 }