]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/windows/BrowserWindow.h
Implement loading of new tabs from the context menu.
[PrivacyBrowserPC.git] / src / windows / BrowserWindow.h
index 02978d45add29c8cee51e4bc49cec670ee387e3b..f880cc8f4903b2b63beea736f7614dc4fb3e4fb4 100644 (file)
 #define BROWSERWINDOW_H
 
 // Application headers.
-#include "views/BrowserView.h"
+#include "widgets/TabWidget.h"
 
 // KDE Frameworks headers.
 #include <KConfigDialog>
+#include <KToggleFullScreenAction>
 #include <KXmlGuiWindow>
 
 // Qt toolkit headers.
+#include <QComboBox>
 #include <QLabel>
 #include <QProgressBar>
 
@@ -43,39 +45,64 @@ public:
     // The public functions.
     QSize sizeHint() const override;
 
+    // The public variables.
+    TabWidget *tabWidgetPointer;
+
 private Q_SLOTS:
     // The private slots.
+    void addOrEditDomainSettings() const;
     void back() const;
+    void clearUrlLineEditFocus() const;
+    void escape() const;
     void fileNew() const;
     void forward() const;
+    void fullScreenRequested(const bool toggleOn);
     void getZoomFactorFromUser();
     void home() const;
     void loadUrlFromLineEdit(const QString &url) const;
-    void openDomainSettings() const;
     void refresh() const;
-    void settingsConfigure();
+    void showCookiesDialog();
+    void showDownloadLocationBrowseDialog() const;
+    void showDomainSettingsDialog() const;
     void showProgressBar(const int &progress) const;
+    void showSettingsDialog();
+    void toggleDomStorage() const;
     void toggleJavaScript() const;
-    void updateDomainSettingsIndicator(const bool &status) const;
-    void updateJavaScriptAction(const bool &isEnabled) const;
-    void updateSearchEngineActions(const QString &searchEngine) const;
-    void updateUserAgentActions(const QString &userAgent) const;
+    void toggleLocalStorage() const;
+    void toggleFullScreen();
+    void updateCookiesAction(const int numberOfCookies) const;
+    void updateDomStorageAction(const bool &isEnabled) const;
+    void updateDomainSettingsIndicator(const bool status);
+    void updateJavaScriptAction(const bool &isEnabled);
+    void updateLocalStorageAction(const bool &isEnabled);
+    void updateSearchEngineActions(const QString &searchEngine, const bool &updateCustomSearchEngineStatus);
+    void updateUserAgentActions(const QString &userAgent, const bool &updateCustomUserAgentStatus);
     void updateZoomFactorAction(const double &zoomFactor);
     void updateSearchEngineLabel(const QString &searchEngineString) const;
-    void updateUrlLineEdit(const QString &newUrl) const;
+    void updateUrlLineEdit(const QUrl &newUrl);
     void updateUserAgentLabel(const QString &userAgentDatabaseName) const;
 
 private:
     // The private variables.
-    BrowserView *browserViewPointer;
     KConfigDialog *configDialogPointer;
-    QAction *domainSettingsActionPointer;
-    QPalette domainSettingsPalette;
+    QAction *cookiesActionPointer;
+    QUrl currentUrl;
     double currentZoomFactor;
+    bool customSearchEngineEnabled;
+    bool customUserAgentEnabled;
+    QAction *domStorageActionPointer;
+    QPalette domainSettingsPalette;
+    QComboBox *downloadLocationComboBoxPointer;
+    KToggleFullScreenAction *fullScreenActionPointer;
     QAction *javaScriptActionPointer;
+    bool javaScriptEnabled;
+    QAction *localStorageActionPointer;
+    bool localStorageEnabled;
+    KToolBar *navigationToolBarPointer;
     QPalette noDomainSettingsPalette;
     QProgressBar *progressBarPointer;
     QLabel *searchEngineLabelPointer;
+    QAction *searchEngineMenuActionPointer;
     QAction *searchEngineMojeekActionPointer;
     QAction *searchEngineMonoclesActionPointer;
     QAction *searchEngineMetagerActionPointer;
@@ -84,7 +111,9 @@ private:
     QAction *searchEngineYahooActionPointer;
     QAction *searchEngineCustomActionPointer;
     QLabel *userAgentLabelPointer;
+    QAction *userAgentMenuActionPointer;
     QAction *userAgentPrivacyBrowserActionPointer;
+    QAction *userAgentWebEngineDefaultActionPointer;
     QAction *userAgentFirefoxLinuxActionPointer;
     QAction *userAgentChromiumLinuxActionPointer;
     QAction *userAgentFirefoxWindowsActionPointer;
@@ -93,6 +122,7 @@ private:
     QAction *userAgentSafariMacosActionPointer;
     QAction *userAgentCustomActionPointer;
     KLineEdit *urlLineEditPointer;
+    KToolBar *urlToolBarPointer;
     QAction *zoomFactorActionPointer;
 };
 #endif