mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
43 lines
873 B
C
43 lines
873 B
C
|
#ifndef HOMEPAGEWIDGET_H
|
||
|
#define HOMEPAGEWIDGET_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
#include <QVBoxLayout>
|
||
|
#include "qclickablelabel.h"
|
||
|
|
||
|
namespace Ui {
|
||
|
class homePageWidget;
|
||
|
}
|
||
|
|
||
|
class homePageWidget : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
QString className = this->metaObject()->className();
|
||
|
explicit homePageWidget(QWidget *parent = nullptr);
|
||
|
~homePageWidget();
|
||
|
int sW;
|
||
|
int sH;
|
||
|
int stdIconWidth;
|
||
|
int stdIconHeight;
|
||
|
float stdIconWidthDivider;
|
||
|
float stdIconHeightDivider;
|
||
|
|
||
|
signals:
|
||
|
void openBookSignal(QString bookPath, bool relativePath);
|
||
|
void refreshScreen();
|
||
|
|
||
|
private slots:
|
||
|
void openBook(QString bookPath);
|
||
|
void refreshScreenNative();
|
||
|
|
||
|
private:
|
||
|
Ui::homePageWidget *ui;
|
||
|
QVector<QLabel*> bookTitleArray;
|
||
|
QVector<QVBoxLayout*> verticalLayoutArray;
|
||
|
QVector<QClickableLabel*> bookBtnArray;
|
||
|
};
|
||
|
|
||
|
#endif // HOMEPAGEWIDGET_H
|