Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_pdf_import_widget.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006 Cyrille Berger <cberger@cberger.net>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_PDF_IMPORT_WIDGET_H
8#define KIS_PDF_IMPORT_WIDGET_H
9
10#include <QWidget>
11#include <QList>
12#include "ui_pdfimportwidgetbase.h"
13
14namespace Poppler
15{
16class Document;
17}
18
19class KisPDFImportWidget : public QWidget, public Ui_PDFImportWidgetBase
20{
21 Q_OBJECT
22public:
23 KisPDFImportWidget(Poppler::Document* pdfDoc, QWidget * parent);
24
26public:
27 inline QList<int> pages() {
28 return m_pages;
29 }
30private Q_SLOTS:
31 void selectAllPages(bool v);
32 void selectFirstPage(bool v);
33 void selectSelectionOfPages(bool v);
35 void updateResolution();
36 void updateHRes();
37 void updateHVer();
38 void heightAspectRatio();
39 void widthAspectRatio();
40 void slotAspectChanged(bool keep);
42private:
43 Poppler::Document* m_pdfDoc;
47};
48
49#endif
qreal v
void slotAspectChanged(bool keep)
Poppler::Document * m_pdfDoc
KisPDFImportWidget(Poppler::Document *pdfDoc, QWidget *parent)