mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 11:55:07 +00:00
FileManager: Move DirectoryView into the FileManager namespace
This commit is contained in:
parent
8212ba467c
commit
07d4b41bac
3 changed files with 10 additions and 0 deletions
|
@ -39,6 +39,8 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
namespace FileManager {
|
||||||
|
|
||||||
NonnullRefPtr<GUI::Action> LauncherHandler::create_launch_action(Function<void(const LauncherHandler&)> launch_handler)
|
NonnullRefPtr<GUI::Action> LauncherHandler::create_launch_action(Function<void(const LauncherHandler&)> launch_handler)
|
||||||
{
|
{
|
||||||
RefPtr<Gfx::Bitmap> icon;
|
RefPtr<Gfx::Bitmap> icon;
|
||||||
|
@ -552,3 +554,5 @@ void DirectoryView::handle_drop(const GUI::ModelIndex& index, const GUI::DropEve
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
#include <LibGUI/TableView.h>
|
#include <LibGUI/TableView.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
namespace FileManager {
|
||||||
|
|
||||||
class LauncherHandler : public RefCounted<LauncherHandler> {
|
class LauncherHandler : public RefCounted<LauncherHandler> {
|
||||||
public:
|
public:
|
||||||
LauncherHandler(const NonnullRefPtr<Desktop::Launcher::Details>& details)
|
LauncherHandler(const NonnullRefPtr<Desktop::Launcher::Details>& details)
|
||||||
|
@ -187,3 +189,5 @@ private:
|
||||||
RefPtr<GUI::Action> m_delete_action;
|
RefPtr<GUI::Action> m_delete_action;
|
||||||
RefPtr<GUI::Action> m_force_delete_action;
|
RefPtr<GUI::Action> m_force_delete_action;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -68,6 +68,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
using namespace FileManager;
|
||||||
|
|
||||||
static int run_in_desktop_mode(RefPtr<Core::ConfigFile>);
|
static int run_in_desktop_mode(RefPtr<Core::ConfigFile>);
|
||||||
static int run_in_windowed_mode(RefPtr<Core::ConfigFile>, String initial_location);
|
static int run_in_windowed_mode(RefPtr<Core::ConfigFile>, String initial_location);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue