X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fwidgets%2FTabWidget.h;h=4b06c640f5f1080e795b5567ba8ff58446e04985;hp=06676d642e14cbe91b871323bf3dc25f59c13635;hb=refs%2Fheads%2Fmaster;hpb=77398618a48027f56c9bbd95e8a02245d79f6884 diff --git a/src/widgets/TabWidget.h b/src/widgets/TabWidget.h index 06676d6..e0cf0b6 100644 --- a/src/widgets/TabWidget.h +++ b/src/widgets/TabWidget.h @@ -1,7 +1,7 @@ /* - * Copyright 2022-2023 Soren Stoutner . + * Copyright 2022-2024 Soren Stoutner . * - * This file is part of Privacy Browser PC . + * 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 @@ -50,9 +50,11 @@ public: // The destructor. ~TabWidget(); + // The public variables. + PrivacyWebEngineView *currentPrivacyWebEngineViewPointer; + // The public functions. - void applyOnTheFlyZoomFactor(const double &zoomFactor) const; - void applySpellCheckLanguages() const; + void applyOnTheFlyZoomFactor(const double zoomFactorDouble) const; PrivacyWebEngineView* loadBlankInitialWebsite(); void loadInitialWebsite(); void findPrevious(const QString &text) const; @@ -60,6 +62,7 @@ public: QIcon getCurrentTabFavoritIcon() const; QString getCurrentTabTitle() const; QString getCurrentTabUrl() const; + QString getCurrentUserAgent() const; QString& getDomainSettingsName() const; void setTabBarVisible(const bool visible) const; void toggleDeveloperTools(const bool enabled) const; @@ -74,6 +77,8 @@ public: signals: // The signals. void addCookie(const QNetworkCookie &cookie) const; + void blockedRequestsUpdated(const int blockedRequests) const; + void cookiesChanged(const int numberOfCookies) const; void removeCookie(const QNetworkCookie &cookie) const; void clearUrlLineEditFocus() const; void fullScreenRequested(const bool toggleOn) const; @@ -81,8 +86,7 @@ signals: 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 updateDefaultZoomFactor(const double newDefaultZoomFactor) const; + void updateDefaultZoomFactor(const double newDefaultZoomFactorDouble) const; void updateDeveloperToolsAction(const bool &isEnabled) const; void updateDomStorageAction(const bool &isEnabled) const; void updateDomainSettingsIndicator(const bool status) const; @@ -95,7 +99,7 @@ signals: void updateUrlLineEdit(const QUrl &newUrl) const; void updateUserAgentActions(const QString &userAgent, const bool &updateCustomUserAgentStatus) const; void updateWindowTitle(const QString &title) const; - void updateZoomActions(const double &zoomFactor) const; + void updateZoomActions(const double zoomFactorDouble) const; public Q_SLOTS: // The public slots. @@ -105,6 +109,7 @@ public Q_SLOTS: void applyDomainSettingsAndReload(); void applyOnTheFlySearchEngine(QAction *searchEngineActionPointer); void applyOnTheFlyUserAgent(QAction *userAgentActionPointer) const; + void applySpellCheckLanguages() const; void back() const; void deleteAllCookies() const; void deleteCookieFromStore(const QNetworkCookie &cookie) const; @@ -140,7 +145,6 @@ private: void updateDownloadDirectory(QString newDownloadDirectory) const; // The private variables. - PrivacyWebEngineView *currentPrivacyWebEngineViewPointer; QWebEngineCookieStore *currentWebEngineCookieStorePointer; QWebEngineHistory *currentWebEngineHistoryPointer; QWebEnginePage *currentWebEnginePagePointer;