numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
20 stars 7 forks source link

Cannot drag/drop an external procedure file into the editor #53

Closed numeredev closed 1 year ago

numeredev commented 1 year ago

DESCRIPTION

Describe the bug It's not possible to drag/drop an external procedure file into the editor.

To Reproduce Steps to reproduce the behavior:

  1. Select an external procedure file
  2. drag/drop it into the editor
  3. see problem

Expected behavior It should be possible to drag/drop an external procedure file into the editor

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

The problem is that the drag/drop event handler void NumeReEditor::OnDragOver(wxStyledTextEvent& event) does not allow to move although it returns wxDragMove as default return value, which is a contradiction. Enable this via event.SetDragAllowMove(true).

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST