VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtVrfTreeWidget.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtVrfTreeWidget.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00017 #include <vrfGuiCoreQt/DtVrfObjectListViewItem.h>
00018 
00019 #include <vrfGuiCoreQt/qtTreeWidgetExtensions.h>
00020 
00021 #include <boost/signal.hpp>
00022 
00023 namespace makVrv
00024 {
00025    class DtDe;
00026 }
00027 
00028 namespace makVrf
00029 {
00030    class DT_DLL_VRFGUICOREQT DtVrfTreeWidget : public DtTreeWidget
00031    {
00032       Q_OBJECT
00033 
00034    public:
00036       DtVrfTreeWidget( makVrv::DtDe& de, QWidget* parent = 0 );
00037 
00039       virtual ~DtVrfTreeWidget();
00040 
00041       boost::signal<void (const QStringList& children, makVrv::DtUniqueID parentId)> signal_reparent;
00042 
00043    protected:
00044       virtual QMimeData* mimeData(const QList<QTreeWidgetItem*> list) const;
00045       virtual void dragEnterEvent(QDragEnterEvent* event);
00046       virtual bool dropMimeData(QTreeWidgetItem* parent, int index, const QMimeData* mimeData, Qt::DropAction action);
00047       virtual void dragMoveEvent(QDragMoveEvent* event);
00048 
00049    protected:
00051       virtual bool canDropOnItem(QTreeWidgetItem*, const QStringList& globalIds, QDragMoveEvent* event) const;
00052 
00054       virtual void dropItems(const QStringList& globalIds, QTreeWidgetItem*);
00055 
00056    protected:
00057       makVrv::DtDe&  myDe;
00058    };
00059 }

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)