X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fdialogs%2FFilterListsDialog.h;fp=src%2Fdialogs%2FFilterListsDialog.h;h=980af28d48cf2a2b48fc69f88d679ea48f660f26;hb=a44e607fb5398c80c5de2629017865ae749e8fbf;hp=0000000000000000000000000000000000000000;hpb=c5706a6ff3fbc42418e60b79fbe3f5c19396f7d2;p=PrivacyBrowserPC.git diff --git a/src/dialogs/FilterListsDialog.h b/src/dialogs/FilterListsDialog.h new file mode 100644 index 0000000..980af28 --- /dev/null +++ b/src/dialogs/FilterListsDialog.h @@ -0,0 +1,56 @@ +/* + * Copyright 2024 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 FILTERLISTSDIALOG_H +#define FILTERLISTSDIALOG_H + +// Application headers. +#include "structs/FilterListStruct.h" + +// Qt toolkit headers. +#include +#include +#include +#include + +class FilterListsDialog : public QDialog +{ + // Include the Q_OBJECT macro. + Q_OBJECT + +public: + // The primary constructor. + explicit FilterListsDialog(QWidget *parentWidgetPointer); + +private Q_SLOTS: + void populateFilterListTextEdit(int filterListComboBoxIndex) const; + void populateTableWidget(int sublistComboBoxIndex) const; + void sortTable(int column, Qt::SortOrder sortOrder) const; + +private: + // The private variables. + QComboBox *filterListComboBoxPointer; + QTextEdit *filterListTextEditPointer; + QComboBox *sublistComboBoxPointer; + QTableWidget *sublistTableWidgetPointer; + + // The private functions. + void populateFilterListComboBox(const FilterListStruct *filterListStructPointer) const; +}; +#endif