mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
48 lines
1.8 KiB
C++
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
|