Adds latest migration results
This commit is contained in:
829 files changed
+35074
-70886
No files matched your search
@@ -3,10 +3,13 @@
|
||||
#pragma once
|
||||
#include <QtWidgets/QWidget>
|
||||
#include <memory>
|
||||
#include <poppler/qt6/poppler-qt6.h>
|
||||
|
||||
#include "nglwidgets_export.h"
|
||||
|
||||
#ifdef HAVE_POPPLER_QT6
|
||||
#include <poppler/qt6/poppler-qt6.h>
|
||||
#endif
|
||||
|
||||
class QUrl;
|
||||
namespace Ui
|
||||
{
|
||||
@@ -25,23 +28,31 @@ public:
|
||||
bool showPDF(const QUrl &pdf);
|
||||
bool showPDF(const QByteArray &pdf);
|
||||
void setZoomFactor(double newZoomFactor);
|
||||
#ifdef HAVE_POPPLER_QT6
|
||||
void setRotation(Poppler::Page::Rotation rot);
|
||||
#endif
|
||||
bool setPage(int newPage);
|
||||
#ifdef HAVE_POPPLER_QT6
|
||||
QVector<QImage> getPrintableImages(int resolution = 300) const;
|
||||
void resizePdfToWidth();
|
||||
#endif
|
||||
int numPages() const;
|
||||
int curPage() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void currentPageChanged(int cur, int max);
|
||||
#ifdef HAVE_POPPLER_QT6
|
||||
void rotationChanged(Poppler::Page::Rotation newRotation);
|
||||
#endif
|
||||
protected Q_SLOTS:
|
||||
void pageChanged(int cur, int max);
|
||||
#ifdef HAVE_POPPLER_QT6
|
||||
void rotate();
|
||||
void onZoomDefault();
|
||||
void onZoomFull();
|
||||
void onZoomMinus();
|
||||
void onZoomPlus();
|
||||
#endif
|
||||
protected:
|
||||
double m_zoomFactor{1.0};
|
||||
std::unique_ptr<Ui::pdfWidget> ui;
|
||||
|
||||
Reference in new issue
Block a user