File indexing completed on 2024-06-16 04:47:27
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 SKGOPERATIONBOARDWIDGETQML_H 0007 #define SKGOPERATIONBOARDWIDGETQML_H 0008 /** @file 0009 * This file is Skrooge plugin for transaction management. 0010 * 0011 * @author Stephane MANKOWSKI / Guillaume DE BURE 0012 */ 0013 #include "skghtmlboardwidget.h" 0014 0015 class QAction; 0016 class SKGPeriodEdit; 0017 0018 /** 0019 * This file is Skrooge plugin for transaction management 0020 */ 0021 class SKGOperationBoardWidgetQml : public SKGHtmlBoardWidget 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 /** 0027 * Default Constructor 0028 * @param iParent the parent widget 0029 * @param iDocument the document 0030 */ 0031 explicit SKGOperationBoardWidgetQml(QWidget* iParent, SKGDocument* iDocument); 0032 0033 /** 0034 * Default Destructor 0035 */ 0036 ~SKGOperationBoardWidgetQml() override; 0037 0038 /** 0039 * Get the current state 0040 * MUST BE OVERWRITTEN 0041 * @return a string containing all information needed to set the same state. 0042 * Could be an XML stream 0043 */ 0044 QString getState() override; 0045 0046 /** 0047 * Set the current state 0048 * MUST BE OVERWRITTEN 0049 * @param iState must be interpreted to set the state of the widget 0050 */ 0051 void setState(const QString& iState) override; 0052 0053 private Q_SLOTS: 0054 void settingsModified(); 0055 0056 private: 0057 Q_DISABLE_COPY(SKGOperationBoardWidgetQml) 0058 0059 QAction* m_menuOpen; 0060 QAction* m_menuGroup; 0061 QAction* m_menuTransfer; 0062 QAction* m_menuTracked; 0063 QAction* m_menuSuboperation; 0064 0065 SKGPeriodEdit* m_periodEdit1; 0066 SKGPeriodEdit* m_periodEdit2; 0067 }; 0068 0069 #endif // SKGOPERATIONBOARDWIDGETQML_H