mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
43 lines
752 B
C++
43 lines
752 B
C++
#ifndef NOTEBOOK_H
|
|
#define NOTEBOOK_H
|
|
|
|
#include <QWidget>
|
|
#include <QList>
|
|
#include "notebookpage.h"
|
|
#include "notebooktab.h"
|
|
#include "notebookbutton.h"
|
|
|
|
class Notebook : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Notebook(QWidget *parent);
|
|
|
|
NotebookPage* addPage();
|
|
|
|
enum HighlightType { none, highlighted, newMessage };
|
|
|
|
void select(NotebookPage* page);
|
|
void performLayout();
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent *);
|
|
|
|
void settingsButtonMouseReleased(QMouseEvent *event);
|
|
|
|
public slots:
|
|
void settingsButtonClicked();
|
|
|
|
private:
|
|
QList<NotebookPage*> pages;
|
|
|
|
NotebookButton addButton;
|
|
NotebookButton settingsButton;
|
|
NotebookButton userButton;
|
|
|
|
NotebookPage* selected = nullptr;
|
|
};
|
|
|
|
#endif // NOTEBOOK_H
|