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
63 lines
1.4 KiB
C++
63 lines
1.4 KiB
C++
#ifndef YACREADER_SIDEBAR_H
|
|
#define YACREADER_SIDEBAR_H
|
|
|
|
#include "themable.h"
|
|
|
|
#include <QCloseEvent>
|
|
#include <QColor>
|
|
#include <QList>
|
|
#include <QPaintEvent>
|
|
#include <QSettings>
|
|
#include <QSplitter>
|
|
#include <QWidget>
|
|
|
|
class YACReaderFoldersView;
|
|
class YACReaderLibraryListWidget;
|
|
class YACReaderSearchLineEdit;
|
|
class YACReaderTitledToolBar;
|
|
class YACReaderTitledToolBar;
|
|
class YACReaderReadingListsView;
|
|
|
|
class YACReaderSideBarSeparator : public QWidget
|
|
{
|
|
public:
|
|
explicit YACReaderSideBarSeparator(QWidget *parent = 0);
|
|
void setColor(const QColor &color);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event);
|
|
|
|
private:
|
|
QColor separatorColor;
|
|
};
|
|
|
|
class YACReaderSideBar : public QWidget, protected Themable
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit YACReaderSideBar(QWidget *parent = 0);
|
|
QSize sizeHint() const;
|
|
|
|
YACReaderFoldersView *foldersView;
|
|
YACReaderReadingListsView *readingListsView;
|
|
YACReaderLibraryListWidget *selectedLibrary;
|
|
YACReaderTitledToolBar *librariesTitle;
|
|
YACReaderTitledToolBar *foldersTitle;
|
|
YACReaderTitledToolBar *readingListsTitle;
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *);
|
|
void closeEvent(QCloseEvent *event);
|
|
void applyTheme(const Theme &theme) override;
|
|
|
|
QSettings *settings;
|
|
QSplitter *splitter;
|
|
QList<YACReaderSideBarSeparator *> separators;
|
|
};
|
|
|
|
#endif // YACREADER_SIDEBAR_H
|