added basic tabs

This commit is contained in:
fourtf
2016-12-30 12:20:26 +01:00
parent cfda4798d4
commit 2ce96a05bc
11 changed files with 240 additions and 27 deletions
+14 -2
View File
@@ -5,6 +5,7 @@
#include <QList>
#include "notebookpage.h"
#include "notebooktab.h"
#include "notebookbutton.h"
class Notebook : public QWidget
{
@@ -13,10 +14,21 @@ Q_OBJECT
public:
Notebook(QWidget *parent);
NotebookPage* AddPage();
NotebookPage* addPage();
enum HighlightType { none, highlighted, newMessage };
protected:
void resizeEvent(QResizeEvent *);
private:
QList<std::tuple<NotebookPage*, NotebookTab*>>* pages;
QList<NotebookPage*> pages;
NotebookButton addButton;
NotebookButton settingsButton;
NotebookButton userButton;
void layout();
};
#endif // NOTEBOOK_H