The Note Binder is a Note Organizing Application with a built-in Application Launcher to compliment Note Taking applications.
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.
 
 
 

69 lines
2.1 KiB

/* DrewTechs
* Note Binder
* @Version 1.0
*/
#ifndef NEWSECTIONDIALOG_H
#define NEWSECTIONDIALOG_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 "settings.h"
namespace Ui { class newSectionDialog; }
class newSectionDialog : public QDialog
{
Q_OBJECT
public:
//newSectionDialog(QWidget *parent = nullptr);
newSectionDialog(QStringList notebookColorList, QStringList notebookDirList, QStringList list, QList<ApplicationLaunchers*> applicationLaunchers, QWidget *parent = nullptr);
~newSectionDialog();
QStringList getDirectories() const;
QStringList getNotebookDirList() const;
QStringList getNotebookColorList() const;
QStringList getExtensionList() const;
QString getFullFileName() const;
void setDirectories(QStringList dirList);
void setNotebookDirList(QStringList nbDirList);
void setNotebookColorList(QStringList nbColorList);
void setExtensionList(QStringList newExtensionList);
void setFullFileName(QString newFullFileName);
void setApplicationLauncher(QList<ApplicationLaunchers*> newApplicationLaunchers);
QIcon SetNotebookIcon(QString notebookColor);
QIcon SetSectionGroupIcon(QString sectionGroupColor);
private slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void addItemsToDirectory();
void applicationLauncher();
private:
Ui::newSectionDialog *ui;
QStringList var_directoryList; // Directories displayed on the ComboBox of Directory List
QStringList notebookdirList; // Actual Filepaths of each Notebook or Section Group.
QStringList notebookcolorlist; // Icon Colors of Notebook or Section Group
QStringList extensionList; // List of File Extensions
QString fullFileName; // Full Filename including the extension.
QList<ApplicationLaunchers*> applicationLaunchers; // Application Launchers
void init();
};
#endif // NEWSECTIONDIALOG_H