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 };
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
void layout();
|
2016-12-29 17:31:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NOTEBOOK_H
|