1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 19:45:08 +00:00

TextEditor: Add a search bar that allows you to search for text

If the text is not found, we show a friendly message box that says we
didn't find the text! :^)
This commit is contained in:
Andreas Kling 2019-08-21 21:30:20 +02:00
parent 0c72371ad9
commit bb74832dd6
2 changed files with 36 additions and 0 deletions

View file

@ -7,6 +7,8 @@
#include <LibGUI/GWidget.h>
#include <LibGUI/GWindow.h>
class GButton;
class GTextBox;
class GTextEditor;
class TextEditorWidget final : public GWidget {
@ -26,4 +28,7 @@ private:
RefPtr<GAction> m_open_action;
RefPtr<GAction> m_save_action;
RefPtr<GAction> m_save_as_action;
GTextBox* m_find_textbox { nullptr };
GButton* m_find_button { nullptr };
};