Engauge Digitizer 2
Loading...
Searching...
No Matches
NonPdf.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef NON_PDF_H
8#define NON_PDF_H
9
10#include "ImportCropping.h"
11
12namespace Poppler {
13 class Document;
14}
15class QImage;
16class QString;
17
24
26class NonPdf
27{
28public:
30 NonPdf();
31
34 QImage &image,
35 ImportCropping importCropping,
37
38private:
39
40 NonPdfReturn loadWithCropping (const QString &fileName,
41 QImage &image) const; // Dialog is used when not testing
42 NonPdfReturn loadWithoutCropping (const QString &fileName,
43 QImage &image) const; // No dialog is used during testing. Entire image will be loadedd
44
45};
46
47#endif // NON_PDF_H
const int INNER_RADIUS_MIN
ImportCropping
NonPdfReturn
Return values from load operation.
Definition NonPdf.h:19
@ NON_PDF_RETURN_FAILED
Definition NonPdf.h:21
@ NON_PDF_RETURN_CANCELED
Definition NonPdf.h:20
@ NON_PDF_RETURN_SUCCESS
Definition NonPdf.h:22
Storage of one imported image and the data attached to that image.
Definition Document.h:42
Wrapper around the QImage class for read and importing non-PDF files.
Definition NonPdf.h:27
NonPdfReturn load(const QString &fileName, QImage &image, ImportCropping importCropping, bool isErrorReportRegressionTest) const
Try to load the specified file. Success is indicated in the function return value.
Definition NonPdf.cpp:18
NonPdf()
Single constructor.
Definition NonPdf.cpp:14