VR-Forces 4.0.4 Class Documentation
include/vrvOsgQt/DtSceneGraphTreeWidget.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2007 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtSceneGraphTreeWidget.h,v $ $Revision: 1.27 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00012 #pragma once
00013 #include <vrvCoreQt/DtPage.h>
00014 
00015 #include <vrvOsgQt/vrvOsgQt.h>
00016 #include <vrvOsgQt/DtSceneGraphTreeLogic.h>
00017 #include <vrvOsgQt/DtSceneGraphTreeWidgetInterface.h>
00018 #include <QtGui/QTreeWidget>
00019 
00020 namespace osg
00021 {
00022    class Node;
00023 }
00024 
00025 class QTreeWidgetItem;
00026 class QPushButton;
00027 class QCheckBox;
00028 
00029 namespace makVrv
00030 {  
00031    class DtVrvApplication;
00032    class DtQtDeMainWindow;
00033 
00036    class DT_DLL_VRVOSGQT DtSceneGraphTreeWidget : public DtPage,
00037       public DtSceneGraphTreeWidgetInterface
00038    {
00039 
00040       Q_OBJECT
00041 
00042    public:
00043       
00045       virtual ~DtSceneGraphTreeWidget();
00046       
00048       virtual QIcon icon();
00049 
00051       virtual QString title();
00052 
00054       virtual const std::string& pageClassName() const;
00055 
00057       virtual void clear();
00058 
00060       virtual bool insertTreeWidgetItem(QTreeWidgetItem* pItem, 
00061          QTreeWidgetItem* pParent);
00062 
00064       virtual QTreeWidgetItem* rootItem();
00065 
00067       virtual void onActivate();
00068 
00070       virtual void onDeactivate();
00071 
00072    protected slots:      
00073 
00074       void updateSize();
00075       void refresh();
00076 
00077    protected:
00078 
00080       friend class DtSceneGraphTreeWidgetCreator;
00081 
00083       DtSceneGraphTreeWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
00084 
00086       virtual void activate();
00087 
00089       virtual void deactivate();
00090 
00091       virtual void showEvent(QShowEvent *);
00092 
00093       void setupGui();
00094       
00095    protected:
00096 
00097       std::string myClassName;
00098       QTreeWidget* myTreeWidget;
00099       QPushButton* myRefreshButton;
00100       QCheckBox* myResizeBox;
00101       DtSceneGraphTreeLogic* myLogic;
00102    };
00103 
00106    class DT_DLL_VRVOSGQT DtSceneGraphTreeWidgetCreator : public DtPageCreator
00107    {
00108    public:
00109 
00111       DtSceneGraphTreeWidgetCreator(DtDe& de);
00112 
00114       virtual ~DtSceneGraphTreeWidgetCreator();
00115 
00119       virtual std::string pageClassName() const;
00120 
00122       virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
00123    };
00124 
00125 }
00126 
00127 
00128 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)