/*
- * Copyright 2022-2023 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
// 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;
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;
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;
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;
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.
void addCookieToStore(QNetworkCookie cookie, QWebEngineCookieStore *webEngineCookieStorePointer = nullptr) const;
- PrivacyWebEngineView* addTab(const bool removeUrlLineEditFocus = false, const bool backgroundTab = false, const QString urlString = nullptr);
+ PrivacyWebEngineView* addTab(const bool removeUrlLineEditFocus = false, const bool adjacent = false, const bool backgroundTab = false, const QString urlString = nullptr);
void applyApplicationSettings();
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;
void useNativeKdeDownloader(QUrl &downloadUrl, QString &suggestedFileName);
private:
+ // The private functions.
+ void updateDownloadDirectory(QString newDownloadDirectory) const;
+
// The private variables.
- PrivacyWebEngineView *currentPrivacyWebEngineViewPointer;
QWebEngineCookieStore *currentWebEngineCookieStorePointer;
QWebEngineHistory *currentWebEngineHistoryPointer;
QWebEnginePage *currentWebEnginePagePointer;