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.
72 lines
2.1 KiB
72 lines
2.1 KiB
3 years ago
|
/* DrewTechs
|
||
|
* Note Binder
|
||
|
* @Version 1.0
|
||
|
*/
|
||
|
|
||
|
#ifndef NEWSECTIONGROUPDIALOG_H
|
||
|
#define NEWSECTIONGROUPDIALOG_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include <QObject>
|
||
|
#include <QFileInfo>
|
||
|
#include <QDir>
|
||
|
#include <QTreeWidgetItem>
|
||
|
#include <QPushButton>
|
||
|
#include "mainwindow.h"
|
||
|
#include "notebook.h"
|
||
|
#include "sectiongroup.h"
|
||
|
#include "notebooklist.h"
|
||
|
#include "notebookmanager.h"
|
||
|
#include "applicationlaunchers.h"
|
||
|
|
||
|
namespace Ui { class newSectionGroupDialog; }
|
||
|
|
||
|
class newSectionGroupDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
//newSectionDialog(QWidget *parent = nullptr);
|
||
|
newSectionGroupDialog(QStringList notebookColorList, QStringList notebookDirList, QStringList list, QWidget *parent = nullptr);
|
||
|
~newSectionGroupDialog();
|
||
|
|
||
|
QStringList getDirectories() const;
|
||
|
QStringList getNotebookDirList() const;
|
||
|
QStringList getNotebookColorList() const;
|
||
|
QString getSgName() const;
|
||
|
QString getSgDirectory() const;
|
||
|
QString getSgFileName() const;
|
||
|
QString getSgColor() const;
|
||
|
|
||
|
void setDirectories(QStringList dirList);
|
||
|
void setNotebookDirList(QStringList nbDirList);
|
||
|
void setNotebookColorList(QStringList nbColorList);
|
||
|
void setSgName(QString newSgName);
|
||
|
void setSgDirectory(QString newSgDirectory);
|
||
|
void setSgFileName(QString newSgFileName);
|
||
|
void setSgColor(QString newSgColor);
|
||
|
|
||
|
QIcon SetNotebookIcon(QString notebookColor);
|
||
|
QIcon SetSectionGroupIcon(QString sectionGroupColor);
|
||
|
private slots:
|
||
|
void on_buttonBox_accepted();
|
||
|
void on_buttonBox_rejected();
|
||
|
void addItemsToDirectory();
|
||
|
void directoryCreator();
|
||
|
|
||
|
private:
|
||
|
Ui::newSectionGroupDialog *ui;
|
||
|
|
||
|
QStringList var_directoryList; // Directories displayed on the ComboBox of Directory List
|
||
|
QStringList notebookdirList; // Actual Filepaths of each Notebook or Section Group.
|
||
|
QStringList notebookcolorlist; // Color of Notebook or Section
|
||
|
QString sgName; // Section Group Name
|
||
|
QString sgDirectory; // Section Group Directory
|
||
|
QString sgFileName; // Section Group FileName (.sectgr)
|
||
|
QString sgColor; // Section Group Color
|
||
|
|
||
|
void init();
|
||
|
};
|
||
|
|
||
|
#endif // NEWSECTIONDIALOG_H
|