File indexing completed on 2025-02-09 06:04:33
0001 /*************************************************************************** 0002 * SPDX-FileCopyrightText: 2022 S. MANKOWSKI stephane@mankowski.fr 0003 * SPDX-FileCopyrightText: 2022 G. DE BURE support@mankowski.fr 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 ***************************************************************************/ 0006 #ifndef SKGDASHBOARDBOARDWIDGET_H 0007 #define SKGDASHBOARDBOARDWIDGET_H 0008 /** @file 0009 * A dashboard widget 0010 * 0011 * @author Stephane MANKOWSKI 0012 */ 0013 0014 #include "skgboardwidget.h" 0015 0016 class SKGInterfacePlugin; 0017 class SKGDashboardWidget; 0018 0019 /** 0020 * A dashboard 0021 */ 0022 class SKGDashboardboardWidget : public SKGBoardWidget 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 /** 0028 * Default Constructor 0029 * @param iParent the parent widget 0030 * @param iDocument the document 0031 */ 0032 explicit SKGDashboardboardWidget(QWidget* iParent, SKGDocument* iDocument); 0033 0034 /** 0035 * Default Destructor 0036 */ 0037 ~SKGDashboardboardWidget() override; 0038 0039 /** 0040 * Get the current state 0041 * MUST BE OVERWRITTEN 0042 * @return a string containing all information needed to set the same state. 0043 * Could be an XML stream 0044 */ 0045 QString getState() override; 0046 0047 /** 0048 * Set the current state 0049 * MUST BE OVERWRITTEN 0050 * @param iState must be interpreted to set the state of the widget 0051 */ 0052 void setState(const QString& iState) override; 0053 0054 private: 0055 Q_DISABLE_COPY(SKGDashboardboardWidget) 0056 0057 SKGDashboardWidget* m_widget; 0058 }; 0059 0060 #endif // SKGDASHBOARDBOARDWIDGET_H