blob: 5d518f596f9287d2ae0d431672afc5c6bd93376b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "Applications/Browser/History.h"
#include "HistoryModel.h"
#include <LibGUI/FilteringProxyModel.h>
#include <LibGUI/TextBox.h>
#include <LibGUI/Widget.h>
namespace Browser {
class HistoryWidget final : public GUI::Widget {
C_OBJECT(HistoryWidget);
public:
virtual ~HistoryWidget() override = default;
void set_history_entries(Vector<History::URLTitlePair> entries);
void clear_history_entries();
private:
HistoryWidget();
RefPtr<GUI::TableView> m_table_view;
RefPtr<GUI::TextBox> m_textbox;
RefPtr<HistoryModel> m_model;
RefPtr<GUI::FilteringProxyModel> m_filtering_model;
};
}
|