VR-Forces 4.1 Class Documentation
DtVrfTreeWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrfTreeWidget.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
18 
20 
21 #include <boost/signal.hpp>
22 
23 namespace makVrv
24 {
25  class DtDe;
26 }
27 
28 namespace makVrf
29 {
31  {
32  Q_OBJECT
33 
34  public:
36  DtVrfTreeWidget( makVrv::DtDe& de, QWidget* parent = 0 );
37 
39  virtual ~DtVrfTreeWidget();
40 
41  boost::signal<void (const QStringList& children, makVrv::DtUniqueID parentId)> signal_reparent;
42 
43  protected:
44  virtual QMimeData* mimeData(const QList<QTreeWidgetItem*> list) const;
45  virtual void dragEnterEvent(QDragEnterEvent* event);
46  virtual bool dropMimeData(QTreeWidgetItem* parent, int index, const QMimeData* mimeData, Qt::DropAction action);
47  virtual void dragMoveEvent(QDragMoveEvent* event);
48 
49  protected:
51  virtual bool canDropOnItem(QTreeWidgetItem*, const QStringList& globalIds, QDragMoveEvent* event) const;
52 
54  virtual void dropItems(const QStringList& globalIds, QTreeWidgetItem*);
55 
56  protected:
58  };
59 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)