mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 21:15:08 +00:00

Instead of clogging up main.cpp with find-in-files functionality, put it in a FindInFilesWidget class in a separate file.
22 lines
430 B
C++
22 lines
430 B
C++
#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;
|
|
};
|