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
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
#ifndef __GOTO_FLOW_WIDGET_H
|
|
#define __GOTO_FLOW_WIDGET_H
|
|
|
|
#include "themable.h"
|
|
#include "yacreader_global_gui.h"
|
|
#include "yacreader_page_flow_rhi.h"
|
|
|
|
#include <QSettings>
|
|
#include <QWidget>
|
|
|
|
using namespace YACReader;
|
|
|
|
class QSettings;
|
|
class GoToFlowToolBar;
|
|
class QVBoxLayout;
|
|
class QKeyEvent;
|
|
|
|
class GoToFlowWidget : public QWidget, protected Themable
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GoToFlowWidget(QWidget *parent = nullptr, FlowType flowType = CoverFlowLike);
|
|
~GoToFlowWidget() override;
|
|
|
|
public slots:
|
|
void reset();
|
|
void centerSlide(int slide);
|
|
void setPageNumber(int page);
|
|
void setFlowType(FlowType flowType);
|
|
void setNumSlides(unsigned int slides);
|
|
void setImageReady(int index, const QByteArray &image);
|
|
void updateSize();
|
|
void updateConfig(QSettings *settings);
|
|
void setFlowRightToLeft(bool b);
|
|
|
|
signals:
|
|
void goToPage(unsigned int);
|
|
|
|
protected:
|
|
void keyPressEvent(QKeyEvent *event) override;
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
void applyTheme(const Theme &theme) override;
|
|
|
|
private:
|
|
QVBoxLayout *mainLayout;
|
|
GoToFlowToolBar *toolBar;
|
|
YACReaderPageFlow3D *flow;
|
|
QSize imageSize;
|
|
};
|
|
|
|
#endif
|