mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
HackStudio: Move "find in files" widget to its own file/class
Instead of clogging up main.cpp with find-in-files functionality, put it in a FindInFilesWidget class in a separate file.
This commit is contained in:
parent
2d460b504f
commit
2260190f39
4 changed files with 118 additions and 83 deletions
22
DevTools/HackStudio/FindInFilesWidget.h
Normal file
22
DevTools/HackStudio/FindInFilesWidget.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GWidget.h>
|
||||
|
||||
class GButton;
|
||||
class GListView;
|
||||
class GTextBox;
|
||||
|
||||
class FindInFilesWidget final : public GWidget {
|
||||
C_OBJECT(FindInFilesWidget)
|
||||
public:
|
||||
virtual ~FindInFilesWidget() override {}
|
||||
|
||||
void focus_textbox_and_select_all();
|
||||
|
||||
private:
|
||||
explicit FindInFilesWidget(GWidget* parent);
|
||||
|
||||
RefPtr<GTextBox> m_textbox;
|
||||
RefPtr<GButton> m_button;
|
||||
RefPtr<GListView> m_result_view;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue