mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
PDFViewer: Add TreeView to communicate rendering errors
Now that the rendering process communicates all errors upstream, and PDFViewer has a way to tap into those errors as they occur, we can visualise them more neatly. This commit adds a TreeView that we populate with the errors stemming from the rendering process. The TreeView has two levels: at the top sit pages where errors can be found, and under each page we can see the errors that have been found on that page. The TreeView sits below the main PDF rendering.
This commit is contained in:
parent
c4bc27f274
commit
6d0869c14a
2 changed files with 156 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "AK/NonnullRefPtr.h"
|
||||
#include "AK/RefPtr.h"
|
||||
#include "NumericInput.h"
|
||||
#include "PDFViewer.h"
|
||||
|
@ -16,6 +17,7 @@
|
|||
#include <LibGUI/Widget.h>
|
||||
|
||||
class PDFViewer;
|
||||
class PagedErrorsModel;
|
||||
|
||||
class PDFViewerWidget final : public GUI::Widget {
|
||||
C_OBJECT(PDFViewerWidget)
|
||||
|
@ -33,6 +35,8 @@ private:
|
|||
|
||||
RefPtr<PDFViewer> m_viewer;
|
||||
RefPtr<SidebarWidget> m_sidebar;
|
||||
NonnullRefPtr<PagedErrorsModel> m_paged_errors_model;
|
||||
RefPtr<GUI::TreeView> m_errors_tree_view;
|
||||
RefPtr<NumericInput> m_page_text_box;
|
||||
RefPtr<GUI::Label> m_total_page_label;
|
||||
RefPtr<GUI::Action> m_go_to_prev_page_action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue