X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwindows%2FBrowserWindow.h;h=4c043d2e8f4717b13e4dba0193ba8e7225d3064c;hb=aa9a6b20db5e2c808b390b62704f28bd649e283c;hp=39b8e8f5ea7e0caffacf2aa67a8706f77f7768f7;hpb=0d23ee5e9b43b247cdda0a4cbb73f8b1a70f4500;p=PrivacyBrowserPC.git diff --git a/src/windows/BrowserWindow.h b/src/windows/BrowserWindow.h index 39b8e8f..4c043d2 100644 --- a/src/windows/BrowserWindow.h +++ b/src/windows/BrowserWindow.h @@ -40,11 +40,14 @@ class BrowserWindow : public KXmlGuiWindow public: // The default constructor. - BrowserWindow(); + BrowserWindow(bool firstWindow=true); // The public functions. QSize sizeHint() const override; + // The public variables. + TabWidget *tabWidgetPointer; + private Q_SLOTS: // The private slots. void addOrEditDomainSettings() const; @@ -52,6 +55,9 @@ private Q_SLOTS: void clearUrlLineEditFocus() const; void escape() const; void fileNew() const; + void findNext() const; + void findPrevious() const; + void focusFindLineEdit() const; void forward() const; void fullScreenRequested(const bool toggleOn); void getZoomFactorFromUser(); @@ -64,12 +70,15 @@ private Q_SLOTS: void showProgressBar(const int &progress) const; void showSettingsDialog(); void toggleDomStorage() const; + void toggleFindCaseSensitive() const; void toggleJavaScript() const; void toggleLocalStorage() const; void toggleFullScreen(); void updateCookiesAction(const int numberOfCookies) const; void updateDomStorageAction(const bool &isEnabled) const; void updateDomainSettingsIndicator(const bool status); + void updateFindText(const QString &text, const bool findCaseSensitive) const; + void updateFindTextResults(const QWebEngineFindTextResult &findTextResult) const; void updateJavaScriptAction(const bool &isEnabled); void updateLocalStorageAction(const bool &isEnabled); void updateSearchEngineActions(const QString &searchEngine, const bool &updateCustomSearchEngineStatus); @@ -78,6 +87,7 @@ private Q_SLOTS: void updateSearchEngineLabel(const QString &searchEngineString) const; void updateUrlLineEdit(const QUrl &newUrl); void updateUserAgentLabel(const QString &userAgentDatabaseName) const; + void updateWindowTitle(const QString &title); private: // The private variables. @@ -88,15 +98,19 @@ private: bool customSearchEngineEnabled; bool customUserAgentEnabled; QAction *domStorageActionPointer; - QPalette domainSettingsPalette; QComboBox *downloadLocationComboBoxPointer; + QAction *findCaseSensitiveActionPointer; + QLabel *findTextLabelPointer; + KLineEdit *findTextLineEditPointer; KToggleFullScreenAction *fullScreenActionPointer; QAction *javaScriptActionPointer; bool javaScriptEnabled; QAction *localStorageActionPointer; bool localStorageEnabled; KToolBar *navigationToolBarPointer; - QPalette noDomainSettingsPalette; + QPalette negativeBackgroundPalette; + QPalette normalBackgroundPalette; + QPalette positiveBackgroundPalette; QProgressBar *progressBarPointer; QLabel *searchEngineLabelPointer; QAction *searchEngineMenuActionPointer; @@ -107,7 +121,6 @@ private: QAction *searchEngineBingActionPointer; QAction *searchEngineYahooActionPointer; QAction *searchEngineCustomActionPointer; - TabWidget *tabWidgetPointer; QLabel *userAgentLabelPointer; QAction *userAgentMenuActionPointer; QAction *userAgentPrivacyBrowserActionPointer;