]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/TabWidget.h
Make the Request Details dialog scrollable. https://redmine.stoutner.com/issues...
[PrivacyBrowserPC.git] / src / widgets / TabWidget.h
index 4b06c640f5f1080e795b5567ba8ff58446e04985..b4453336f8e669fb48d29967a3071e311ed40d30 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2022-2024 Soren Stoutner <soren@stoutner.com>.
  *
 /*
  * Copyright 2022-2024 Soren Stoutner <soren@stoutner.com>.
  *
- * This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
+ * This file is part of Privacy Browser PC <https://www.stoutner.com/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
  *
  * 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
@@ -17,8 +17,8 @@
  * along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>.
  */
 
  * along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef TABWIDGET_H
-#define TABWIDGET_H
+#ifndef TAB_WIDGET_H
+#define TAB_WIDGET_H
 
 // Application headers.
 #include "PrivacyWebEngineView.h"
 
 // Application headers.
 #include "PrivacyWebEngineView.h"
@@ -50,6 +50,9 @@ public:
     // The destructor.
     ~TabWidget();
 
     // The destructor.
     ~TabWidget();
 
+    // The public variables.
+    PrivacyWebEngineView *currentPrivacyWebEngineViewPointer;
+
     // The public functions.
     void applyOnTheFlyZoomFactor(const double zoomFactorDouble) const;
     PrivacyWebEngineView* loadBlankInitialWebsite();
     // The public functions.
     void applyOnTheFlyZoomFactor(const double zoomFactorDouble) const;
     PrivacyWebEngineView* loadBlankInitialWebsite();
@@ -74,23 +77,29 @@ public:
 signals:
     // The signals.
     void addCookie(const QNetworkCookie &cookie) const;
 signals:
     // The signals.
     void addCookie(const QNetworkCookie &cookie) const;
+    void blockedRequestsUpdated(const QVector<int> blockedRequests) const;
+    void cookiesChanged(const int numberOfCookies) const;
+    void easyListStatusChanged(const bool isEnabled) const;
+    void easyPrivacyStatusChanged(const bool isEnabled) const;
+    void fanboysAnnoyanceListStatusChanged(const bool isEnabled) const;
     void removeCookie(const QNetworkCookie &cookie) const;
     void clearUrlLineEditFocus() const;
     void fullScreenRequested(const bool toggleOn) const;
     void hideProgressBar() const;
     void linkHovered(const QString &linkUrl) const;
     void showProgressBar(const int &progress) const;
     void removeCookie(const QNetworkCookie &cookie) const;
     void clearUrlLineEditFocus() const;
     void fullScreenRequested(const bool toggleOn) const;
     void hideProgressBar() const;
     void linkHovered(const QString &linkUrl) const;
     void showProgressBar(const int &progress) const;
-    void updateBackAction(const bool &isEnabled) const;
-    void updateCookiesAction(const int numberOfCookies) const;
+    void ultraListStatusChanged(const bool) const;
+    void ultraPrivacyStatusChanged(const bool) const;
+    void updateBackAction(const bool isEnabled) const;
     void updateDefaultZoomFactor(const double newDefaultZoomFactorDouble) const;
     void updateDefaultZoomFactor(const double newDefaultZoomFactorDouble) const;
-    void updateDeveloperToolsAction(const bool &isEnabled) const;
-    void updateDomStorageAction(const bool &isEnabled) const;
+    void updateDeveloperToolsAction(const bool isEnabled) const;
+    void updateDomStorageAction(const bool isEnabled) const;
     void updateDomainSettingsIndicator(const bool status) const;
     void updateFindText(const QString &text, const bool findCaseSensitive) const;
     void updateFindTextResults(const QWebEngineFindTextResult &findTextResult) const;
     void updateDomainSettingsIndicator(const bool status) const;
     void updateFindText(const QString &text, const bool findCaseSensitive) const;
     void updateFindTextResults(const QWebEngineFindTextResult &findTextResult) const;
-    void updateForwardAction(const bool &isEnabled) const;
-    void updateJavaScriptAction(const bool &isEnabled) const;
-    void updateLocalStorageAction(const bool &isEnabled) const;
+    void updateForwardAction(const bool isEnabled) const;
+    void updateJavaScriptAction(const bool isEnabled) const;
+    void updateLocalStorageAction(const bool isEnabled) const;
     void updateSearchEngineActions(const QString &searchEngine, const bool &updateCustomSearchEngineStatus) const;
     void updateUrlLineEdit(const QUrl &newUrl) const;
     void updateUserAgentActions(const QString &userAgent, const bool &updateCustomUserAgentStatus) const;
     void updateSearchEngineActions(const QString &searchEngine, const bool &updateCustomSearchEngineStatus) const;
     void updateUrlLineEdit(const QUrl &newUrl) const;
     void updateUserAgentActions(const QString &userAgent, const bool &updateCustomUserAgentStatus) const;
@@ -121,6 +130,11 @@ public Q_SLOTS:
     void reloadAndBypassCache() const;
     void saveArchive();
     void stop() const;
     void reloadAndBypassCache() const;
     void saveArchive();
     void stop() const;
+    void toggleEasyList() const;
+    void toggleEasyPrivacy() const;
+    void toggleFanboysAnnoyanceList() const;
+    void toggleUltraList() const;
+    void toggleUltraPrivacy() const;
 
 private Q_SLOTS:
     // The private slots.
 
 private Q_SLOTS:
     // The private slots.
@@ -141,7 +155,6 @@ private:
     void updateDownloadDirectory(QString newDownloadDirectory) const;
 
     // The private variables.
     void updateDownloadDirectory(QString newDownloadDirectory) const;
 
     // The private variables.
-    PrivacyWebEngineView *currentPrivacyWebEngineViewPointer;
     QWebEngineCookieStore *currentWebEngineCookieStorePointer;
     QWebEngineHistory *currentWebEngineHistoryPointer;
     QWebEnginePage *currentWebEnginePagePointer;
     QWebEngineCookieStore *currentWebEngineCookieStorePointer;
     QWebEngineHistory *currentWebEngineHistoryPointer;
     QWebEnginePage *currentWebEnginePagePointer;