mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
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. :^)
This commit is contained in:
parent
5d7c0b0123
commit
7f8e9a0f55
2 changed files with 63 additions and 17 deletions
|
@ -3,7 +3,7 @@
|
|||
#include <LibGUI/GWidget.h>
|
||||
|
||||
class GButton;
|
||||
class GListView;
|
||||
class GTableView;
|
||||
class GTextBox;
|
||||
|
||||
class FindInFilesWidget final : public GWidget {
|
||||
|
@ -18,5 +18,5 @@ private:
|
|||
|
||||
RefPtr<GTextBox> m_textbox;
|
||||
RefPtr<GButton> m_button;
|
||||
RefPtr<GListView> m_result_view;
|
||||
RefPtr<GTableView> m_result_view;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue