1 /***************************************************************************
2                              qgsreportlayoutsectionwidget.h
3                              ----------------------
4     begin                : December 2017
5     copyright            : (C) 2017 by Nyall Dawson
6     email                : nyall dot dawson at gmail dot com
7  ***************************************************************************/
8 /***************************************************************************
9  *                                                                         *
10  *   This program is free software; you can redistribute it and/or modify  *
11  *   it under the terms of the GNU General Public License as published by  *
12  *   the Free Software Foundation; either version 2 of the License, or     *
13  *   (at your option) any later version.                                   *
14  *                                                                         *
15  ***************************************************************************/
16 
17 #ifndef QGSREPORTLAYOUTSECTIONWIDGET_H
18 #define QGSREPORTLAYOUTSECTIONWIDGET_H
19 
20 #include "ui_qgsreportwidgetlayoutsectionbase.h"
21 
22 class QgsLayoutDesignerDialog;
23 class QgsReportSectionLayout;
24 class QgsReportOrganizerWidget;
25 
26 class QgsReportLayoutSectionWidget: public QWidget, private Ui::QgsReportWidgetLayoutSectionBase
27 {
28     Q_OBJECT
29   public:
30     QgsReportLayoutSectionWidget( QgsReportOrganizerWidget *parent, QgsLayoutDesignerDialog *designer, QgsReportSectionLayout *section );
31 
32   private slots:
33 
34     void toggleBody( bool enabled );
35     void editBody();
36 
37   private:
38 
39     QgsReportOrganizerWidget *mOrganizer = nullptr;
40     QgsReportSectionLayout *mSection = nullptr;
41     QgsLayoutDesignerDialog *mDesigner = nullptr;
42 
43 };
44 
45 #endif // QGSREPORTLAYOUTSECTIONWIDGET_H
46