Adds q2 repos to migrate
This commit is contained in:
1 parent
ad1f62c4ee
commit
17f1c61c9e
991 files changed
+178451
No files matched your search
Executable
+48
@@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
#pragma once
|
||||
#include <QWidget>
|
||||
#include <poppler/qt5/poppler-qt5.h>
|
||||
|
||||
#include "nglwidgets_export.h"
|
||||
|
||||
class QUrl;
|
||||
namespace Ui
|
||||
{
|
||||
class pdfWidget;
|
||||
}
|
||||
|
||||
namespace NGL
|
||||
{
|
||||
class NGLWIDGETS_EXPORT PDFWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit PDFWidget(QWidget *parent = nullptr);
|
||||
~PDFWidget();
|
||||
|
||||
bool showPDF(const QUrl &pdf);
|
||||
bool showPDF(const QByteArray &pdf);
|
||||
void setZoomFactor(double newZoomFactor);
|
||||
void setRotation(Poppler::Page::Rotation rot);
|
||||
bool setPage(int newPage);
|
||||
QVector<QImage> getPrintableImages(int resolution = 300) const;
|
||||
void resizePdfToWidth();
|
||||
int numPages() const;
|
||||
int curPage() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void currentPageChanged(int cur, int max);
|
||||
void rotationChanged(Poppler::Page::Rotation newRotation);
|
||||
protected Q_SLOTS:
|
||||
void pageChanged(int cur, int max);
|
||||
void rotate();
|
||||
void onZoomDefault();
|
||||
void onZoomFull();
|
||||
void onZoomMinus();
|
||||
void onZoomPlus();
|
||||
protected:
|
||||
double m_zoomFactor;
|
||||
Ui::pdfWidget *ui;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user