mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +00:00
Applications: Add a very simple PDFViewer
This commit is contained in:
parent
309105678b
commit
f7ea1eb610
13 changed files with 264 additions and 18 deletions
27
Userland/Applications/PDFViewer/PDFViewerWidget.h
Normal file
27
Userland/Applications/PDFViewer/PDFViewerWidget.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Matthew Olsson <mattco@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "PDFViewer.h"
|
||||
#include <LibGUI/Widget.h>
|
||||
|
||||
class PDFViewer;
|
||||
|
||||
class PDFViewerWidget final : public GUI::Widget {
|
||||
C_OBJECT(PDFViewerWidget)
|
||||
public:
|
||||
~PDFViewerWidget() override;
|
||||
void open_file(const String& path);
|
||||
void initialize_menubar(GUI::Menubar&);
|
||||
|
||||
private:
|
||||
PDFViewerWidget();
|
||||
|
||||
RefPtr<PDFViewer> m_viewer;
|
||||
ByteBuffer m_buffer;
|
||||
RefPtr<GUI::Action> m_open_action;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue