]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/privacybrowserpcwindow.h
Initial commit.
[PrivacyBrowserPC.git] / src / privacybrowserpcwindow.h
1 /*
2     SPDX-FileCopyrightText: %{CURRENT_YEAR} %{AUTHOR} <%{EMAIL}>
3
4     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5 */
6
7 #ifndef PRIVACYBROWSERPCWINDOW_H
8 #define PRIVACYBROWSERPCWINDOW_H
9
10 #include <KXmlGuiWindow>
11
12 #include "ui_settings.h"
13 #include "PrivacyBrowserPCSettings.h"
14
15 class PrivacyBrowserPCView;
16
17 /**
18  * This class serves as the main window for privacybrowserpc.  It handles the
19  * menus, toolbars and status bars.
20  *
21  * @short Main window class
22  * @author %{AUTHOR} <%{EMAIL}>
23  * @version %{VERSION}
24  */
25 class PrivacyBrowserPCWindow : public KXmlGuiWindow
26 {
27     Q_OBJECT
28 public:
29     /**
30      * Default Constructor
31      */
32     PrivacyBrowserPCWindow();
33
34     /**
35      * Default Destructor
36      */
37     ~PrivacyBrowserPCWindow() override;
38
39 private Q_SLOTS:
40     /**
41      * Create a new window
42      */
43     void fileNew();
44
45     /**
46      * Open the settings dialog
47      */
48     void settingsConfigure();
49
50 private:
51     // this is the name of the root widget inside our Ui file
52     // you can rename it in designer and then change it here
53     Ui::Settings m_settings;
54     QAction *m_switchAction;
55     PrivacyBrowserPCView *m_privacybrowserpcView;
56 };
57
58 #endif // PRIVACYBROWSERPCWINDOW_H