X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fmainwindow.h;h=3e48bd43175724140485703a11fedc779baee341;hp=a70db9f71054eb4ff155a001ddfff07f47103a59;hb=153c5c0d60eaf3185cb4419032fb0fdaeb78907c;hpb=597b6f74d41343f57e288694ec499e2303022f7e diff --git a/src/mainwindow.h b/src/mainwindow.h index a70db9f..3e48bd4 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -21,24 +21,15 @@ #define MAINWINDOW_H // Application headers. +#include "settings.h" #include "ui_settings.h" -#include "PrivacyBrowserPCSettings.h" // KDE Frameworks headers. #include -// TODO. What is this doing here? -class PrivacyBrowserPCView; +class MainView; -/** TODO. Remove. - * This class serves as the main window for privacybrowserpc. It handles the - * menus, toolbars and status bars. - * - * @short Main window class - * @author %{AUTHOR} <%{EMAIL}> - * @version %{VERSION} - */ -class MainWindow : public KXmlGuiWindow // TODO. Checkout documentation. +class MainWindow : public KXmlGuiWindow { // Include the Q_OBJECT macro. Q_OBJECT @@ -47,26 +38,14 @@ public: // The default constructor. MainWindow(); - - // The default destructor. TODO, this could probably be removed. - ~MainWindow() override; - private Q_SLOTS: - /** - * Create a new window - */ + // Define the private slots. void fileNew(); - - /** - * Open the settings dialog - */ void settingsConfigure(); private: - // this is the name of the root widget inside our Ui file - // you can rename it in designer and then change it here - Ui::Settings m_settings; - QAction *m_switchAction; - PrivacyBrowserPCView *m_privacybrowserpcView; + // Define the private variables. + Ui::Settings settingsWidget; + MainView *mainViewPointer; }; #endif