]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/dialogs/DomainSettingsDialog.h
Create new domain settings with the currently applied settings. https://redmine...
[PrivacyBrowserPC.git] / src / dialogs / DomainSettingsDialog.h
index fb4590211a99fd6bdddf7ce1f068fa3a26f304a4..543c1bbb6f2eab80d93db7a3165f5807cd70cd6a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2022 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>.
  *
@@ -20,6 +20,9 @@
 #ifndef DOMAINSETTINGSDIALOG_H
 #define DOMAINSETTINGSDIALOG_H
 
+// Application headers.
+#include "helpers/UserAgentHelper.h"
+
 // KDE Frameworks headers.
 #include <KLineEdit>
 
@@ -67,7 +70,9 @@ private:
     // The private variables.
     QPushButton *applyButtonPointer;
     QDoubleSpinBox *customZoomFactorSpinBoxPointer;
+    QPalette defaultPalette;
     QPushButton *deleteDomainButtonPointer;
+    QWidget *domStorageWidgetPointer;
     QComboBox *domStorageComboBoxPointer;
     QLabel *domStorageLabelPointer;
     KLineEdit *domainNameLineEditPointer;
@@ -75,17 +80,22 @@ private:
     QListView *domainsListViewPointer;
     QSqlTableModel *domainsTableModelPointer;
     QItemSelectionModel *domainsSelectionModelPointer;
+    QPalette highlightedPalette;
+    QWidget *javaScriptWidgetPointer;
     QComboBox *javaScriptComboBoxPointer;
     QLabel *javaScriptLabelPointer;
+    QWidget *localStorageWidgetPointer;
     QComboBox *localStorageComboBoxPointer;
     QLabel *localStorageLabelPointer;
     QPushButton *resetButtonPointer;
+    QWidget *userAgentWidgetPointer;
     QComboBox *userAgentComboBoxPointer;
+    UserAgentHelper *userAgentHelperPointer;
     QLabel *userAgentLabelPointer;
+    QWidget *zoomFactorWidgetPointer;
     QComboBox *zoomFactorComboBoxPointer;
 
     // The private functions.
-    void addDomain(const QString &domainName) const;
     void populateDomStorageLabel() const;
     void populateJavaScriptLabel() const;
     void populateLocalStorageLabel() const;