mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
FileManager: Move delete and force-delete actions to DirectoryView
This is a little bit messy since the left-side treeview also has a delete action. Because of that, we have to put a focus-dependent action that delegates to the relevant view-specific action in the tool bar and menu bar. I'm not sure yet what a good abstraction would be for this. We'll see what we can think of.
This commit is contained in:
parent
174527b580
commit
ef50e5aaee
5 changed files with 118 additions and 97 deletions
|
@ -28,10 +28,12 @@
|
|||
|
||||
#include <AK/String.h>
|
||||
#include <LibCore/Forward.h>
|
||||
#include <LibGUI/Forward.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
namespace FileUtils {
|
||||
|
||||
void delete_paths(const Vector<String>&, bool should_confirm, GUI::Window*);
|
||||
int delete_directory(String directory, String& file_that_caused_error);
|
||||
bool copy_file_or_directory(const String& src_path, const String& dst_path);
|
||||
String get_duplicate_name(const String& path, int duplicate_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue