File indexing completed on 2024-04-28 07:29:05
0001 /* 0002 appmenuwidget.h - The main Qt/KDE window 0003 0004 SPDX-FileCopyrightText: 2008 Danilo Balzaque <danilo.balzaque@ltia.fc.unesp.br> 0005 SPDX-FileCopyrightText: 2008 Tadeu Araujo <tadeu.araujo@ltia.fc.unesp.br> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #ifndef APPMENUWIDGET_H 0011 #define APPMENUWIDGET_H 0012 0013 #include <KXmlGuiWindow> 0014 0015 #include <QHBoxLayout> 0016 0017 #include "MainQtWidget.h" 0018 #include "FractionRingWidget.h" 0019 0020 class QPushButton; 0021 class MainQtWidget; 0022 class FractionRingWidget; 0023 class QAction; 0024 0025 /** Constructs the main window and presents the user interface. 0026 * The window give the user the ability to choose what application 0027 * he want to open first. 0028 * \author Danilo Balzaque 0029 **/ 0030 class AppMenuWidget : public KXmlGuiWindow 0031 { 0032 Q_OBJECT 0033 public: 0034 /** constructor */ 0035 AppMenuWidget(); 0036 0037 /** destructor */ 0038 ~AppMenuWidget() override; 0039 0040 private: 0041 QWidget * baseWidget; 0042 QWidget * interfaceWidget; 0043 0044 QHBoxLayout * layout1; 0045 QGridLayout * gridLayout; 0046 0047 QPushButton * m_Freestyle; 0048 QLabel * labelFreestyle; 0049 QPushButton * m_Learning; 0050 QLabel * labelLearning; 0051 QLabel * labelInfo; 0052 0053 MainQtWidget * kbruchApp; 0054 FractionRingWidget * fractionRing; 0055 0056 void setupActions(); 0057 0058 void slotFreestyleClicked(); 0059 void slotLearningClicked(); 0060 /** 0061 * makes sure, all parts of the UI update to new settings 0062 */ 0063 void slotApplySettings(); 0064 }; 0065 0066 #endif // AppMenuWidget