1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

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.
This commit is contained in:
Andreas Kling 2019-10-28 18:48:53 +01:00
parent f0da3ab9b2
commit b4de5ac128
4 changed files with 202 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#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;
};