mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
#ifndef LIBRARYWIDGET_H
|
|
#define LIBRARYWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <toast.h>
|
|
#include <bookinfodialog.h>
|
|
|
|
namespace Ui {
|
|
class libraryWidget;
|
|
}
|
|
|
|
class libraryWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QString className = this->metaObject()->className();
|
|
explicit libraryWidget(QWidget *parent = nullptr);
|
|
~libraryWidget();
|
|
float sH;
|
|
float sW;
|
|
float stdIconHeight;
|
|
float stdIconWidth;
|
|
|
|
private:
|
|
Ui::libraryWidget * ui;
|
|
toast * toastWindow;
|
|
bookInfoDialog * bookInfoDialogWindow;
|
|
|
|
private slots:
|
|
void syncCatalog();
|
|
void setupView();
|
|
void showToast(QString messageToDisplay);
|
|
void closeIndefiniteToast();
|
|
QString getTitle(int bookNumber);
|
|
void openLatestBookInfoDialog(int bookNumber, QString title);
|
|
|
|
void on_previousBtn_clicked();
|
|
void on_nextBtn_clicked();
|
|
void on_book1Btn_clicked();
|
|
void on_book2Btn_clicked();
|
|
void on_book3Btn_clicked();
|
|
void on_book4Btn_clicked();
|
|
void on_book5Btn_clicked();
|
|
void on_book6Btn_clicked();
|
|
void on_book7Btn_clicked();
|
|
void on_book8Btn_clicked();
|
|
void on_book9Btn_clicked();
|
|
void on_book10Btn_clicked();
|
|
void on_book11Btn_clicked();
|
|
void on_book12Btn_clicked();
|
|
void on_book13Btn_clicked();
|
|
void on_book14Btn_clicked();
|
|
void on_book15Btn_clicked();
|
|
void on_book16Btn_clicked();
|
|
};
|
|
|
|
#endif // LIBRARYWIDGET_H
|