You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
809 B
37 lines
809 B
/* DrewTechs
|
|
* Note Binder
|
|
* @Version 1.0
|
|
*/
|
|
|
|
#ifndef NOTEBOOKLIST_H
|
|
#define NOTEBOOKLIST_H
|
|
|
|
#include <QObject>
|
|
#include <QVector>
|
|
#include <QWidget>
|
|
#include <QTreeWidget>
|
|
#include "notebook.h"
|
|
#include "notebookmanager.h"
|
|
#include "newNotebookDialog.h"
|
|
|
|
class NotebookList : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit NotebookList(QObject *parent = nullptr);
|
|
QVector<Notebook*> nbList;
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
void addNotebookToList(Notebook* notebook);
|
|
QTreeWidgetItem* createSectionIcon(QFileInfo fileInfo);
|
|
QTreeWidgetItem* createSectionGroupIcon(SectionGroup* sectionGroup);
|
|
QTreeWidgetItem* createNotebookIcon(Notebook* notebook);
|
|
|
|
|
|
QIcon SetNotebookIcon(QString notebookColor);
|
|
QIcon SetSectionGroupIcon(QString sectionGroupColor);
|
|
};
|
|
|
|
#endif // NOTEBOOKLIST_H
|
|
|