X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fdialogs%2FAddFolderDialog.h;fp=src%2Fdialogs%2FAddFolderDialog.h;h=2dc05df283e7507d4d5deffa83b69d9f5db241dd;hp=0000000000000000000000000000000000000000;hb=29dbafaca706ea6a34cd881060ebf680378f39b4;hpb=3331f3d1a5d8924a67bcac2a2c842e15a421fea2 diff --git a/src/dialogs/AddFolderDialog.h b/src/dialogs/AddFolderDialog.h new file mode 100644 index 0000000..2dc05df --- /dev/null +++ b/src/dialogs/AddFolderDialog.h @@ -0,0 +1,63 @@ +/* + * Copyright 2023 Soren Stoutner . + * + * This file is part of Privacy Browser PC . + * + * Privacy Browser PC is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Privacy Browser PC is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Privacy Browser PC. If not, see . + */ + +#ifndef ADDFOLDERDIALOG_H +#define ADDFOLDERDIALOG_H + +// Application headers. +#include "helpers/FolderHelper.h" + +// Qt toolkit headers. +#include +#include +#include +#include + +class AddFolderDialog : public QDialog +{ + // Include the Q_OBJECT macro. + Q_OBJECT + +public: + // The primary constructor. + explicit AddFolderDialog(const QIcon ¤tWebsiteFavoriteIcon, const double parentFolderId = 0); + +signals: + // The signals. + void folderAdded() const; + +private Q_SLOTS: + // The private slots. + void addFolder(); + void browse(); + void updateUi(const QString &newFolderName); + +private: + // The private variables. + FolderHelper *folderHelperPointer; + + // The private widgets. + QPushButton *addButtonPointer; + QRadioButton *currentWebsiteFavoriteIconRadioButtonPointer; + QRadioButton *customFolderIconRadioButtonPointer; + QRadioButton *defaultFolderIconRadioButtonPointer; + QLineEdit *folderNameLineEditPointer; + QTreeWidget *parentFolderTreeWidgetPointer; +}; +#endif