mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Remove software and opengl flow implementations
This simplifies the code base A LOT.
This commit is contained in:
@ -3,40 +3,48 @@
|
||||
|
||||
#include <QWidget>
|
||||
#include <QSettings>
|
||||
#include "yacreader_global.h"
|
||||
#include "yacreader_global_gui.h"
|
||||
|
||||
#include "yacreader_page_flow_rhi.h"
|
||||
|
||||
using namespace YACReader;
|
||||
|
||||
class QSettings;
|
||||
class GoToFlowToolBar;
|
||||
class QVBoxLayout;
|
||||
class QKeyEvent;
|
||||
|
||||
class GoToFlowWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
protected:
|
||||
QVBoxLayout *mainLayout;
|
||||
GoToFlowToolBar *toolBar;
|
||||
|
||||
public:
|
||||
GoToFlowWidget(QWidget *paret = nullptr);
|
||||
~GoToFlowWidget() override = 0;
|
||||
GoToFlowWidget(QWidget *parent = nullptr, FlowType flowType = CoverFlowLike);
|
||||
~GoToFlowWidget() override;
|
||||
|
||||
public slots:
|
||||
virtual void reset() = 0;
|
||||
virtual void centerSlide(int slide) = 0;
|
||||
virtual void setPageNumber(int page);
|
||||
virtual void setFlowType(YACReader::FlowType flowType) = 0;
|
||||
virtual void setNumSlides(unsigned int slides) = 0;
|
||||
virtual void setImageReady(int index, const QByteArray &image) = 0;
|
||||
virtual void updateSize();
|
||||
virtual void updateConfig(QSettings *settings);
|
||||
virtual void setFlowRightToLeft(bool b) = 0;
|
||||
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;
|
||||
// bool eventFilter(QObject *, QEvent *);
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
|
||||
private:
|
||||
QVBoxLayout *mainLayout;
|
||||
GoToFlowToolBar *toolBar;
|
||||
YACReaderPageFlow3D *flow;
|
||||
QSize imageSize;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user