Files
yacreader/YACReaderLibrary/import_widget.h
luisangelsm 3709b6e737
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
Format includes using clang-format
2026-03-13 18:21:38 +01:00

66 lines
1.4 KiB
C++

#ifndef IMPORT_WIDGET_H
#define IMPORT_WIDGET_H
#include "themable.h"
#include <QElapsedTimer>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QLabel>
#include <QPixmap>
#include <QPropertyAnimation>
#include <QPushButton>
#include <QString>
#include <QToolButton>
#include <QWidget>
class ImportWidget : public QWidget, protected Themable
{
Q_OBJECT
public:
explicit ImportWidget(QWidget *parent = 0);
protected:
void applyTheme(const Theme &theme) override;
signals:
void stop();
public slots:
void newComic(const QString &path, const QString &coverPath);
void newCover(const QPixmap &image);
void clear();
void addCoverTest();
void clearScene();
void setImportLook();
void setUpdateLook();
void setUpgradeLook();
void setXMLScanLook();
void showCovers(bool hide);
private:
QLabel *currentComicLabel;
QLabel *coversLabel;
QLabel *iconLabel;
QLabel *text;
QLabel *textDescription;
QWidget *coversViewContainer;
QGraphicsView *coversView;
QGraphicsScene *coversScene;
QPropertyAnimation *scrollAnimation;
QPushButton *stopButton;
int previousWidth;
bool updatingCovers;
QElapsedTimer *elapsedTimer;
quint64 i;
QToolButton *hideButton;
QLabel *topDecorator;
QLabel *bottomDecorator;
void resizeEvent(QResizeEvent *event) override;
void updateTextColors();
};
#endif // IMPORT_WIDGET_H