mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
Make the results of a "find in files" operation look a lot nicer by presenting them in a table format, instead of in a single-column list. Since we don't yet support rich text in table view cells, use the marker glyphs in the system default fixed-width font to show where the matched text begins and ends on the line we found it on. :^)
22 lines
432 B
C++
22 lines
432 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GWidget.h>
|
|
|
|
class GButton;
|
|
class GTableView;
|
|
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<GTableView> m_result_view;
|
|
};
|