#ifndef ITEMPROPERTIES_H #define ITEMPROPERTIES_H #include #include "notebook.h" #include "notebooklist.h" #include "notebookmanager.h" namespace Ui { class itemProperties; } class itemProperties : public QDialog { Q_OBJECT public: itemProperties(NotebookList* nbList, QString notebookItemLocation, QWidget *parent = nullptr); ~itemProperties(); void init(); void setIconsToItemColorComboBox_Notebook(); void setIconsToItemColorComboBox_SectionGroup(); QIcon SetNotebookIcon(QString notebookColor); QIcon SetSectionGroupIcon(QString sectionGroupColor); void init_searchDirectoryRecursive(SectionGroup* sectionGroup); void accept_notebookSearchDirectoryRecursive(SectionGroup* sectionGroup, QFileInfo notebookFileInfo); void accept_sectionGroupSearchDirectoryRecursive(SectionGroup* sectionGroup, QFileInfo notebookFileInfo); NotebookList* getNotebookList(); QString getNotebookItemLocation(); void setNotebookList(NotebookList* newNotebookList); void setNotebookItemLocation(QString newNotebookItemLocation); private slots: void on_buttonBox_accepted(); void on_buttonBox_rejected(); private: Ui::itemProperties *ui; NotebookList* notebookList; QString notebookItemLocation; }; #endif // ITEMPROPERTIES_H