![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2010 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: DtRemoteGraphicSetWidget.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00008 #pragma once 00009 00013 00014 #include <vrvVrlQt/vrvVrlQt.h> 00015 00016 #include <QtGui/QWidget> 00017 00018 #include <vrvVrlQt/DtRemoteGraphicSetInterface.h> 00019 00020 class QTreeWidget; 00021 class QTreeWidgetItem; 00022 class QVBoxLayout; 00023 00024 namespace makVrv 00025 { 00026 class DtRemoteGraphicSetLogic; 00027 00030 class DT_DLL_VRVVRLQT DtRemoteGraphicSetWidget 00031 : public QWidget 00032 , public DtRemoteGraphicSetInterface 00033 { 00034 Q_OBJECT 00035 public: 00037 DtRemoteGraphicSetWidget(DtDe& de, QWidget* parent = 0, 00038 Qt::WindowFlags flags = 0); 00039 00041 virtual ~DtRemoteGraphicSetWidget(); 00042 00044 virtual void setRemoteGraphicSetStatus(const std::string& name, bool onOff); 00045 00046 virtual void removeRemoteGraphicSet(const std::string& name); 00047 00048 protected: 00050 void setupGui(); 00051 00052 virtual QTreeWidgetItem* addLayer(const QStringList& strList); 00053 00054 00055 protected slots: 00056 virtual void onTreeItemChanged(QTreeWidgetItem* item, int column); 00057 00058 protected: 00059 QVBoxLayout* myMasterLayout; 00060 QTreeWidget* myTreeWidget; 00061 DtRemoteGraphicSetLogic* myLogic; 00062 00063 }; 00064 } 00065 00066