2020-01-18 09:38:21 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
2019-10-23 21:13:08 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-09-19 17:25:05 +03:00
|
|
|
#include <LibGUI/Button.h>
|
2021-01-21 22:31:00 +01:00
|
|
|
#include <LibGUI/TableView.h>
|
2020-09-19 17:25:05 +03:00
|
|
|
#include <LibGUI/TextBox.h>
|
2020-02-06 20:33:02 +01:00
|
|
|
#include <LibGUI/Widget.h>
|
2019-10-23 21:13:08 +02:00
|
|
|
|
2020-08-17 15:22:30 +02:00
|
|
|
namespace HackStudio {
|
|
|
|
|
2020-02-02 15:07:41 +01:00
|
|
|
class FindInFilesWidget final : public GUI::Widget {
|
2019-10-23 21:13:08 +02:00
|
|
|
C_OBJECT(FindInFilesWidget)
|
|
|
|
public:
|
2020-09-18 09:49:51 +02:00
|
|
|
virtual ~FindInFilesWidget() override { }
|
2019-10-23 21:13:08 +02:00
|
|
|
|
|
|
|
void focus_textbox_and_select_all();
|
|
|
|
|
2021-08-02 19:26:20 +01:00
|
|
|
void reset();
|
|
|
|
|
2019-10-23 21:13:08 +02:00
|
|
|
private:
|
2020-02-23 10:57:42 +01:00
|
|
|
explicit FindInFilesWidget();
|
2019-10-23 21:13:08 +02:00
|
|
|
|
2020-02-02 15:07:41 +01:00
|
|
|
RefPtr<GUI::TextBox> m_textbox;
|
|
|
|
RefPtr<GUI::Button> m_button;
|
|
|
|
RefPtr<GUI::TableView> m_result_view;
|
2019-10-23 21:13:08 +02:00
|
|
|
};
|
2020-08-17 15:22:30 +02:00
|
|
|
|
|
|
|
}
|