diff --git a/NoteBinder.pro b/NoteBinder.pro new file mode 100644 index 0000000..4de1e91 --- /dev/null +++ b/NoteBinder.pro @@ -0,0 +1,133 @@ +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +CONFIG += c++11 + +# You can make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + addApplicationLauncher.cpp \ + applicationlaunchers.cpp \ + copyItemDialog.cpp \ + importSection.cpp \ + itemProperties.cpp \ + main.cpp \ + mainwindow.cpp \ + newNotebookDialog.cpp \ + newSectionDialog.cpp \ + newSectionGroupDialog.cpp \ + notebook.cpp \ + notebooklist.cpp \ + notebookmanager.cpp \ + sectiongroup.cpp \ + settings.cpp \ + unfiledNotes.cpp + +HEADERS += \ + addApplicationLauncher.h \ + applicationlaunchers.h \ + copyItemDialog.h \ + importSection.h \ + itemProperties.h \ + mainwindow.h \ + newNotebookDialog.h \ + newSectionDialog.h \ + newSectionGroupDialog.h \ + notebook.h \ + notebooklist.h \ + notebookmanager.h \ + sectiongroup.h \ + settings.h \ + unfiledNotes.h + +FORMS += \ + addApplicationLauncher.ui \ + copyItemDialog.ui \ + importSection.ui \ + itemProperties.ui \ + mainwindow.ui \ + newNotebookDialog.ui \ + newSectionDialog.ui \ + newSectionGroupDialog.ui \ + settings.ui \ + unfiledNotes.ui + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target + +DISTFILES += \ + HelpText/Page01 \ + HelpText/Page02 \ + HelpText/Page03 \ + HelpText/Page04 \ + HelpText/Page05 \ + HelpText/Page06 \ + HelpText/Page07 \ + HelpText/Page08 \ + HelpText/Page09 \ + HelpText/Page10 \ + HelpText/Page11 \ + HelpText/Page12 \ + HelpText/Page13 \ + HelpText/Page14 \ + HelpText/Page15 \ + HelpText/Page16 \ + Icons/CopyItemIcon.png \ + Icons/DeleteItemIcon.png \ + Icons/ExportSectionIcon.png \ + Icons/HelpIcon.png \ + Icons/ImportSectionIcon.png \ + Icons/MoveDownIcon.png \ + Icons/MoveItemIcon.png \ + Icons/MoveUpIcon.png \ + Icons/NewNotebookIcon.png \ + Icons/NewSectionGroupIcon.png \ + Icons/NewSectionIcon.png \ + Icons/NotebookIcon_Apple.png \ + Icons/NotebookIcon_Black.png \ + Icons/NotebookIcon_Blue.png \ + Icons/NotebookIcon_BlueMist.png \ + Icons/NotebookIcon_Cyan.png \ + Icons/NotebookIcon_Green.png \ + Icons/NotebookIcon_LemonLime.png \ + Icons/NotebookIcon_Magenta.png \ + Icons/NotebookIcon_Orange.png \ + Icons/NotebookIcon_Purple.png \ + Icons/NotebookIcon_PurpleMist.png \ + Icons/NotebookIcon_Red.png \ + Icons/NotebookIcon_RedChalk.png \ + Icons/NotebookIcon_Silver.png \ + Icons/NotebookIcon_Tan.png \ + Icons/NotebookIcon_Teal.png \ + Icons/NotebookIcon_White.png \ + Icons/NotebookIcon_Yellow.png \ + Icons/OpenNotebookIcon.png \ + Icons/OpenSectionGroupIcon.png \ + Icons/OpenSectionIcon.png \ + Icons/RefreshNotebookListIcon.png \ + Icons/SectionGroupIcon_Apple.png \ + Icons/SectionGroupIcon_Black.png \ + Icons/SectionGroupIcon_Blue.png \ + Icons/SectionGroupIcon_BlueMist.png \ + Icons/SectionGroupIcon_Cyan.png \ + Icons/SectionGroupIcon_Green.png \ + Icons/SectionGroupIcon_LemonLime.png \ + Icons/SectionGroupIcon_Magenta.png \ + Icons/SectionGroupIcon_Orange.png \ + Icons/SectionGroupIcon_Purple.png \ + Icons/SectionGroupIcon_PurpleMist.png \ + Icons/SectionGroupIcon_Red.png \ + Icons/SectionGroupIcon_RedChalk.png \ + Icons/SectionGroupIcon_Silver.png \ + Icons/SectionGroupIcon_Tan.png \ + Icons/SectionGroupIcon_Teal.png \ + Icons/SectionGroupIcon_White.png \ + Icons/SectionGroupIcon_Yellow.png \ + Icons/SectionIcon.png \ + Icons/UnfiledNotesIcon.png \ + NoteBinderLogo.png diff --git a/newSectionGroupDialog.h b/newSectionGroupDialog.h new file mode 100644 index 0000000..07f12ee --- /dev/null +++ b/newSectionGroupDialog.h @@ -0,0 +1,71 @@ +/* DrewTechs + * Note Binder + * @Version 1.0 + */ + +#ifndef NEWSECTIONGROUPDIALOG_H +#define NEWSECTIONGROUPDIALOG_H + +#include +#include +#include +#include +#include +#include +#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 diff --git a/newSectionGroupDialog.ui b/newSectionGroupDialog.ui new file mode 100644 index 0000000..7a8aca0 --- /dev/null +++ b/newSectionGroupDialog.ui @@ -0,0 +1,223 @@ + + + newSectionGroupDialog + + + + 0 + 0 + 551 + 232 + + + + Create New Section Group + + + + + + + 12 + + + + Select Notebook or Section Group: + + + + + + + + 12 + + + + + 24 + 24 + + + + + + + + + 12 + + + + Section Group Name: + + + + + + + + + + 12 + + + + + + + + + + + + 12 + + + + + None + + + + + Red + + + + + Orange + + + + + Yellow + + + + + Green + + + + + Cyan + + + + + Blue + + + + + Purple + + + + + Tan + + + + + Magenta + + + + + Teal + + + + + Red Chalk + + + + + Lemon Lime + + + + + Apple + + + + + Blue Mist + + + + + Purple Mist + + + + + Black + + + + + Silver + + + + + + + + + + + 12 + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + newSectionGroupDialog + accept() + + + 17 + 222 + + + 157 + 192 + + + + + buttonBox + rejected() + newSectionGroupDialog + reject() + + + 85 + 222 + + + 286 + 192 + + + + +