/*
* 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
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;
void updateFindTextResults(const QWebEngineFindTextResult &findTextResult) const;
void updateJavaScriptAction(const bool &isEnabled);
void updateLocalStorageAction(const bool &isEnabled);
+ void updateRequestsAction(const int blockedRequests) 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 *bookmarkedActionPointer;
+ QList<QPair<QMenu *, QAction *> *> bookmarkFolderFinalActionList;
QList<QPair<QMenu *, QAction *> *> bookmarksMenuActionList;
QMenu *bookmarksMenuPointer;
QList<QPair<QMenu *, QMenu *> *> bookmarksMenuSubmenuList;
double defaultZoomFactorDouble;
QAction *developerToolsActionPointer;
QAction *domStorageActionPointer;
- QList<QPair<QMenu *, QAction *> *> finalBookmarkFolderMenuActionList;
QAction *findCaseSensitiveActionPointer;
QAction *findNextActionPointer;
QAction *findPreviousActionPointer;
QPalette positiveBackgroundPalette;
QProgressBar *progressBarPointer;
QAction *refreshActionPointer;
+ QAction *requestsActionPointer;
QAction *searchEngineMenuActionPointer;
QAction *searchEngineMojeekActionPointer;
QAction *searchEngineMonoclesActionPointer;
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();