]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/mainwindow.h
Add the icon.
[PrivacyBrowserPC.git] / src / mainwindow.h
diff --git a/src/mainwindow.h b/src/mainwindow.h
new file mode 100644 (file)
index 0000000..a70db9f
--- /dev/null
@@ -0,0 +1,72 @@
+/*
+ * Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+ *
+ * This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
+ *
+ * Privacy Browser PC is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Privacy Browser PC is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+// Application headers.
+#include "ui_settings.h"
+#include "PrivacyBrowserPCSettings.h"
+
+// KDE Frameworks headers.
+#include <KXmlGuiWindow>
+
+// TODO.  What is this doing here?
+class PrivacyBrowserPCView;
+
+/**  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.
+{
+    // Include the Q_OBJECT macro.
+    Q_OBJECT
+
+public:
+    // The default constructor.
+    MainWindow();
+
+
+    // The default destructor.  TODO, this could probably be removed.
+    ~MainWindow() override;
+
+private Q_SLOTS:
+    /**
+     * Create a new window
+     */
+    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;
+};
+#endif