mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
FileManager: Copy item(s) when dragging and dropping them :^)
This patch implements basic drag & drop file management in a narrow set of cases. You can now drag & drop a file onto a folder in the same directory, and the dropped file will be copied into the directory. We'll need to support a lot more variations of this, but this is nice!
This commit is contained in:
parent
95fe78667f
commit
4dc15fc063
3 changed files with 49 additions and 0 deletions
|
@ -52,6 +52,7 @@ public:
|
|||
Function<void(const StringView&)> on_path_change;
|
||||
Function<void(GUI::AbstractView&)> on_selection_change;
|
||||
Function<void(const GUI::AbstractView&, const GUI::ModelIndex&, const GUI::ContextMenuEvent&)> on_context_menu_request;
|
||||
Function<void(const GUI::AbstractView&, const GUI::ModelIndex&, const GUI::DropEvent&)> on_drop;
|
||||
Function<void(const StringView&)> on_status_message;
|
||||
Function<void(int done, int total)> on_thumbnail_progress;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue