QGIS/src/app/layout/qgsreportlayoutsectionwidget.h
2018-01-05 11:15:04 +10:00

48 lines
1.8 KiB
C++

/***************************************************************************
qgsreportlayoutsectionwidget.h
----------------------
begin : December 2017
copyright : (C) 2017 by Nyall Dawson
email : nyall dot dawson at gmail dot com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSREPORTLAYOUTSECTIONWIDGET_H
#define QGSREPORTLAYOUTSECTIONWIDGET_H
#include "ui_qgsreportwidgetlayoutsectionbase.h"
class QgsLayoutDesignerDialog;
class QgsReportSectionLayout;
class QgsReportLayoutSectionWidget: public QWidget, private Ui::QgsReportWidgetLayoutSectionBase
{
Q_OBJECT
public:
QgsReportLayoutSectionWidget( QWidget *parent, QgsLayoutDesignerDialog *designer, QgsReportSectionLayout *section );
private slots:
void toggleHeader( bool enabled );
void toggleFooter( bool enabled );
void editHeader();
void editFooter();
void toggleBody( bool enabled );
void editBody();
private:
QgsReportSectionLayout *mSection = nullptr;
QgsLayoutDesignerDialog *mDesigner = nullptr;
};
#endif // QGSREPORTLAYOUTSECTIONWIDGET_H