1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00
serenity/DevTools/HackStudio/Locator.h
Andreas Kling b4de5ac128 HackStudio: Start working on a "Locator", much like Qt Creator has
Pressing Ctrl+K will now open the little locator command line at the
bottom of the window. Right now it can only be used to jump quickly
to a file.
2019-10-28 19:08:48 +01:00

26 lines
477 B
C++

#pragma once
#include <LibGUI/GWidget.h>
class LocatorTextBox;
class GTableView;
class Locator final : public GWidget {
C_OBJECT(Locator)
public:
virtual ~Locator() override;
void open();
void close();
private:
virtual void keydown_event(GKeyEvent&) override;
void update_suggestions();
explicit Locator(GWidget* parent);
RefPtr<LocatorTextBox> m_textbox;
RefPtr<GWindow> m_popup_window;
RefPtr<GTableView> m_suggestion_view;
};