User forums > Nightly builds

The 29 April 2018 build (11386) is out.

<< < (7/8) > >>

BlueHazzard:
I have investigated future about the drag and drop thing. In my opinion this should be implemented the right way (implement proper Drag Objects for project files ecc.), but this is tons of work. I can try to do it but first i want to know if the implementation for the fix i suggested a few posts above is really a problem (also on other platforms like mac or unix)

Xaviou:
Hi

--- Quote from: BlueHazzard on May 15, 2018, 01:13:10 am ---I can try to do it but first i want to know if the implementation for the fix i suggested a few posts above is really a problem (also on other platforms like mac or unix)

--- End quote ---
I've tested (OS-X and Windows) : it is not really a problem if you know how it works (especially on OS-X where the "forbidden" icon isn't shown).
But it is really an unusual behavior and I think it shouldn't stay "as is".

Regards
Xav'

Pecan:
I have temporary disabled external drag and drop from projectmanagerui.
External drag and drop is incompatible with wxTreeCtrl internal use of drag and drop.

We can use one or the other, but not both in a wxTreeCtrl.

This means that the Snippets plugin will not be able to drag items out of the project tree. However, it can copy and paste them.

I will look for or create a solution that allows external drag and drop from a wx tree control.


--- Quote from: BlueHazzard on May 10, 2018, 09:51:16 pm ---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...

--- End quote ---

BlueHazzard:

--- Quote ---I have temporary disabled external drag and drop from projectmanagerui.
External drag and drop is incompatible with wxTreeCtrl internal use of drag and drop.
We can use one or the other, but not both in a wxTreeCtrl.

--- End quote ---

i have started to work on a implementation with dedicated drag and drop objects, but this is a lot work because the whole logic (moving files between virtual folders without the internal tree control api ecc....) has to be rewritten. And i have no time for this at the moment....

Pecan:
I believe I've just solved this issue, but I want to test it for awhile.
I'll commit in a day or two.


--- Quote from: BlueHazzard on May 24, 2018, 08:04:27 pm ---
--- Quote ---I have temporary disabled external drag and drop from projectmanagerui.
External drag and drop is incompatible with wxTreeCtrl internal use of drag and drop.
We can use one or the other, but not both in a wxTreeCtrl.

--- End quote ---

i have started to work on a implementation with dedicated drag and drop objects, but this is a lot work because the whole logic (moving files between virtual folders without the internal tree control api ecc....) has to be rewritten. And i have no time for this at the moment....

--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version