ladybird/DevTools/HackStudio/FindInFilesWidget.h
Andreas Kling 7f8e9a0f55 HackStudio: Use a table view in the "find in files" widget
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. :^)
2019-12-10 22:07:52 +01:00

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;
};