#ifndef NOTEBOOK_H #define NOTEBOOK_H #include #include #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 pages; NotebookButton addButton; NotebookButton settingsButton; NotebookButton userButton; NotebookPage* selected = nullptr; }; #endif // NOTEBOOK_H