mirror-chatterino2/notebook.h

38 lines
644 B
C
Raw Normal View History

2016-12-29 17:31:07 +01:00
#ifndef NOTEBOOK_H
#define NOTEBOOK_H
#include <QWidget>
#include <QList>
#include "notebookpage.h"
#include "notebooktab.h"
2016-12-30 12:20:26 +01:00
#include "notebookbutton.h"
2016-12-29 17:31:07 +01:00
class Notebook : public QWidget
{
Q_OBJECT
public:
Notebook(QWidget *parent);
2016-12-30 12:20:26 +01:00
NotebookPage* addPage();
enum HighlightType { none, highlighted, newMessage };
2016-12-30 18:00:25 +01:00
void select(NotebookPage* page);
void performLayout();
2016-12-30 12:20:26 +01:00
protected:
void resizeEvent(QResizeEvent *);
2016-12-29 17:31:07 +01:00
private:
2016-12-30 12:20:26 +01:00
QList<NotebookPage*> pages;
NotebookButton addButton;
NotebookButton settingsButton;
NotebookButton userButton;
2016-12-30 18:00:25 +01:00
NotebookPage* selected = nullptr;
2016-12-29 17:31:07 +01:00
};
#endif // NOTEBOOK_H