/* * Copyright (c) 2021, Fabian Blatz * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Taskbar { class QuickLaunchWidget : public GUI::Frame , public Config::Listener { C_OBJECT(QuickLaunchWidget); public: virtual ~QuickLaunchWidget() override; virtual void config_key_was_removed(String const&, String const&, String const&) override; virtual void config_string_did_change(String const&, String const&, String const&, String const&) override; virtual void drop_event(GUI::DropEvent&) override; private: QuickLaunchWidget(); void add_or_adjust_button(String const&, NonnullRefPtr); RefPtr m_context_menu; RefPtr m_context_menu_default_action; String m_context_menu_app_name; }; }