mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Annotate overridden methods
This commit is contained in:
parent
9140d66693
commit
f29724e404
@ -26,8 +26,8 @@ protected:
|
|||||||
|
|
||||||
QSize coverSize;
|
QSize coverSize;
|
||||||
|
|
||||||
bool eventFilter(QObject *obj, QEvent *event);
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
//QPropertyAnimation * animation;
|
//QPropertyAnimation * animation;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -24,7 +24,7 @@ private:
|
|||||||
public slots:
|
public slots:
|
||||||
void goTo();
|
void goTo();
|
||||||
void setNumPages(unsigned int numPages);
|
void setNumPages(unsigned int numPages);
|
||||||
void open();
|
void open() override;
|
||||||
signals:
|
signals:
|
||||||
void goToPage(unsigned int page);
|
void goToPage(unsigned int page);
|
||||||
};
|
};
|
||||||
|
@ -30,11 +30,11 @@ class GoToFlow : public GoToFlowWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
GoToFlow(QWidget *parent = nullptr, FlowType flowType = CoverFlowLike);
|
GoToFlow(QWidget *parent = nullptr, FlowType flowType = CoverFlowLike);
|
||||||
~GoToFlow();
|
~GoToFlow() override;
|
||||||
bool ready; //comic is ready for read.
|
bool ready; //comic is ready for read.
|
||||||
private:
|
private:
|
||||||
YACReaderFlow *flow;
|
YACReaderFlow *flow;
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
//Comic * comic;
|
//Comic * comic;
|
||||||
QSize imageSize;
|
QSize imageSize;
|
||||||
|
|
||||||
@ -45,22 +45,22 @@ private:
|
|||||||
QVector<QByteArray> rawImages;
|
QVector<QByteArray> rawImages;
|
||||||
QTimer *updateTimer;
|
QTimer *updateTimer;
|
||||||
PageLoader *worker;
|
PageLoader *worker;
|
||||||
virtual void wheelEvent(QWheelEvent *event);
|
void wheelEvent(QWheelEvent *event) override;
|
||||||
QMutex mutexGoToFlow;
|
QMutex mutexGoToFlow;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void preload();
|
void preload();
|
||||||
void updateImageData();
|
void updateImageData();
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void centerSlide(int slide);
|
void centerSlide(int slide) override;
|
||||||
void reset();
|
void reset() override;
|
||||||
void setNumSlides(unsigned int slides);
|
void setNumSlides(unsigned int slides) override;
|
||||||
void setImageReady(int index, const QByteArray &image);
|
void setImageReady(int index, const QByteArray &image) override;
|
||||||
void setFlowType(FlowType flowType);
|
void setFlowType(FlowType flowType) override;
|
||||||
void updateConfig(QSettings *settings);
|
void updateConfig(QSettings *settings) override;
|
||||||
void setFlowRightToLeft(bool b);
|
void setFlowRightToLeft(bool b) override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void goToPage(unsigned int page);
|
void goToPage(unsigned int page);
|
||||||
@ -73,7 +73,7 @@ class PageLoader : public QThread
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PageLoader(QMutex *m);
|
PageLoader(QMutex *m);
|
||||||
~PageLoader();
|
~PageLoader() override;
|
||||||
// returns FALSE if worker is still busy and can't take the task
|
// returns FALSE if worker is still busy and can't take the task
|
||||||
bool busy() const;
|
bool busy() const;
|
||||||
void generate(int index, QSize size, const QByteArray &rImage);
|
void generate(int index, QSize size, const QByteArray &rImage);
|
||||||
@ -82,7 +82,7 @@ public:
|
|||||||
QImage result() const { return img; }
|
QImage result() const { return img; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void run();
|
void run() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QMutex *mutex;
|
QMutex *mutex;
|
||||||
|
@ -17,23 +17,23 @@ class GoToFlowGL : public GoToFlowWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
GoToFlowGL(QWidget *parent = nullptr, FlowType flowType = CoverFlowLike);
|
GoToFlowGL(QWidget *parent = nullptr, FlowType flowType = CoverFlowLike);
|
||||||
~GoToFlowGL();
|
~GoToFlowGL() override;
|
||||||
void reset();
|
void reset() override;
|
||||||
void centerSlide(int slide);
|
void centerSlide(int slide) override;
|
||||||
void setFlowType(FlowType flowType);
|
void setFlowType(FlowType flowType) override;
|
||||||
void setNumSlides(unsigned int slides);
|
void setNumSlides(unsigned int slides) override;
|
||||||
void setImageReady(int index, const QByteArray &image);
|
void setImageReady(int index, const QByteArray &image) override;
|
||||||
|
|
||||||
void updateConfig(QSettings *settings);
|
void updateConfig(QSettings *settings);
|
||||||
void setFlowRightToLeft(bool b);
|
void setFlowRightToLeft(bool b) override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void goToPage(unsigned int page);
|
void goToPage(unsigned int page);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
YACReaderPageFlowGL *flow;
|
YACReaderPageFlowGL *flow;
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
//Comic * comic;
|
//Comic * comic;
|
||||||
QSize imageSize;
|
QSize imageSize;
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,7 @@ private:
|
|||||||
QPushButton *goToButton;
|
QPushButton *goToButton;
|
||||||
QLabel *pageHint;
|
QLabel *pageHint;
|
||||||
QWidget *bar;
|
QWidget *bar;
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GoToFlowToolBar(QWidget *parent = nullptr);
|
GoToFlowToolBar(QWidget *parent = nullptr);
|
||||||
|
@ -20,7 +20,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
GoToFlowWidget(QWidget *paret = nullptr);
|
GoToFlowWidget(QWidget *paret = nullptr);
|
||||||
virtual ~GoToFlowWidget() = 0;
|
~GoToFlowWidget() override = 0;
|
||||||
public slots:
|
public slots:
|
||||||
virtual void reset() = 0;
|
virtual void reset() = 0;
|
||||||
virtual void centerSlide(int slide) = 0;
|
virtual void centerSlide(int slide) = 0;
|
||||||
@ -33,7 +33,7 @@ public slots:
|
|||||||
virtual void setFlowRightToLeft(bool b) = 0;
|
virtual void setFlowRightToLeft(bool b) = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
//bool eventFilter(QObject *, QEvent *);
|
//bool eventFilter(QObject *, QEvent *);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,16 +12,16 @@ class MagnifyingGlass : public QLabel
|
|||||||
private:
|
private:
|
||||||
float zoomLevel;
|
float zoomLevel;
|
||||||
void setup(const QSize &size);
|
void setup(const QSize &size);
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MagnifyingGlass(int width, int height, QWidget *parent);
|
MagnifyingGlass(int width, int height, QWidget *parent);
|
||||||
MagnifyingGlass(const QSize &size, QWidget *parent);
|
MagnifyingGlass(const QSize &size, QWidget *parent);
|
||||||
void mouseMoveEvent(QMouseEvent *event);
|
void mouseMoveEvent(QMouseEvent *event) override;
|
||||||
public slots:
|
public slots:
|
||||||
void updateImage(int x, int y);
|
void updateImage(int x, int y);
|
||||||
void updateImage();
|
void updateImage();
|
||||||
void wheelEvent(QWheelEvent *event);
|
void wheelEvent(QWheelEvent *event) override;
|
||||||
void zoomIn();
|
void zoomIn();
|
||||||
void zoomOut();
|
void zoomOut();
|
||||||
void sizeUp();
|
void sizeUp();
|
||||||
|
@ -37,7 +37,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool event(QEvent *event)
|
bool event(QEvent *event) override
|
||||||
{
|
{
|
||||||
switch (event->type()) {
|
switch (event->type()) {
|
||||||
case QEvent::FileOpen:
|
case QEvent::FileOpen:
|
||||||
|
@ -156,11 +156,11 @@ private:
|
|||||||
void getSiblingComics(QString path, QString currentComic);
|
void getSiblingComics(QString path, QString currentComic);
|
||||||
|
|
||||||
//! Manejadores de evento:
|
//! Manejadores de evento:
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
//void resizeEvent(QResizeEvent * event);
|
//void resizeEvent(QResizeEvent * event);
|
||||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event);
|
void dropEvent(QDropEvent *event) override;
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
|
|
||||||
QSettings *settings;
|
QSettings *settings;
|
||||||
|
|
||||||
@ -178,11 +178,11 @@ signals:
|
|||||||
void closed();
|
void closed();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event) override;
|
||||||
void sendComic();
|
void sendComic();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MainWindowViewer();
|
MainWindowViewer();
|
||||||
~MainWindowViewer();
|
~MainWindowViewer() override;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -16,7 +16,7 @@ private:
|
|||||||
QGraphicsOpacityEffect *effect;
|
QGraphicsOpacityEffect *effect;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NotificationsLabelWidget(QWidget *parent);
|
NotificationsLabelWidget(QWidget *parent);
|
||||||
|
@ -48,8 +48,8 @@ private:
|
|||||||
YACReaderSpinSliderWidget *gammaS;
|
YACReaderSpinSliderWidget *gammaS;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void saveOptions();
|
void saveOptions() override;
|
||||||
void restoreOptions(QSettings *settings);
|
void restoreOptions(QSettings *settings) override;
|
||||||
void findFolder();
|
void findFolder();
|
||||||
void updateColor(const QColor &color);
|
void updateColor(const QColor &color);
|
||||||
//void fitToWidthRatio(int value);
|
//void fitToWidthRatio(int value);
|
||||||
|
@ -14,7 +14,7 @@ private:
|
|||||||
QPropertyAnimation *animation;
|
QPropertyAnimation *animation;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PageLabelWidget(QWidget *parent);
|
PageLabelWidget(QWidget *parent);
|
||||||
|
@ -37,7 +37,7 @@ public:
|
|||||||
enum NeighborghoodSize { SMALL = 9,
|
enum NeighborghoodSize { SMALL = 9,
|
||||||
LARGE = 25 };
|
LARGE = 25 };
|
||||||
MeanNoiseReductionFilter(enum NeighborghoodSize ns = SMALL);
|
MeanNoiseReductionFilter(enum NeighborghoodSize ns = SMALL);
|
||||||
virtual QImage setFilter(const QImage &image);
|
QImage setFilter(const QImage &image) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum NeighborghoodSize neighborghoodSize;
|
enum NeighborghoodSize neighborghoodSize;
|
||||||
@ -49,7 +49,7 @@ public:
|
|||||||
enum NeighborghoodSize { SMALL = 9,
|
enum NeighborghoodSize { SMALL = 9,
|
||||||
LARGE = 25 };
|
LARGE = 25 };
|
||||||
MedianNoiseReductionFilter(enum NeighborghoodSize ns = SMALL);
|
MedianNoiseReductionFilter(enum NeighborghoodSize ns = SMALL);
|
||||||
virtual QImage setFilter(const QImage &image);
|
QImage setFilter(const QImage &image) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum NeighborghoodSize neighborghoodSize;
|
enum NeighborghoodSize neighborghoodSize;
|
||||||
@ -59,21 +59,21 @@ class BrightnessFilter : public ImageFilter
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BrightnessFilter(int l = -1);
|
BrightnessFilter(int l = -1);
|
||||||
virtual QImage setFilter(const QImage &image);
|
QImage setFilter(const QImage &image) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ContrastFilter : public ImageFilter
|
class ContrastFilter : public ImageFilter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ContrastFilter(int l = -1);
|
ContrastFilter(int l = -1);
|
||||||
virtual QImage setFilter(const QImage &image);
|
QImage setFilter(const QImage &image) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class GammaFilter : public ImageFilter
|
class GammaFilter : public ImageFilter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GammaFilter(int l = -1);
|
GammaFilter(int l = -1);
|
||||||
virtual QImage setFilter(const QImage &image);
|
QImage setFilter(const QImage &image) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@ -98,7 +98,7 @@ private:
|
|||||||
QImage *page;
|
QImage *page;
|
||||||
unsigned int degrees;
|
unsigned int degrees;
|
||||||
QVector<ImageFilter *> filters;
|
QVector<ImageFilter *> filters;
|
||||||
void run();
|
void run() override;
|
||||||
Render *render;
|
Render *render;
|
||||||
signals:
|
signals:
|
||||||
void pageReady(int);
|
void pageReady(int);
|
||||||
@ -132,7 +132,7 @@ class Render : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Render();
|
Render();
|
||||||
~Render();
|
~Render() override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void render();
|
void render();
|
||||||
|
@ -26,7 +26,7 @@ class YACReaderTranslator : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
YACReaderTranslator(QWidget *parent = nullptr);
|
YACReaderTranslator(QWidget *parent = nullptr);
|
||||||
~YACReaderTranslator();
|
~YACReaderTranslator() override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void play();
|
void play();
|
||||||
@ -39,9 +39,9 @@ protected slots:
|
|||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
void mouseReleaseEvent(QMouseEvent *event);
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||||
void mouseMoveEvent(QMouseEvent *event);
|
void mouseMoveEvent(QMouseEvent *event) override;
|
||||||
void hideResults();
|
void hideResults();
|
||||||
|
|
||||||
void populateCombos();
|
void populateCombos();
|
||||||
@ -80,7 +80,7 @@ private:
|
|||||||
QString text;
|
QString text;
|
||||||
QString from;
|
QString from;
|
||||||
QString to;
|
QString to;
|
||||||
void run();
|
void run() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class TextToSpeachLoader : public QThread
|
class TextToSpeachLoader : public QThread
|
||||||
@ -96,6 +96,6 @@ signals:
|
|||||||
private:
|
private:
|
||||||
QString text;
|
QString text;
|
||||||
QString language;
|
QString language;
|
||||||
void run();
|
void run() override;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -87,8 +87,8 @@ public slots:
|
|||||||
void translatorSwitch();
|
void translatorSwitch();
|
||||||
void animateShowTranslator();
|
void animateShowTranslator();
|
||||||
void animateHideTranslator();
|
void animateHideTranslator();
|
||||||
virtual void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
virtual void mouseReleaseEvent(QMouseEvent *event);
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||||
void updateBackgroundColor(const QColor &color);
|
void updateBackgroundColor(const QColor &color);
|
||||||
void updateConfig(QSettings *settings);
|
void updateConfig(QSettings *settings);
|
||||||
void showMessageErrorOpening();
|
void showMessageErrorOpening();
|
||||||
@ -155,10 +155,10 @@ private:
|
|||||||
bool restoreMagnifyingGlass;
|
bool restoreMagnifyingGlass;
|
||||||
|
|
||||||
//! Manejadores de evento:
|
//! Manejadores de evento:
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
void wheelEvent(QWheelEvent *event);
|
void wheelEvent(QWheelEvent *event) override;
|
||||||
void mouseMoveEvent(QMouseEvent *event);
|
void mouseMoveEvent(QMouseEvent *event) override;
|
||||||
|
|
||||||
//!ZigzagScroll
|
//!ZigzagScroll
|
||||||
enum scrollDirection { UP,
|
enum scrollDirection { UP,
|
||||||
|
@ -18,8 +18,8 @@ public:
|
|||||||
void show();
|
void show();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void focusOutEvent(QFocusEvent *event);
|
void focusOutEvent(QFocusEvent *event) override;
|
||||||
virtual void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *) override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void updateText(int value);
|
void updateText(int value);
|
||||||
|
@ -11,7 +11,7 @@ class YACReaderLocalClient : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit YACReaderLocalClient(QObject *parent = nullptr);
|
explicit YACReaderLocalClient(QObject *parent = nullptr);
|
||||||
~YACReaderLocalClient();
|
~YACReaderLocalClient() override;
|
||||||
signals:
|
signals:
|
||||||
void finished();
|
void finished();
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
int exec();
|
int exec() override;
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void validateName(const QString &name);
|
void validateName(const QString &name);
|
||||||
|
@ -8,7 +8,7 @@ class BundleCreator : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
BundleCreator(void);
|
BundleCreator(void);
|
||||||
~BundleCreator(void);
|
~BundleCreator(void) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -20,21 +20,21 @@ class ClassicComicsView : public ComicsView
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ClassicComicsView(QWidget *parent = 0);
|
ClassicComicsView(QWidget *parent = 0);
|
||||||
void setToolBar(QToolBar *toolBar);
|
void setToolBar(QToolBar *toolBar) override;
|
||||||
void setModel(ComicModel *model);
|
void setModel(ComicModel *model) override;
|
||||||
|
|
||||||
QModelIndex currentIndex();
|
QModelIndex currentIndex() override;
|
||||||
QItemSelectionModel *selectionModel();
|
QItemSelectionModel *selectionModel() override;
|
||||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint);
|
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint) override;
|
||||||
void toFullScreen();
|
void toFullScreen() override;
|
||||||
void toNormal();
|
void toNormal() override;
|
||||||
void updateConfig(QSettings *settings);
|
void updateConfig(QSettings *settings) override;
|
||||||
void enableFilterMode(bool enabled);
|
void enableFilterMode(bool enabled) override;
|
||||||
void selectIndex(int index);
|
void selectIndex(int index) override;
|
||||||
void updateCurrentComicView();
|
void updateCurrentComicView() override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setCurrentIndex(const QModelIndex &index);
|
void setCurrentIndex(const QModelIndex &index) override;
|
||||||
void centerComicFlow(const QModelIndex &mi);
|
void centerComicFlow(const QModelIndex &mi);
|
||||||
void updateTableView(int i);
|
void updateTableView(int i);
|
||||||
void saveTableHeadersStatus();
|
void saveTableHeadersStatus();
|
||||||
@ -42,8 +42,8 @@ public slots:
|
|||||||
void applyModelChanges(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles);
|
void applyModelChanges(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles);
|
||||||
void removeItemsFromFlow(const QModelIndex &parent, int from, int to);
|
void removeItemsFromFlow(const QModelIndex &parent, int from, int to);
|
||||||
//ComicsView
|
//ComicsView
|
||||||
void setShowMarks(bool show);
|
void setShowMarks(bool show) override;
|
||||||
void selectAll();
|
void selectAll() override;
|
||||||
void selectedComicForOpening(const QModelIndex &mi);
|
void selectedComicForOpening(const QModelIndex &mi);
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
@ -60,7 +60,7 @@ private:
|
|||||||
QSplitter *sVertical;
|
QSplitter *sVertical;
|
||||||
ComicFlowWidget *comicFlow;
|
ComicFlowWidget *comicFlow;
|
||||||
QSettings *settings;
|
QSettings *settings;
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event) override;
|
||||||
QAction *hideFlowViewAction;
|
QAction *hideFlowViewAction;
|
||||||
|
|
||||||
QStackedWidget *stack;
|
QStackedWidget *stack;
|
||||||
|
@ -22,7 +22,7 @@ public:
|
|||||||
|
|
||||||
void setImagePaths(const QStringList &paths);
|
void setImagePaths(const QStringList &paths);
|
||||||
//bool eventFilter(QObject *target, QEvent *event);
|
//bool eventFilter(QObject *target, QEvent *event);
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
void removeSlide(int cover);
|
void removeSlide(int cover);
|
||||||
void resortCovers(QList<int> newOrder);
|
void resortCovers(QList<int> newOrder);
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ class ImageLoader : public QThread
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ImageLoader();
|
ImageLoader();
|
||||||
~ImageLoader();
|
~ImageLoader() override;
|
||||||
// returns FALSE if worker is still busy and can't take the task
|
// returns FALSE if worker is still busy and can't take the task
|
||||||
bool busy() const;
|
bool busy() const;
|
||||||
void generate(int index, const QString &fileName, QSize size);
|
void generate(int index, const QString &fileName, QSize size);
|
||||||
@ -59,7 +59,7 @@ public:
|
|||||||
QImage result();
|
QImage result();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void run();
|
void run() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QMutex mutex;
|
QMutex mutex;
|
||||||
|
@ -46,32 +46,32 @@ private:
|
|||||||
public:
|
public:
|
||||||
ComicFlowWidgetSW(QWidget *parent = nullptr);
|
ComicFlowWidgetSW(QWidget *parent = nullptr);
|
||||||
|
|
||||||
void setShowMarks(bool value);
|
void setShowMarks(bool value) override;
|
||||||
void setMarks(QVector<YACReaderComicReadStatus> marks);
|
void setMarks(QVector<YACReaderComicReadStatus> marks) override;
|
||||||
void setMarkImage(QImage &image);
|
void setMarkImage(QImage &image) override;
|
||||||
void markSlide(int index, YACReaderComicReadStatus status);
|
void markSlide(int index, YACReaderComicReadStatus status) override;
|
||||||
void unmarkSlide(int index);
|
void unmarkSlide(int index) override;
|
||||||
void setSlideSize(QSize size);
|
void setSlideSize(QSize size) override;
|
||||||
void clear();
|
void clear() override;
|
||||||
void setImagePaths(QStringList paths);
|
void setImagePaths(QStringList paths) override;
|
||||||
void setCenterIndex(int index);
|
void setCenterIndex(int index) override;
|
||||||
void showSlide(int index);
|
void showSlide(int index) override;
|
||||||
int centerIndex();
|
int centerIndex();
|
||||||
void updateMarks();
|
void updateMarks() override;
|
||||||
void setFlowType(FlowType flowType);
|
void setFlowType(FlowType flowType) override;
|
||||||
void render();
|
void render() override;
|
||||||
void updateConfig(QSettings *settings);
|
void updateConfig(QSettings *settings) override;
|
||||||
void remove(int cover);
|
void remove(int cover) override;
|
||||||
void resortCovers(QList<int> newOrder);
|
void resortCovers(QList<int> newOrder) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
void paintEvent(QPaintEvent *event);
|
void paintEvent(QPaintEvent *event) override;
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||||
QSize minimumSizeHint() const;
|
QSize minimumSizeHint() const;
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const override;
|
||||||
QSize slideSizeW;
|
QSize slideSizeW;
|
||||||
QSize slideSizeF;
|
QSize slideSizeF;
|
||||||
};
|
};
|
||||||
@ -86,23 +86,23 @@ private:
|
|||||||
public:
|
public:
|
||||||
ComicFlowWidgetGL(QWidget *parent = nullptr);
|
ComicFlowWidgetGL(QWidget *parent = nullptr);
|
||||||
|
|
||||||
void setShowMarks(bool value);
|
void setShowMarks(bool value) override;
|
||||||
void setMarks(QVector<YACReaderComicReadStatus> marks);
|
void setMarks(QVector<YACReaderComicReadStatus> marks) override;
|
||||||
void setMarkImage(QImage &image);
|
void setMarkImage(QImage &image) override;
|
||||||
void markSlide(int index, YACReaderComicReadStatus status);
|
void markSlide(int index, YACReaderComicReadStatus status) override;
|
||||||
void unmarkSlide(int index);
|
void unmarkSlide(int index) override;
|
||||||
void setSlideSize(QSize size);
|
void setSlideSize(QSize size) override;
|
||||||
void clear();
|
void clear() override;
|
||||||
void setImagePaths(QStringList paths);
|
void setImagePaths(QStringList paths) override;
|
||||||
void setCenterIndex(int index);
|
void setCenterIndex(int index) override;
|
||||||
void showSlide(int index);
|
void showSlide(int index) override;
|
||||||
int centerIndex();
|
int centerIndex();
|
||||||
void updateMarks();
|
void updateMarks() override;
|
||||||
void setFlowType(FlowType flowType);
|
void setFlowType(FlowType flowType) override;
|
||||||
void render();
|
void render() override;
|
||||||
void updateConfig(QSettings *settings);
|
void updateConfig(QSettings *settings) override;
|
||||||
void remove(int cover);
|
void remove(int cover) override;
|
||||||
void resortCovers(QList<int> newOrder);
|
void resortCovers(QList<int> newOrder) override;
|
||||||
//public slots:
|
//public slots:
|
||||||
// void setCF_RX(int value);
|
// void setCF_RX(int value);
|
||||||
// //the Y Rotation of the Coverflow
|
// //the Y Rotation of the Coverflow
|
||||||
@ -122,13 +122,13 @@ public:
|
|||||||
// void setY_Distance(int value);
|
// void setY_Distance(int value);
|
||||||
// void setPreset(const Preset & p);
|
// void setPreset(const Preset & p);
|
||||||
protected:
|
protected:
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
void paintEvent(QPaintEvent *event);
|
void paintEvent(QPaintEvent *event) override;
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||||
QSize minimumSizeHint() const;
|
QSize minimumSizeHint() const override;
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const override;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -12,7 +12,7 @@ class ApiKeyDialog : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit ApiKeyDialog(QWidget *parent = nullptr);
|
explicit ApiKeyDialog(QWidget *parent = nullptr);
|
||||||
~ApiKeyDialog();
|
~ApiKeyDialog() override;
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -11,7 +11,7 @@ class ComicVineClient : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit ComicVineClient(QObject *parent = nullptr);
|
explicit ComicVineClient(QObject *parent = nullptr);
|
||||||
~ComicVineClient();
|
~ComicVineClient() override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void searchResult(QString);
|
void searchResult(QString);
|
||||||
|
@ -30,8 +30,8 @@ public:
|
|||||||
QString databasePath;
|
QString databasePath;
|
||||||
QString basePath;
|
QString basePath;
|
||||||
void setComics(const QList<ComicDB> &comics);
|
void setComics(const QList<ComicDB> &comics);
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const override;
|
||||||
QSize minimumSizeHint() const;
|
QSize minimumSizeHint() const override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
|
@ -14,14 +14,14 @@ public:
|
|||||||
void load(QList<ComicDB> &comics);
|
void load(QList<ComicDB> &comics);
|
||||||
|
|
||||||
//QAbstractItemModel methods
|
//QAbstractItemModel methods
|
||||||
QModelIndex parent(const QModelIndex &index) const;
|
QModelIndex parent(const QModelIndex &index) const override;
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
int columnCount(const QModelIndex &parent) const;
|
int columnCount(const QModelIndex &parent) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation,
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
int role = Qt::DisplayRole) const;
|
int role = Qt::DisplayRole) const override;
|
||||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||||
QList<ComicDB> getData();
|
QList<ComicDB> getData();
|
||||||
|
|
||||||
void removeComics(const QList<QModelIndex> &selectedIndexes);
|
void removeComics(const QList<QModelIndex> &selectedIndexes);
|
||||||
|
@ -8,17 +8,17 @@ class VolumeComicsModel : public JSONModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit VolumeComicsModel(QObject *parent = nullptr);
|
explicit VolumeComicsModel(QObject *parent = nullptr);
|
||||||
void load(const QString &json);
|
void load(const QString &json) override;
|
||||||
//void load(const QStringList & jsonList);
|
//void load(const QStringList & jsonList);
|
||||||
|
|
||||||
QModelIndex parent(const QModelIndex &index) const;
|
QModelIndex parent(const QModelIndex &index) const override;
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
int columnCount(const QModelIndex &parent) const;
|
int columnCount(const QModelIndex &parent) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation,
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
int role = Qt::DisplayRole) const;
|
int role = Qt::DisplayRole) const override;
|
||||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -10,17 +10,17 @@ public:
|
|||||||
explicit VolumesModel(QObject *parent = nullptr);
|
explicit VolumesModel(QObject *parent = nullptr);
|
||||||
virtual ~VolumesModel();
|
virtual ~VolumesModel();
|
||||||
//receive a valid json with a list of volumes
|
//receive a valid json with a list of volumes
|
||||||
void load(const QString &json);
|
void load(const QString &json) override;
|
||||||
|
|
||||||
//QAbstractItemModel methods
|
//QAbstractItemModel methods
|
||||||
QModelIndex parent(const QModelIndex &index) const;
|
QModelIndex parent(const QModelIndex &index) const override;
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
int columnCount(const QModelIndex &parent) const;
|
int columnCount(const QModelIndex &parent) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation,
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
int role = Qt::DisplayRole) const;
|
int role = Qt::DisplayRole) const;
|
||||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||||
|
|
||||||
QString getVolumeId(const QModelIndex &index) const;
|
QString getVolumeId(const QModelIndex &index) const;
|
||||||
int getNumIssues(const QModelIndex &index) const;
|
int getNumIssues(const QModelIndex &index) const;
|
||||||
|
@ -12,7 +12,7 @@ public:
|
|||||||
ScraperLineEdit(const QString &title, QWidget *widget = nullptr);
|
ScraperLineEdit(const QString &title, QWidget *widget = nullptr);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void resizeEvent(QResizeEvent *);
|
void resizeEvent(QResizeEvent *) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QLabel *titleLabel;
|
QLabel *titleLabel;
|
||||||
|
@ -15,7 +15,7 @@ class SelectComic : public ScraperSelector
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
SelectComic(QWidget *parent = nullptr);
|
SelectComic(QWidget *parent = nullptr);
|
||||||
void load(const QString &json, const QString &searchString);
|
void load(const QString &json, const QString &searchString) override;
|
||||||
virtual ~SelectComic();
|
virtual ~SelectComic();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -17,7 +17,7 @@ class SelectVolume : public ScraperSelector
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
SelectVolume(QWidget *parent = nullptr);
|
SelectVolume(QWidget *parent = nullptr);
|
||||||
void load(const QString &json, const QString &searchString);
|
void load(const QString &json, const QString &searchString) override;
|
||||||
virtual ~SelectVolume();
|
virtual ~SelectVolume();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
virtual ~ScrapperToolButton() {}
|
virtual ~ScrapperToolButton() {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *e)
|
void paintEvent(QPaintEvent *e) override
|
||||||
{
|
{
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
|
||||||
|
@ -52,8 +52,8 @@ protected:
|
|||||||
ComicModel *model;
|
ComicModel *model;
|
||||||
|
|
||||||
//Drop to import
|
//Drop to import
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event);
|
void dropEvent(QDropEvent *event) override;
|
||||||
|
|
||||||
QQuickWidget *view;
|
QQuickWidget *view;
|
||||||
QWidget *container;
|
QWidget *container;
|
||||||
|
@ -11,7 +11,7 @@ public:
|
|||||||
QSize sizeHint();
|
QSize sizeHint();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // COMICS_VIEW_TRANSITION_H
|
#endif // COMICS_VIEW_TRANSITION_H
|
||||||
|
@ -10,7 +10,7 @@ class ComicItem : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ComicItem(const QList<QVariant> &data);
|
ComicItem(const QList<QVariant> &data);
|
||||||
~ComicItem();
|
~ComicItem() override;
|
||||||
int columnCount() const;
|
int columnCount() const;
|
||||||
QVariant data(int column) const;
|
QVariant data(int column) const;
|
||||||
void setData(int column, const QVariant &value);
|
void setData(int column, const QVariant &value);
|
||||||
|
@ -67,19 +67,19 @@ public:
|
|||||||
public:
|
public:
|
||||||
ComicModel(QObject *parent = 0);
|
ComicModel(QObject *parent = 0);
|
||||||
ComicModel(QSqlQuery &sqlquery, QObject *parent = 0);
|
ComicModel(QSqlQuery &sqlquery, QObject *parent = 0);
|
||||||
~ComicModel();
|
~ComicModel() override;
|
||||||
|
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation,
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
int role = Qt::DisplayRole) const;
|
int role = Qt::DisplayRole) const override;
|
||||||
QModelIndex index(int row, int column,
|
QModelIndex index(int row, int column,
|
||||||
const QModelIndex &parent = QModelIndex()) const;
|
const QModelIndex &parent = QModelIndex()) const override;
|
||||||
QModelIndex parent(const QModelIndex &index) const;
|
QModelIndex parent(const QModelIndex &index) const override;
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const;
|
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override;
|
||||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
|
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
||||||
bool canBeResorted();
|
bool canBeResorted();
|
||||||
QMimeData *mimeData(const QModelIndexList &indexes) const;
|
QMimeData *mimeData(const QModelIndexList &indexes) const;
|
||||||
QStringList mimeTypes() const;
|
QStringList mimeTypes() const;
|
||||||
@ -130,7 +130,7 @@ public:
|
|||||||
|
|
||||||
ComicModel::Mode getMode() { return mode; }
|
ComicModel::Mode getMode() { return mode; }
|
||||||
|
|
||||||
QHash<int, QByteArray> roleNames() const;
|
QHash<int, QByteArray> roleNames() const override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void remove(int row);
|
void remove(int row);
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
void exportComicsInfo(QSqlDatabase &source, QSqlDatabase &dest);
|
void exportComicsInfo(QSqlDatabase &source, QSqlDatabase &dest);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void run();
|
void run() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ComicsInfoImporter : public QThread
|
class ComicsInfoImporter : public QThread
|
||||||
@ -26,7 +26,7 @@ public:
|
|||||||
void importComicsInfo(QSqlDatabase &source, QSqlDatabase &dest);
|
void importComicsInfo(QSqlDatabase &source, QSqlDatabase &dest);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void run();
|
void run() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DataBaseManagement : public QObject
|
class DataBaseManagement : public QObject
|
||||||
|
@ -57,14 +57,14 @@ class FolderModelProxy : public QSortFilterProxyModel
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit FolderModelProxy(QObject *parent = 0);
|
explicit FolderModelProxy(QObject *parent = 0);
|
||||||
~FolderModelProxy();
|
~FolderModelProxy() override;
|
||||||
|
|
||||||
void setFilter(const YACReader::SearchModifiers modifier, QString filter, bool includeComics);
|
void setFilter(const YACReader::SearchModifiers modifier, QString filter, bool includeComics);
|
||||||
void setupFilteredModelData(QSqlQuery &sqlquery, FolderItem *parent);
|
void setupFilteredModelData(QSqlQuery &sqlquery, FolderItem *parent);
|
||||||
void setupFilteredModelData();
|
void setupFilteredModelData();
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
|
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
FolderItem *rootItem;
|
FolderItem *rootItem;
|
||||||
@ -87,18 +87,18 @@ class FolderModel : public QAbstractItemModel
|
|||||||
public:
|
public:
|
||||||
FolderModel(QObject *parent = 0);
|
FolderModel(QObject *parent = 0);
|
||||||
FolderModel(QSqlQuery &sqlquery, QObject *parent = 0);
|
FolderModel(QSqlQuery &sqlquery, QObject *parent = 0);
|
||||||
~FolderModel();
|
~FolderModel() override;
|
||||||
|
|
||||||
//QAbstractItemModel methods
|
//QAbstractItemModel methods
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation,
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
int role = Qt::DisplayRole) const;
|
int role = Qt::DisplayRole) const override;
|
||||||
QModelIndex index(int row, int column,
|
QModelIndex index(int row, int column,
|
||||||
const QModelIndex &parent = QModelIndex()) const;
|
const QModelIndex &parent = QModelIndex()) const override;
|
||||||
QModelIndex parent(const QModelIndex &index) const;
|
QModelIndex parent(const QModelIndex &index) const override;
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
|
|
||||||
//Convenience methods
|
//Convenience methods
|
||||||
void setupModelData(QString path);
|
void setupModelData(QString path);
|
||||||
|
@ -26,7 +26,7 @@ class SpecialListItem : public ListItem
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SpecialListItem(const QList<QVariant> &data);
|
SpecialListItem(const QList<QVariant> &data);
|
||||||
QIcon getIcon() const;
|
QIcon getIcon() const override;
|
||||||
ReadingListModel::TypeSpecialList getType() const;
|
ReadingListModel::TypeSpecialList getType() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -42,11 +42,11 @@ class LabelItem : public ListItem
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LabelItem(const QList<QVariant> &data);
|
LabelItem(const QList<QVariant> &data);
|
||||||
QIcon getIcon() const;
|
QIcon getIcon() const override;
|
||||||
YACReader::LabelColors colorid() const;
|
YACReader::LabelColors colorid() const;
|
||||||
QString name() const;
|
QString name() const;
|
||||||
void setName(const QString &name);
|
void setName(const QString &name);
|
||||||
qulonglong getId() const;
|
qulonglong getId() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum DataIndexes {
|
enum DataIndexes {
|
||||||
@ -63,7 +63,7 @@ class ReadingListItem : public ListItem
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ReadingListItem(const QList<QVariant> &data, ReadingListItem *parent = nullptr);
|
ReadingListItem(const QList<QVariant> &data, ReadingListItem *parent = nullptr);
|
||||||
QIcon getIcon() const;
|
QIcon getIcon() const override;
|
||||||
ReadingListItem *parent;
|
ReadingListItem *parent;
|
||||||
int childCount() const;
|
int childCount() const;
|
||||||
int row() const;
|
int row() const;
|
||||||
@ -71,7 +71,7 @@ public:
|
|||||||
void appendChild(ReadingListItem *item);
|
void appendChild(ReadingListItem *item);
|
||||||
void appendChild(ReadingListItem *item, int pos);
|
void appendChild(ReadingListItem *item, int pos);
|
||||||
void removeChild(ReadingListItem *item);
|
void removeChild(ReadingListItem *item);
|
||||||
qulonglong getId() const;
|
qulonglong getId() const override;
|
||||||
QString name() const;
|
QString name() const;
|
||||||
void setName(const QString &name);
|
void setName(const QString &name);
|
||||||
int getOrdering() const;
|
int getOrdering() const;
|
||||||
@ -96,7 +96,7 @@ class ReadingListSeparatorItem : public ListItem
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ReadingListSeparatorItem();
|
ReadingListSeparatorItem();
|
||||||
QIcon getIcon() const;
|
QIcon getIcon() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // READING_LIST_ITEM_H
|
#endif // READING_LIST_ITEM_H
|
||||||
|
@ -29,18 +29,18 @@ public:
|
|||||||
explicit ReadingListModel(QObject *parent = 0);
|
explicit ReadingListModel(QObject *parent = 0);
|
||||||
|
|
||||||
//QAbstractItemModel methods
|
//QAbstractItemModel methods
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation,
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
int role = Qt::DisplayRole) const;
|
int role = Qt::DisplayRole) const override;
|
||||||
QModelIndex index(int row, int column,
|
QModelIndex index(int row, int column,
|
||||||
const QModelIndex &parent = QModelIndex()) const;
|
const QModelIndex &parent = QModelIndex()) const override;
|
||||||
QModelIndex parent(const QModelIndex &index) const;
|
QModelIndex parent(const QModelIndex &index) const override;
|
||||||
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const;
|
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override;
|
||||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
|
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
||||||
QMimeData *mimeData(const QModelIndexList &indexes) const;
|
QMimeData *mimeData(const QModelIndexList &indexes) const override;
|
||||||
|
|
||||||
//Convenience methods
|
//Convenience methods
|
||||||
void setupReadingListsData(QString path);
|
void setupReadingListsData(QString path);
|
||||||
|
@ -16,7 +16,7 @@ signals:
|
|||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *) override;
|
||||||
|
|
||||||
QLabel *iconLabel;
|
QLabel *iconLabel;
|
||||||
QLabel *titleLabel;
|
QLabel *titleLabel;
|
||||||
|
@ -38,7 +38,7 @@ public:
|
|||||||
virtual ~ListviewDelegate() {}
|
virtual ~ListviewDelegate() {}
|
||||||
|
|
||||||
void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
||||||
const QModelIndex &index) const
|
const QModelIndex &index) const override
|
||||||
{
|
{
|
||||||
painter->save();
|
painter->save();
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
QSize sizeHint(const QStyleOptionViewItem &option,
|
QSize sizeHint(const QStyleOptionViewItem &option,
|
||||||
const QModelIndex &index) const
|
const QModelIndex &index) const override
|
||||||
{
|
{
|
||||||
QFontMetrics fm(option.font);
|
QFontMetrics fm(option.font);
|
||||||
QString text = qvariant_cast<QString>(index.data(Qt::DisplayRole));
|
QString text = qvariant_cast<QString>(index.data(Qt::DisplayRole));
|
||||||
|
@ -27,8 +27,8 @@ protected:
|
|||||||
QString backgroundColor;
|
QString backgroundColor;
|
||||||
|
|
||||||
//Drop to import
|
//Drop to import
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event);
|
void dropEvent(QDropEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // EMPTY_FOLDER_WIDGET_H
|
#endif // EMPTY_FOLDER_WIDGET_H
|
||||||
|
@ -12,7 +12,7 @@ class ExportComicsInfoDialog : public QDialog
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
ExportComicsInfoDialog(QWidget *parent = nullptr);
|
ExportComicsInfoDialog(QWidget *parent = nullptr);
|
||||||
~ExportComicsInfoDialog();
|
~ExportComicsInfoDialog() override;
|
||||||
QString source;
|
QString source;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -21,25 +21,25 @@ class GridComicsView : public ComicsView
|
|||||||
public:
|
public:
|
||||||
explicit GridComicsView(QWidget *parent = 0);
|
explicit GridComicsView(QWidget *parent = 0);
|
||||||
virtual ~GridComicsView();
|
virtual ~GridComicsView();
|
||||||
void setToolBar(QToolBar *toolBar);
|
void setToolBar(QToolBar *toolBar) override;
|
||||||
void setModel(ComicModel *model);
|
void setModel(ComicModel *model) override;
|
||||||
void setCurrentIndex(const QModelIndex &index);
|
void setCurrentIndex(const QModelIndex &index) override;
|
||||||
QModelIndex currentIndex();
|
QModelIndex currentIndex() override;
|
||||||
QItemSelectionModel *selectionModel();
|
QItemSelectionModel *selectionModel() override;
|
||||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint);
|
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint) override;
|
||||||
void toFullScreen();
|
void toFullScreen() override;
|
||||||
void toNormal();
|
void toNormal() override;
|
||||||
void updateConfig(QSettings *settings);
|
void updateConfig(QSettings *settings) override;
|
||||||
void enableFilterMode(bool enabled);
|
void enableFilterMode(bool enabled) override;
|
||||||
QSize sizeHint();
|
QSize sizeHint();
|
||||||
QByteArray getMimeDataFromSelection();
|
QByteArray getMimeDataFromSelection();
|
||||||
void updateCurrentComicView();
|
void updateCurrentComicView() override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
//ComicsView
|
//ComicsView
|
||||||
void setShowMarks(bool show);
|
void setShowMarks(bool show) override;
|
||||||
void selectAll();
|
void selectAll() override;
|
||||||
void selectIndex(int index);
|
void selectIndex(int index) override;
|
||||||
void triggerOpenCurrentComic();
|
void triggerOpenCurrentComic();
|
||||||
|
|
||||||
void updateBackgroundConfig();
|
void updateBackgroundConfig();
|
||||||
@ -93,7 +93,7 @@ private:
|
|||||||
ComicDB currentComic;
|
ComicDB currentComic;
|
||||||
|
|
||||||
bool dummy;
|
bool dummy;
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event) override;
|
||||||
void createCoverSizeSliderWidget();
|
void createCoverSizeSliderWidget();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ public:
|
|||||||
QString dest;
|
QString dest;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void run();
|
void run() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ImportComicsInfoDialog : public QDialog
|
class ImportComicsInfoDialog : public QDialog
|
||||||
|
@ -29,7 +29,7 @@ private:
|
|||||||
QProgressBar *progressBar;
|
QProgressBar *progressBar;
|
||||||
void setupUI();
|
void setupUI();
|
||||||
int progressCount;
|
int progressCount;
|
||||||
void closeEvent(QCloseEvent *e);
|
void closeEvent(QCloseEvent *e) override;
|
||||||
YACReaderLibraries libraries;
|
YACReaderLibraries libraries;
|
||||||
public slots:
|
public slots:
|
||||||
void add();
|
void add();
|
||||||
|
@ -41,7 +41,7 @@ private:
|
|||||||
|
|
||||||
QToolButton *hideButton;
|
QToolButton *hideButton;
|
||||||
|
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // IMPORT_WIDGET_H
|
#endif // IMPORT_WIDGET_H
|
||||||
|
@ -13,23 +13,23 @@ class InfoComicsView : public ComicsView
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit InfoComicsView(QWidget *parent = nullptr);
|
explicit InfoComicsView(QWidget *parent = nullptr);
|
||||||
~InfoComicsView();
|
~InfoComicsView() override;
|
||||||
void setToolBar(QToolBar *toolBar);
|
void setToolBar(QToolBar *toolBar) override;
|
||||||
void setModel(ComicModel *model);
|
void setModel(ComicModel *model) override;
|
||||||
void setCurrentIndex(const QModelIndex &index);
|
void setCurrentIndex(const QModelIndex &index) override;
|
||||||
QModelIndex currentIndex();
|
QModelIndex currentIndex() override;
|
||||||
QItemSelectionModel *selectionModel();
|
QItemSelectionModel *selectionModel() override;
|
||||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint);
|
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint) override;
|
||||||
void toFullScreen();
|
void toFullScreen() override;
|
||||||
void toNormal();
|
void toNormal() override;
|
||||||
void updateConfig(QSettings *settings);
|
void updateConfig(QSettings *settings) override;
|
||||||
void enableFilterMode(bool enabled);
|
void enableFilterMode(bool enabled) override;
|
||||||
void selectIndex(int index);
|
void selectIndex(int index) override;
|
||||||
void updateCurrentComicView();
|
void updateCurrentComicView() override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setShowMarks(bool show);
|
void setShowMarks(bool show);
|
||||||
void selectAll();
|
void selectAll() override;
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void setCurrentIndex(int index);
|
void setCurrentIndex(int index);
|
||||||
|
@ -43,7 +43,7 @@ private:
|
|||||||
//recursive method
|
//recursive method
|
||||||
void create(QDir currentDirectory);
|
void create(QDir currentDirectory);
|
||||||
void update(QDir currentDirectory);
|
void update(QDir currentDirectory);
|
||||||
void run();
|
void run() override;
|
||||||
qulonglong insertFolders(); //devuelve el id del último folder añadido (último en la ruta)
|
qulonglong insertFolders(); //devuelve el id del último folder añadido (último en la ruta)
|
||||||
bool checkCover(const QString &hash);
|
bool checkCover(const QString &hash);
|
||||||
void insertComic(const QString &relativePath, const QFileInfo &fileInfo);
|
void insertComic(const QString &relativePath, const QFileInfo &fileInfo);
|
||||||
|
@ -18,7 +18,7 @@ public slots:
|
|||||||
protected:
|
protected:
|
||||||
QLabel *iconLabel;
|
QLabel *iconLabel;
|
||||||
QLabel *titleLabel;
|
QLabel *titleLabel;
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *) override;
|
||||||
QString backgroundColor;
|
QString backgroundColor;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ public:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void editApiKey();
|
void editApiKey();
|
||||||
void restoreOptions(QSettings *settings);
|
void restoreOptions(QSettings *settings) override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void useBackgroundImageCheckClicked(bool checked);
|
void useBackgroundImageCheckClicked(bool checked);
|
||||||
|
@ -110,7 +110,7 @@ private:
|
|||||||
void setDisableUniqueValues(bool disabled);
|
void setDisableUniqueValues(bool disabled);
|
||||||
|
|
||||||
QList<ComicDB> comics;
|
QList<ComicDB> comics;
|
||||||
void closeEvent(QCloseEvent *e);
|
void closeEvent(QCloseEvent *e) override;
|
||||||
void updateCoverPageNumberLabel(int n);
|
void updateCoverPageNumberLabel(int n);
|
||||||
|
|
||||||
bool coverChanged;
|
bool coverChanged;
|
||||||
@ -122,7 +122,7 @@ public:
|
|||||||
QString databasePath;
|
QString databasePath;
|
||||||
QString basePath;
|
QString basePath;
|
||||||
QSize sizeHint();
|
QSize sizeHint();
|
||||||
void paintEvent(QPaintEvent *event);
|
void paintEvent(QPaintEvent *event) override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setComics(QList<ComicDB> comics);
|
void setComics(QList<ComicDB> comics);
|
||||||
|
@ -19,7 +19,7 @@ public:
|
|||||||
ComicController();
|
ComicController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // COMICCONTROLLER_H
|
#endif // COMICCONTROLLER_H
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
ComicDownloadInfoController();
|
ComicDownloadInfoController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // COMICDOWNLOADINFOCONTROLLER_H
|
#endif // COMICDOWNLOADINFOCONTROLLER_H
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
CoverController();
|
CoverController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // COVERCONTROLLER_H
|
#endif // COVERCONTROLLER_H
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
ErrorController(int errorCode);
|
ErrorController(int errorCode);
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int error;
|
int error;
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
FolderController();
|
FolderController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // FOLDERCONTROLLER_H
|
#endif // FOLDERCONTROLLER_H
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
FolderInfoController();
|
FolderInfoController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceComics(const int &library, const qulonglong &folderId, HttpResponse &response);
|
void serviceComics(const int &library, const qulonglong &folderId, HttpResponse &response);
|
||||||
|
@ -19,7 +19,7 @@ public:
|
|||||||
LibrariesController();
|
LibrariesController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LIBRARIESCONTROLLER_H
|
#endif // LIBRARIESCONTROLLER_H
|
||||||
|
@ -15,7 +15,7 @@ public:
|
|||||||
PageController();
|
PageController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PAGECONTROLLER_H
|
#endif // PAGECONTROLLER_H
|
||||||
|
@ -16,7 +16,7 @@ public:
|
|||||||
SyncController();
|
SyncController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SYNCCONTROLLER_H
|
#endif // SYNCCONTROLLER_H
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
UpdateComicController();
|
UpdateComicController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // UPDATECOMICCONTROLLER_H
|
#endif // UPDATECOMICCONTROLLER_H
|
||||||
|
@ -18,7 +18,7 @@ public:
|
|||||||
ComicControllerV2();
|
ComicControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // COMICCONTROLLER_H
|
#endif // COMICCONTROLLER_H
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
ComicDownloadInfoControllerV2();
|
ComicDownloadInfoControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // COMICDOWNLOADINFOCONTROLLER_H
|
#endif // COMICDOWNLOADINFOCONTROLLER_H
|
||||||
|
@ -12,7 +12,7 @@ class ComicFullinfoController_v2 : public HttpRequestHandler
|
|||||||
public:
|
public:
|
||||||
ComicFullinfoController_v2();
|
ComicFullinfoController_v2();
|
||||||
|
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceContent(const int &library, const qulonglong &comicId, HttpResponse &response);
|
void serviceContent(const int &library, const qulonglong &comicId, HttpResponse &response);
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
CoverControllerV2();
|
CoverControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // COVERCONTROLLER_H
|
#endif // COVERCONTROLLER_H
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
ErrorControllerV2(int errorCode);
|
ErrorControllerV2(int errorCode);
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int error;
|
int error;
|
||||||
|
@ -12,7 +12,7 @@ class FavoritesControllerV2 : public HttpRequestHandler
|
|||||||
public:
|
public:
|
||||||
FavoritesControllerV2();
|
FavoritesControllerV2();
|
||||||
|
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceContent(const int library, HttpResponse &response);
|
void serviceContent(const int library, HttpResponse &response);
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
FolderContentControllerV2();
|
FolderContentControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceContent(const int &library, const qulonglong &folderId, HttpResponse &response);
|
void serviceContent(const int &library, const qulonglong &folderId, HttpResponse &response);
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
FolderInfoControllerV2();
|
FolderInfoControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceComics(const int &library, const qulonglong &folderId, HttpResponse &response);
|
void serviceComics(const int &library, const qulonglong &folderId, HttpResponse &response);
|
||||||
|
@ -18,7 +18,7 @@ public:
|
|||||||
LibrariesControllerV2();
|
LibrariesControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LIBRARIESCONTROLLER_H
|
#endif // LIBRARIESCONTROLLER_H
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
PageControllerV2();
|
PageControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PAGECONTROLLER_H
|
#endif // PAGECONTROLLER_H
|
||||||
|
@ -12,7 +12,7 @@ class ReadingComicsControllerV2 : public HttpRequestHandler
|
|||||||
public:
|
public:
|
||||||
ReadingComicsControllerV2();
|
ReadingComicsControllerV2();
|
||||||
|
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceContent(const int &library, HttpResponse &response);
|
void serviceContent(const int &library, HttpResponse &response);
|
||||||
|
@ -12,7 +12,7 @@ class ReadingListContentControllerV2 : public HttpRequestHandler
|
|||||||
public:
|
public:
|
||||||
ReadingListContentControllerV2();
|
ReadingListContentControllerV2();
|
||||||
|
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceContent(const int &library, const qulonglong &readingListId, HttpResponse &response);
|
void serviceContent(const int &library, const qulonglong &readingListId, HttpResponse &response);
|
||||||
|
@ -12,7 +12,7 @@ class ReadingListInfoControllerV2 : public HttpRequestHandler
|
|||||||
public:
|
public:
|
||||||
ReadingListInfoControllerV2();
|
ReadingListInfoControllerV2();
|
||||||
|
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceComics(const int &library, const qulonglong &readingListId, HttpResponse &response);
|
void serviceComics(const int &library, const qulonglong &readingListId, HttpResponse &response);
|
||||||
|
@ -12,7 +12,7 @@ class ReadingListsControllerV2 : public HttpRequestHandler
|
|||||||
public:
|
public:
|
||||||
ReadingListsControllerV2();
|
ReadingListsControllerV2();
|
||||||
|
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceContent(const int library, HttpResponse &response);
|
void serviceContent(const int library, HttpResponse &response);
|
||||||
|
@ -16,7 +16,7 @@ public:
|
|||||||
SyncControllerV2();
|
SyncControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SYNCCONTROLLER_H
|
#endif // SYNCCONTROLLER_H
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
TagContentControllerV2();
|
TagContentControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceContent(const int &library, const qulonglong &tagId, HttpResponse &response);
|
void serviceContent(const int &library, const qulonglong &tagId, HttpResponse &response);
|
||||||
|
@ -12,7 +12,7 @@ class TagInfoControllerV2 : public HttpRequestHandler
|
|||||||
public:
|
public:
|
||||||
TagInfoControllerV2();
|
TagInfoControllerV2();
|
||||||
|
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void serviceComics(const int &library, const qulonglong &tagId, HttpResponse &response);
|
void serviceComics(const int &library, const qulonglong &tagId, HttpResponse &response);
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
TagsControllerV2();
|
TagsControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // TAGSCONTROLLER_H
|
#endif // TAGSCONTROLLER_H
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
UpdateComicControllerV2();
|
UpdateComicControllerV2();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // UPDATECOMICCONTROLLER_H
|
#endif // UPDATECOMICCONTROLLER_H
|
||||||
|
@ -17,7 +17,7 @@ public:
|
|||||||
VersionController();
|
VersionController();
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VERSIONCONTROLLER_H
|
#endif // VERSIONCONTROLLER_H
|
||||||
|
@ -91,7 +91,7 @@ private:
|
|||||||
QSslConfiguration* sslConfiguration;
|
QSslConfiguration* sslConfiguration;
|
||||||
|
|
||||||
/** Executes the threads own event loop */
|
/** Executes the threads own event loop */
|
||||||
void run();
|
void run() override;
|
||||||
|
|
||||||
/** Create SSL or TCP socket */
|
/** Create SSL or TCP socket */
|
||||||
void createSocket();
|
void createSocket();
|
||||||
|
@ -71,7 +71,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
/** Serves new incoming connection requests */
|
/** Serves new incoming connection requests */
|
||||||
void incomingConnection(tSocketDescriptor socketDescriptor);
|
void incomingConnection(tSocketDescriptor socketDescriptor) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ public:
|
|||||||
StaticFileController(QSettings* settings, QObject* parent = nullptr);
|
StaticFileController(QSettings* settings, QObject* parent = nullptr);
|
||||||
|
|
||||||
/** Generates the response */
|
/** Generates the response */
|
||||||
void service(HttpRequest& request, HttpResponse& response);
|
void service(HttpRequest& request, HttpResponse& response) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ class RequestMapper : public HttpRequestHandler
|
|||||||
public:
|
public:
|
||||||
RequestMapper(QObject *parent = nullptr);
|
RequestMapper(QObject *parent = nullptr);
|
||||||
|
|
||||||
void service(HttpRequest &request, HttpResponse &response);
|
void service(HttpRequest &request, HttpResponse &response) override;
|
||||||
void loadSessionV1(HttpRequest &request, HttpResponse &response);
|
void loadSessionV1(HttpRequest &request, HttpResponse &response);
|
||||||
void loadSessionV2(HttpRequest &request, HttpResponse &response);
|
void loadSessionV2(HttpRequest &request, HttpResponse &response);
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ class YACReaderHttpSession : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit YACReaderHttpSession(QObject *parent = nullptr);
|
explicit YACReaderHttpSession(QObject *parent = nullptr);
|
||||||
~YACReaderHttpSession();
|
~YACReaderHttpSession() override;
|
||||||
|
|
||||||
void setComicsOnDevice(const QSet<QString> &set);
|
void setComicsOnDevice(const QSet<QString> &set);
|
||||||
void setComicOnDevice(const QString &hash);
|
void setComicOnDevice(const QString &hash);
|
||||||
|
@ -18,10 +18,10 @@ signals:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
//Drop to import
|
//Drop to import
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
void dragLeaveEvent(QDragLeaveEvent *event);
|
void dragLeaveEvent(QDragLeaveEvent *event) override;
|
||||||
void dragMoveEvent(QDragMoveEvent *event);
|
void dragMoveEvent(QDragMoveEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event);
|
void dropEvent(QDropEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class YACReaderFoldersViewItemDeletegate : public QStyledItemDelegate
|
class YACReaderFoldersViewItemDeletegate : public QStyledItemDelegate
|
||||||
@ -29,7 +29,7 @@ class YACReaderFoldersViewItemDeletegate : public QStyledItemDelegate
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit YACReaderFoldersViewItemDeletegate(QObject *parent = nullptr);
|
explicit YACReaderFoldersViewItemDeletegate(QObject *parent = nullptr);
|
||||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // YACREADER_FOLDERS_VIEW_H
|
#endif // YACREADER_FOLDERS_VIEW_H
|
||||||
|
@ -33,7 +33,7 @@ class YACReaderClientConnectionWorker : public QThread
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
YACReaderClientConnectionWorker(QLocalSocket *clientConnection);
|
YACReaderClientConnectionWorker(QLocalSocket *clientConnection);
|
||||||
~YACReaderClientConnectionWorker();
|
~YACReaderClientConnectionWorker() override;
|
||||||
signals:
|
signals:
|
||||||
void comicUpdated(quint64 libraryId, const ComicDB &comic);
|
void comicUpdated(quint64 libraryId, const ComicDB &comic);
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ class YACReaderMainToolBar : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit YACReaderMainToolBar(QWidget *parent = nullptr);
|
explicit YACReaderMainToolBar(QWidget *parent = nullptr);
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const override;
|
||||||
|
|
||||||
QToolButton *backButton;
|
QToolButton *backButton;
|
||||||
QToolButton *forwardButton;
|
QToolButton *forwardButton;
|
||||||
@ -32,8 +32,8 @@ signals:
|
|||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *) override;
|
||||||
void resizeEvent(QResizeEvent *);
|
void resizeEvent(QResizeEvent *) override;
|
||||||
|
|
||||||
QHBoxLayout *mainLayout;
|
QHBoxLayout *mainLayout;
|
||||||
|
|
||||||
|
@ -13,9 +13,9 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
//Drop to import & internal Drag&Drop for resorting
|
//Drop to import & internal Drag&Drop for resorting
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
void dragMoveEvent(QDragMoveEvent *event);
|
void dragMoveEvent(QDragMoveEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event);
|
void dropEvent(QDropEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class YACReaderReadingListsViewItemDeletegate : public QStyledItemDelegate
|
class YACReaderReadingListsViewItemDeletegate : public QStyledItemDelegate
|
||||||
@ -23,7 +23,7 @@ class YACReaderReadingListsViewItemDeletegate : public QStyledItemDelegate
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit YACReaderReadingListsViewItemDeletegate(QObject *parent = nullptr);
|
explicit YACReaderReadingListsViewItemDeletegate(QObject *parent = nullptr);
|
||||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user