X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fmainview.h;h=018594e83e06ab58424317cd8659d10929177b12;hp=8129ecaf57bdf9618ea9ad0ebb03febfe8e8810f;hb=a65c9f31cc84f245da08642cefefe7a17fa941ce;hpb=255215b082091aaadd5ef24cfc0880cd81e42272 diff --git a/src/mainview.h b/src/mainview.h index 8129eca..018594e 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -20,8 +20,14 @@ #ifndef MAINVIEW_H #define MAINVIEW_H -// Application headers. -#include "ui_mainview.h" +// Qt framework headers. +#include +#include +#include +#include + +// KDE Framework headers. +#include class MainView : public QWidget { @@ -29,11 +35,34 @@ class MainView : public QWidget Q_OBJECT public: - // The default contructor. + // The primary contructor. explicit MainView(QWidget *parent); +signals: + // Define the signals. + void linkHovered(const QString &linkUrl); + +public Q_SLOTS: + // Define the public slots. + void applyApplicationSettings(); + void applyDomainSettings(); + +private Q_SLOTS: + // Define the private slots. + void goHome(); + void loadUrl(const QString &urlFromUser); + void pageLinkHovered(const QString &linkUrl); + void toggleJavaScript(); + void updateInterface(); + private: - // Declare the private variables. - Ui::MainView mainViewUi; + // Define the private variables. + QPushButton *backButtonPointer; + QPushButton *forwardButtonPointer; + QPushButton *javaScriptButtonPointer; + KLineEdit *urlLineEditPointer; + QWebEngineHistory *webEngineHistoryPointer; + QWebEngineSettings *webEngineSettingsPointer; + QWebEngineView *webEngineViewPointer; }; #endif