mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
Taskbar: Support arbitrary executables as QuickLaunch entries
This commit is contained in:
parent
2e8e959896
commit
3022baddc2
2 changed files with 51 additions and 4 deletions
|
@ -39,6 +39,21 @@ private:
|
|||
NonnullRefPtr<Desktop::AppFile> m_app_file;
|
||||
};
|
||||
|
||||
class QuickLaunchEntryExecutable : public QuickLaunchEntry {
|
||||
public:
|
||||
explicit QuickLaunchEntryExecutable(String path)
|
||||
: m_path(move(path))
|
||||
{
|
||||
}
|
||||
|
||||
virtual ErrorOr<void> launch() const override;
|
||||
virtual GUI::Icon icon() const override;
|
||||
virtual String name() const override;
|
||||
|
||||
private:
|
||||
String m_path;
|
||||
};
|
||||
|
||||
class QuickLaunchWidget : public GUI::Frame
|
||||
, public Config::Listener {
|
||||
C_OBJECT(QuickLaunchWidget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue