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:
parent
f0da3ab9b2
commit
b4de5ac128
4 changed files with 202 additions and 0 deletions
26
DevTools/HackStudio/Locator.h
Normal file
26
DevTools/HackStudio/Locator.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue