Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NonPdf Class Reference

Wrapper around the QImage class for read and importing non-PDF files. More...

#include <NonPdf.h>

Collaboration diagram for NonPdf:
Collaboration graph

Public Member Functions

 NonPdf ()
 Single constructor.
 
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.
 

Detailed Description

Wrapper around the QImage class for read and importing non-PDF files.

Definition at line 26 of file NonPdf.h.

Constructor & Destructor Documentation

◆ NonPdf()

NonPdf::NonPdf ( )

Single constructor.

Definition at line 14 of file NonPdf.cpp.

15{
16}

Member Function Documentation

◆ load()

NonPdfReturn NonPdf::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 at line 18 of file NonPdf.cpp.

22{
25 importCropping);
26
28 QApplication::setOverrideCursor(Qt::BusyCursor); // Since loading can be slow
29 if (cropping) {
30
31 rtn = loadWithCropping (fileName,
32 image);
33
34 } else {
35
36 rtn = loadWithoutCropping (fileName,
37 image);
38
39 }
40 QApplication::restoreOverrideCursor();
41
42 return rtn;
43}
const int INNER_RADIUS_MIN
NonPdfReturn
Return values from load operation.
Definition NonPdf.h:19
bool applyImportCropping(bool isRegression, ImportCropping importCropping) const
Skip cropping dialog during regression testing, otherwise crop if it is always turned on.

The documentation for this class was generated from the following files: