mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Font information
This commit is contained in:
@ -21,6 +21,10 @@
|
||||
#include "pdfglobal.h"
|
||||
|
||||
#include <QDialog>
|
||||
#include <QFuture>
|
||||
#include <QFutureWatcher>
|
||||
|
||||
class QTreeWidgetItem;
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
@ -50,18 +54,31 @@ class PDFDocumentPropertiesDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
using BaseClass = QDialog;
|
||||
|
||||
public:
|
||||
explicit PDFDocumentPropertiesDialog(const pdf::PDFDocument* document,
|
||||
const PDFFileInfo* fileInfo,
|
||||
QWidget* parent);
|
||||
virtual ~PDFDocumentPropertiesDialog() override;
|
||||
|
||||
protected:
|
||||
virtual void closeEvent(QCloseEvent* event) override;
|
||||
|
||||
private:
|
||||
Ui::PDFDocumentPropertiesDialog* ui;
|
||||
|
||||
void initializeProperties(const pdf::PDFDocument* document);
|
||||
void initializeFileInfoProperties(const PDFFileInfo* fileInfo);
|
||||
void initializeSecurity(const pdf::PDFDocument* document);
|
||||
void initializeFonts(const pdf::PDFDocument* document);
|
||||
|
||||
void onFontsFinished();
|
||||
|
||||
std::vector<QTreeWidgetItem*> m_fontTreeWidgetItems;
|
||||
QFuture<void> m_future;
|
||||
QFutureWatcher<void> m_futureWatcher;
|
||||
};
|
||||
|
||||
} // namespace pdfviewer
|
||||
|
Reference in New Issue
Block a user