/*
- * Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright © 2022-2023 Soren Stoutner <soren@stoutner.com>.
*
* This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
*
public:
// The default constructor.
- BrowserWindow();
+ BrowserWindow(bool firstWindow=true);
// The public functions.
QSize sizeHint() const override;
void back() const;
void clearUrlLineEditFocus() const;
void escape() const;
- void fileNew() const;
+ void findNext() const;
+ void findPrevious() const;
void forward() const;
void fullScreenRequested(const bool toggleOn);
void getZoomFactorFromUser();
+ void hideFindTextActions() const;
void home() const;
void loadUrlFromLineEdit(const QString &url) const;
+ void newWindow() const;
void refresh() const;
void showCookiesDialog();
void showDownloadLocationBrowseDialog() const;
void showDomainSettingsDialog() const;
+ void showFindTextActions() const;
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);
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.
bool customSearchEngineEnabled;
bool customUserAgentEnabled;
QAction *domStorageActionPointer;
- QPalette domainSettingsPalette;
QComboBox *downloadLocationComboBoxPointer;
+ QAction *findCaseSensitiveActionPointer;
+ QAction *findNextActionPointer;
+ QAction *findPreviousActionPointer;
+ QAction *findTextLabelActionPointer;
+ QLabel *findTextLabelPointer;
+ QAction *findTextLineEditActionPointer;
+ KLineEdit *findTextLineEditPointer;
KToggleFullScreenAction *fullScreenActionPointer;
+ QAction *hideFindTextActionPointer;
QAction *javaScriptActionPointer;
bool javaScriptEnabled;
QAction *localStorageActionPointer;
bool localStorageEnabled;
KToolBar *navigationToolBarPointer;
- QPalette noDomainSettingsPalette;
+ QPalette negativeBackgroundPalette;
+ QPalette normalBackgroundPalette;
+ QPalette positiveBackgroundPalette;
QProgressBar *progressBarPointer;
QLabel *searchEngineLabelPointer;
QAction *searchEngineMenuActionPointer;