clang-format

This commit is contained in:
Luis Ángel San Martín
2021-10-18 21:56:52 +02:00
parent 78e0c522d2
commit 5aa02a19bb
190 changed files with 2286 additions and 2286 deletions

View File

@ -10,7 +10,7 @@
#include "bookmarks.h"
#ifndef NO_PDF
#include "pdf_comic.h"
#endif //NO_PDF
#endif // NO_PDF
class ComicDB;
//#define EXTENSIONS << "*.jpg" << "*.jpeg" << "*.png" << "*.gif" << "*.tiff" << "*.tif" << "*.bmp" Comic::getSupportedImageFormats()
//#define EXTENSIONS_LITERAL << ".jpg" << ".jpeg" << ".png" << ".gif" << ".tiff" << ".tif" << ".bmp" //Comic::getSupportedImageLiteralFormats()
@ -19,10 +19,10 @@ class Comic : public QObject
Q_OBJECT
protected:
//Comic pages, one QPixmap for each file.
// Comic pages, one QPixmap for each file.
QVector<QByteArray> _pages;
QVector<bool> _loadedPages;
//QVector<uint> _sizes;
// QVector<uint> _sizes;
QStringList _fileNames;
QMap<QString, int> _newOrder;
QList<QString> _order;
@ -32,7 +32,7 @@ protected:
int _cfi;
//open the comic at this point
// open the comic at this point
int _firstPage;
bool _isPDF;
@ -49,31 +49,31 @@ public:
Bookmarks *bm;
//Constructors
// Constructors
Comic();
Comic(const QString &pathFile, int atPage = -1);
~Comic();
void setup();
//Load pages from file
// Load pages from file
virtual bool load(const QString &path, int atPage = -1) = 0;
virtual bool load(const QString &path, const ComicDB &comic);
/*void loadFromFile(const QString & pathFile);
void loadFromDir(const QString & pathDir);
void loadFromPDF(const QString & pathPDF);*/
void loadFromDir(const QString & pathDir);
void loadFromPDF(const QString & pathPDF);*/
int nextPage();
int previousPage();
void setIndex(unsigned int index);
unsigned int getIndex() { return _index; };
unsigned int numPages() { return _pages.size(); }
//QPixmap * currentPage();
// QPixmap * currentPage();
bool loaded();
//QPixmap * operator[](unsigned int index);
// QPixmap * operator[](unsigned int index);
QVector<QByteArray> *getRawData() { return &_pages; }
QByteArray getRawPage(int page);
bool pageIsLoaded(int page);
//check if the comic has failed loading
// check if the comic has failed loading
bool hasBeenAnErrorOpening();
static QStringList getSupportedImageFormats();
@ -127,7 +127,7 @@ public:
virtual bool load(const QString &path, const ComicDB &comic);
static QList<QString> filter(const QList<QString> &src);
//ExtractDelegate
// ExtractDelegate
void fileExtracted(int index, const QByteArray &rawData);
void crcError(int index);
void unknownError(int index);
@ -143,7 +143,7 @@ class FolderComic : public Comic
Q_OBJECT
private:
//void run();
// void run();
public:
FolderComic();
@ -163,7 +163,7 @@ class PDFComic : public Comic
Q_OBJECT
private:
//pdf
// pdf
#if defined Q_OS_MAC && defined USE_PDFKIT
MacOSXPDFComic *pdfComic;
#elif defined USE_PDFIUM
@ -172,7 +172,7 @@ private:
Poppler::Document *pdfComic;
#endif
void renderPage(int page);
//void run();
// void run();
public:
PDFComic();
@ -186,7 +186,7 @@ public slots:
void process();
};
#endif //NO_PDF
#endif // NO_PDF
class FactoryComic
{
public: