mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
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
58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
#ifndef SELECT_VOLUME_H
|
|
#define SELECT_VOLUME_H
|
|
|
|
#include "scraper_results_paginator.h"
|
|
#include "selected_volume_info.h"
|
|
#include "themable.h"
|
|
#include "volume_search_query.h"
|
|
|
|
class QLabel;
|
|
class VolumesModel;
|
|
class QModelIndex;
|
|
class QToolButton;
|
|
class QSortFilterProxyModel;
|
|
|
|
class ScraperScrollLabel;
|
|
class ScraperTableView;
|
|
class ScraperLineEdit;
|
|
|
|
class SelectVolume : public QWidget, protected Themable
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SelectVolume(QWidget *parent = nullptr);
|
|
void load(const QString &json, const VolumeSearchQuery &searchQuery);
|
|
void clearFilter();
|
|
virtual ~SelectVolume();
|
|
|
|
public slots:
|
|
void loadVolumeInfo(const QModelIndex &mi);
|
|
void setCover(const QByteArray &);
|
|
void setDescription(const QString &jsonDetail);
|
|
SelectedVolumeInfo getSelectedVolumeInfo();
|
|
|
|
signals:
|
|
void loadPage(VolumeSearchQuery);
|
|
|
|
private slots:
|
|
void loadNextPage();
|
|
void loadPreviousPage();
|
|
|
|
private:
|
|
QLabel *label;
|
|
QLabel *cover;
|
|
ScraperScrollLabel *detailLabel;
|
|
ScraperTableView *tableVolumes;
|
|
VolumesModel *model;
|
|
QSortFilterProxyModel *proxyModel;
|
|
ScraperLineEdit *filterEdit;
|
|
QString selectedVolumeDescription;
|
|
VolumeSearchQuery currentSearchQuery;
|
|
ScraperResultsPaginator *paginator;
|
|
|
|
protected:
|
|
void applyTheme(const Theme &theme) override;
|
|
};
|
|
|
|
#endif // SELECT_VOLUME_H
|