![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtModelDefinitionEditorWidget.h,v $ $Revision: 1.11 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 #include <vrvCoreQt/vrvCoreQt.h> 00015 #include <vrvCoreQt/DtMapEditorWidget.h> 00016 #include <vrvCoreQt/DtModelDefinitionEditorInterface.h> 00017 00018 00019 class QStringList; 00020 class QComboBox; 00021 class QLabel; 00022 class QTextEdit; 00023 00024 namespace makVrv 00025 { 00026 class DtDe; 00027 00030 class DT_DLL_VRVCOREQT DtModelDefinitionEditorWidget : public DtMapEditorWidget, 00031 public DtModelDefinitionEditorInterface 00032 { 00033 Q_OBJECT; 00034 00035 public: 00036 00038 DtModelDefinitionEditorWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0); 00039 00041 virtual void setSchema(const std::vector<std::string>& schema); 00042 00044 virtual void setCurrentSchema(const std::string& currentSchema); 00045 00047 virtual void updateErrorMessages(const QStringList& messages); 00048 00049 protected slots: 00050 00051 virtual void on_mySchemaComboBox_currentIndexChanged(int index); 00052 00053 protected: 00054 00055 void setupGui(); 00056 00057 protected: 00058 00059 DtDe& myDe; 00060 QLabel* mySchemaLabel; 00061 QComboBox* mySchemaComboBox; 00062 00063 QTextEdit* myErrorMessages; 00064 }; 00065 }