![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: $ $Revision: $ $State: $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 #include <vrvOsgQt/vrvOsgQt.h> 00015 #include <vrvCoreQt/DtPage.h> 00016 #include <vrvOsgQt/DtSceneGraphTreeWidgetInterface.h> 00017 00018 namespace osg 00019 { 00020 class Node; 00021 } 00022 00023 class QCheckBox; 00024 class QGridLayout; 00025 class QPushButton; 00026 class QTreeWidget; 00027 class QTreeWidgetItem; 00028 00029 namespace makVrv 00030 { 00031 00032 class DtSceneGraphTreeLogic; 00033 00036 class DT_DLL_VRVOSGQT DtSceneGraphPage : public DtPage, 00037 public DtSceneGraphTreeWidgetInterface 00038 { 00039 Q_OBJECT 00040 00041 public: 00042 00044 DtSceneGraphPage(DtDe& de, QWidget* pParent = 0); 00045 00047 virtual ~DtSceneGraphPage(); 00048 00050 virtual void clear(); 00051 00053 virtual bool insertTreeWidgetItem(QTreeWidgetItem* pItem, 00054 QTreeWidgetItem* pParent); 00055 00057 virtual QTreeWidgetItem* rootItem(); 00058 00060 virtual QIcon icon(); 00061 00063 virtual QString title(); 00064 00066 virtual const std::string& pageClassName() const; 00067 00068 protected slots: 00069 00070 void updateSize(); 00071 void refresh(); 00072 00073 protected: 00074 00075 void setupGui(); 00076 void tearDownGui(); 00077 00079 virtual void activate(); 00080 00082 virtual void deactivate(); 00083 00084 protected: 00085 00086 DtDe& myDe; 00087 std::string myClassName; 00088 QGridLayout* myLayout; 00089 QTreeWidget* myTreeWidget; 00090 QPushButton* myRefreshButton; 00091 QCheckBox* myResizeBox; 00092 DtSceneGraphTreeLogic* myLogic; 00093 }; 00094 00097 class DT_DLL_VRVOSGQT DtSceneGraphPageCreator : public DtPageCreator 00098 { 00099 public: 00101 DtSceneGraphPageCreator(DtDe& de); 00102 00104 virtual ~DtSceneGraphPageCreator(); 00105 00109 virtual std::string pageClassName() const; 00110 00112 virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0); 00113 00114 }; 00115 00116 }