X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwindows%2FBrowserWindow.h;h=052a311d7eb4e984644a52c5aa61133559debfda;hb=refs%2Fheads%2Fmaster;hp=29c8d60d86b97cf584f9d72ccf107cbeed8764ba;hpb=f7522adfac888208a7006eb7e67a7173e995ec48;p=PrivacyBrowserPC.git diff --git a/src/windows/BrowserWindow.h b/src/windows/BrowserWindow.h index 29c8d60..7564567 100644 --- a/src/windows/BrowserWindow.h +++ b/src/windows/BrowserWindow.h @@ -1,7 +1,7 @@ /* * 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 @@ -17,8 +17,8 @@ * along with Privacy Browser PC. If not, see . */ -#ifndef BROWSERWINDOW_H -#define BROWSERWINDOW_H +#ifndef BROWSER_WINDOW_H +#define BROWSER_WINDOW_H // Application headers. #include "widgets/TabWidget.h" @@ -73,14 +73,18 @@ private Q_SLOTS: void incrementZoom(); void loadUrlFromLineEdit(const QString &url) const; void newWindow() const; + void openWithChromium() const; + void openWithFirefox() const; void populateBookmarksInAllWindows() const; void refresh() const; void reloadAndBypassCache() const; void showBookmarkContextMenu(const QPoint &point); void showCookiesDialog(); void showDomainSettingsDialog(); + void showFilterListsDialog(); void showFindTextActions() const; void showProgressBar(const int &progress) const; + void showRequestsDialog(); void showSettingsDialog(); void toggleBookmark(); void toggleDeveloperTools() const; @@ -100,18 +104,21 @@ private Q_SLOTS: void updateFindTextResults(const QWebEngineFindTextResult &findTextResult) const; void updateJavaScriptAction(const bool &isEnabled); void updateLocalStorageAction(const bool &isEnabled); + void updateRequestsAction(const QVector blockedRequestsVector) const; void updateSearchEngineActions(const QString &searchEngine, const bool &updateCustomSearchEngineStatus); void updateUserAgentActions(const QString &userAgent, const bool &updateCustomUserAgentStatus); - void updateZoomActions(const double zoomFactorDouble); void updateUrlLineEdit(const QUrl &newUrl); void updateViewBookmarksToolBarCheckbox(const bool visible); void updateWindowTitle(const QString &title); + void updateZoomActions(const double zoomFactorDouble); void zoomDefault(); private: // The private variables. KActionCollection *actionCollectionPointer; + QAction *blockedRequestsActionPointer; QAction *bookmarkedActionPointer; + QList *> bookmarkFolderFinalActionList; QList *> bookmarksMenuActionList; QMenu *bookmarksMenuPointer; QList *> bookmarksMenuSubmenuList; @@ -130,7 +137,9 @@ private: double defaultZoomFactorDouble; QAction *developerToolsActionPointer; QAction *domStorageActionPointer; - QList *> finalBookmarkFolderMenuActionList; + QAction *easyPrivacyActionPointer; + QAction *easyListActionPointer; + QAction *fanboysAnnoyanceListPointer; QAction *findCaseSensitiveActionPointer; QAction *findNextActionPointer; QAction *findPreviousActionPointer; @@ -150,6 +159,7 @@ private: QPalette positiveBackgroundPalette; QProgressBar *progressBarPointer; QAction *refreshActionPointer; + QAction *requestsActionPointer; QAction *searchEngineMenuActionPointer; QAction *searchEngineMojeekActionPointer; QAction *searchEngineMonoclesActionPointer; @@ -159,6 +169,8 @@ private: QAction *searchEngineYahooActionPointer; QAction *searchEngineCustomActionPointer; QAction *stopActionPointer; + QAction *ultraPrivacyActionPointer; + QAction *ultraListActionPointer; QAction *userAgentMenuActionPointer; QAction *userAgentPrivacyBrowserActionPointer; QAction *userAgentWebEngineDefaultActionPointer; @@ -182,7 +194,7 @@ private: QPushButton *zoomPlusButtonPointer; // The private functions. - void addFinalBookmarkFolderMenuActions(QMenu *menuPointer, double folderId); + void addBookmarkFolderFinalActions(QMenu *menuPointer, const double folderId, const bool addToList); int calculateSettingsInt(const bool settingCurrentlyEnabled, const bool settingEnabledByDefault) const; void populateBookmarksMenuSubfolders(const double folderId, QMenu *menuPointer); void populateBookmarksToolBar();