VR-Forces 4.0.4 Class Documentation
include/vrvVrlQt/DtAttributeGroupTemplateWidget.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2010 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: DtAttributeGroupTemplateWidget.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/DtAttributeGroupTemplateInterface.h>
00019 
00020 class QTreeWidget;
00021 class QTreeWidgetItem;
00022 class QVBoxLayout;
00023 
00024 namespace makVrv
00025 {
00026    class DtAttributeGroupTemplateLogic;
00027 
00030    class DT_DLL_VRVVRLQT DtAttributeGroupTemplateWidget
00031       : public QWidget
00032       , public DtAttributeGroupTemplateInterface
00033    {
00034       Q_OBJECT
00035    public:
00037       DtAttributeGroupTemplateWidget(DtDe& de, QWidget* parent = 0, 
00038          Qt::WindowFlags flags = 0);
00039 
00041       virtual ~DtAttributeGroupTemplateWidget();
00042 
00044       virtual void addAttributeGroupTemplate(const std::string& groupName, 
00045          const std::string& templateName);
00046 
00047       virtual void removeAttributeGroupTemplate(const std::string& groupName,
00048          const std::string& templateName);
00049 
00050       virtual void setAttributeGroupTemplateStatus(const std::string& groupName,
00051          const std::string& templateName, bool onOff);
00052 
00053    protected:
00055       void setupGui();
00056 
00057 
00058    protected slots:
00059       virtual void onTreeItemChanged(QTreeWidgetItem* item, int column);
00060 
00061    protected:
00062       QVBoxLayout*              myMasterLayout;
00063       QTreeWidget* myTreeWidget;
00064       DtAttributeGroupTemplateLogic* myLogic;
00065 
00066    };
00067 }
00068 
00069 

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)