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.
50 lines
1.1 KiB
50 lines
1.1 KiB
#ifndef IMPORTSECTION_H
|
|
#define IMPORTSECTION_H
|
|
|
|
#include <QDialog>
|
|
#include <QFileDialog>
|
|
#include <QDir>
|
|
|
|
namespace Ui {
|
|
class importSection;
|
|
}
|
|
|
|
class importSection : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit importSection(QStringList notebookColorList, QStringList notebookDirList, QStringList list, QWidget *parent = nullptr);
|
|
~importSection();
|
|
|
|
void init();
|
|
|
|
QStringList getDirectoryList();
|
|
QStringList getNotebookColorList();
|
|
QStringList getNotebookDirList();
|
|
QString getNewFile();
|
|
|
|
void setDirectoryList(QStringList dirList);
|
|
void setNotebookColorList(QStringList newNbColorList);
|
|
void setNotebookDirList(QStringList newNbDirList);
|
|
void setNewFile(QString newNewFile);
|
|
|
|
QIcon SetNotebookIcon(QString notebookColor);
|
|
QIcon SetSectionGroupIcon(QString sectionGroupColor);
|
|
|
|
private slots:
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_buttonBox_rejected();
|
|
|
|
void on_selectDirectoryButton_clicked();
|
|
|
|
private:
|
|
QStringList var_directoryList;
|
|
QStringList nbColorList;
|
|
QStringList nbDirList;
|
|
QString newFile;
|
|
Ui::importSection *ui;
|
|
};
|
|
|
|
#endif // IMPORTSECTION_H
|
|
|