]> Creatis software - clitk.git/blobdiff - vv/vvMainWindow.h
Open files by dropping them inside the window
[clitk.git] / vv / vvMainWindow.h
index 8908b24004ca7fca8bae8c6f0e3d76fa5f9968a1..2d6a21dde238ef34ed446114ed907ad503cfc429 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <iostream>
 #include <vector>
+#include <QDropEvent>
 #include "ui_vvMainWindow.h"
 #include "vvMainWindowBase.h"
 #include "vvToolManager.h"
@@ -192,6 +193,10 @@ protected:
   void createRecentlyOpenedFilesMenu();
   void updateRecentlyOpenedFilesMenu(const std::list<std::string> &files);
   
+  // Drag and drop event handlers
+  virtual void dragEnterEvent(QDragEnterEvent *event);
+  virtual void dropEvent(QDropEvent *event);
+
 private:
 
   //variables