]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/windows/BrowserWindow.h
Set the default window size.
[PrivacyBrowserPC.git] / src / windows / BrowserWindow.h
index 7b64a966cb53fe81ac90608d63e6e499f448615e..4099d8da32ab6dc81df25821d6fefa583bc996b1 100644 (file)
@@ -39,22 +39,39 @@ public:
     // The default constructor.
     BrowserWindow();
 
+    // The public functions.
+    QSize sizeHint() const override;
+
 private Q_SLOTS:
     // The private slots.
+    void back() const;
     void fileNew() const;
+    void forward() const;
     void getZoomFactorFromUser();
+    void home() const;
+    void loadUrlFromLineEdit(const QString &url) const;
+    void openDomainSettings() const;
+    void refresh() const;
     void settingsConfigure();
+    void toggleJavaScript() const;
+    void updateDomainSettingsIndicator(const bool &status) const;
+    void updateJavaScriptAction(const bool &isEnabled) const;
     void updateOnTheFlySearchEngine(const QString &searchEngine) const;
     void updateOnTheFlyUserAgent(const QString &userAgent) const;
     void updateOnTheFlyZoomFactor(const double &zoomFactor);
     void updateSearchEngineLabel(const QString &searchEngineString) const;
-    void updateStatusBar(const QString &statusBarMessage) const;
-    void updateUserAgentLabel(const QString &userAgentName) const;
+    void updateUrlLineEdit(const QString &newUrl) const;
+    void updateUserAgentLabel(const QString &userAgentDatabaseName) const;
 
 private:
     // The private variables.
     BrowserView *browserViewPointer;
+    KConfigDialog *configDialogPointer;
+    QAction *domainSettingsActionPointer;
+    QPalette domainSettingsPalette;
     double currentZoomFactor;
+    QAction *javaScriptActionPointer;
+    QPalette noDomainSettingsPalette;
     QLabel *searchEngineLabelPointer;
     QAction *searchEngineMojeekActionPointer;
     QAction *searchEngineMonoclesActionPointer;
@@ -72,7 +89,7 @@ private:
     QAction *userAgentEdgeWindowsActionPointer;
     QAction *userAgentSafariMacosActionPointer;
     QAction *userAgentCustomActionPointer;
+    KLineEdit *urlLineEditPointer;
     QAction *zoomFactorActionPointer;
-    KConfigDialog *configDialogPointer;
 };
 #endif