Generall Drag/Drop interface

This commit is contained in:
jriegel
2014-02-02 21:18:08 +01:00
committed by Stefan Tröger
parent a366ae60e4
commit be619b3e7d
6 changed files with 102 additions and 4 deletions

View File

@@ -89,6 +89,15 @@ public:
virtual void finishRestoring();
//@}
/** @name drag & drop handling */
//@{
/// get called if the user hover over a object in the tree
virtual bool allowDrop(const std::vector<const App::DocumentObject*> &objList,Qt::KeyboardModifiers keys,Qt::MouseButtons mouseBts,const QPoint &pos);
/// get called if the user drops some objects
virtual void drop(const std::vector<const App::DocumentObject*> &objList,Qt::KeyboardModifiers keys,Qt::MouseButtons mouseBts,const QPoint &pos);
//@}
protected:
/*! Get the active mdi view of the document this view provider is part of.
@note The returned mdi view doesn't need to be a 3d view but can be e.g.