1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

Browser: Add window to inspect history

This commit is contained in:
Rafał Babiarz 2022-12-10 16:50:47 +01:00 committed by Andrew Kaster
parent ebe925b7c0
commit 3454891d38
11 changed files with 259 additions and 0 deletions

View file

@ -0,0 +1,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;
};
}