X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fmainview.h;fp=src%2Fmainview.h;h=6b9e6ca8657f93405100422e43c54cc1a50ebfa7;hp=0000000000000000000000000000000000000000;hb=153c5c0d60eaf3185cb4419032fb0fdaeb78907c;hpb=ad39882c17bfd7d96cbcfd3873d4dd332722e84f diff --git a/src/mainview.h b/src/mainview.h new file mode 100644 index 0000000..6b9e6ca --- /dev/null +++ b/src/mainview.h @@ -0,0 +1,45 @@ +/* + SPDX-FileCopyrightText: %{CURRENT_YEAR} %{AUTHOR} <%{EMAIL}> + + SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL +*/ + +#ifndef MAINVIEW_H +#define MAINVIEW_H + +#include "ui_mainview.h" + + +/** + * 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 MainView : public QWidget +{ + Q_OBJECT +public: + /** + * Default Constructor + */ + explicit MainView(QWidget *parent); + + /** + * Default Destructor + */ + ~MainView() override; + +public Q_SLOTS: + void switchColors(); + void handleSettingsChanged(); + +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::MainView m_ui; +}; + +#endif