User forums > Nightly builds

The 29 April 2018 build (11386) is out.

<< < (6/8) > >>

Miguel Gimenez:
It seems pecan disabled dragging in the project tree on purpose:


--- Quote ---// we disallow the drag of files within the project tree
--- End quote ---

BlueHazzard:
This is my fault....
I will look into it and post a patch

BlueHazzard:
This should fix the issue


--- Code: ---diff --git a/src/src/projectmanagerui.cpp b/src/src/projectmanagerui.cpp
index cbd93a6fe..6ca7d0926 100644
--- a/src/src/projectmanagerui.cpp
+++ b/src/src/projectmanagerui.cpp
@@ -977,11 +977,8 @@ void ProjectManagerUI::OnTreeBeginDrag(wxTreeEvent& event)
         wxDropSource dragSource(m_pTree);
         dragSource.SetData(dropObject);
         dragSource.DoDragDrop();
-        // we disallow the drag of files within the project tree
-        return;
     }
-
-    // allowed
+    // Allow drag and drop within the project tree
     event.Allow();
 }

--- End code ---

On windows the handling is somehow bugged: If you drag a file the "forbidden" cursor will be shown as long as you hold the mouse button. As soon you release the button the normal "drag&drop" cursor will appear and drag and drop is possible...
It works, but i still will look further...

BlueHazzard:

--- Quote ---On windows the handling is somehow bugged: If you drag a file the "forbidden" cursor will be shown as long as you hold the mouse button. As soon you release the button the normal "drag&drop" cursor will appear and drag and drop is possible...
It works, but i still will look further...
--- End quote ---
i am not quite sure if this is wxWidgets behaviour:
http://docs.wxwidgets.org/3.0/overview_dnd.html

--- Quote ---Dragging: The call to DoDragDrop() blocks the program until the user releases the mouse button (unless you override the wxDropSource::GiveFeedback function to do something special). When the mouse moves in a window of a program which understands the same drag-and-drop protocol (any program under Windows or any program supporting the XDnD protocol under X Windows), the corresponding wxDropTarget methods are called - see below.
--- End quote ---

Miguel Gimenez:
The forbidden cursor appears because the project manager window should be also a drop target.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version