mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
#ifndef LRPREVIEWREPORTWIDGET_H
|
|
#define LRPREVIEWREPORTWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include "lrglobal.h"
|
|
|
|
namespace LimeReport {
|
|
|
|
namespace Ui {
|
|
class PreviewReportWidget;
|
|
}
|
|
|
|
class PreviewReportWidgetPrivate;
|
|
class ReportEnginePrivate;
|
|
|
|
class LIMEREPORT_EXPORT PreviewReportWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
friend class ReportEnginePrivate;
|
|
friend class PreviewReportWindow;
|
|
friend class PreviewReportWidgetPrivate;
|
|
public:
|
|
explicit PreviewReportWidget(ReportEnginePrivate *report, QWidget *parent = 0);
|
|
~PreviewReportWidget();
|
|
public slots:
|
|
void refreshPages();
|
|
void slotZoomIn();
|
|
void slotZoomOut();
|
|
|
|
void slotFirstPage();
|
|
void slotPriorPage();
|
|
void slotNextPage();
|
|
void slotLastPage();
|
|
|
|
void slotPrint();
|
|
void slotPrintToPDF();
|
|
void slotPageNavigatorChanged(int value);
|
|
void slotSaveToFile();
|
|
signals:
|
|
void pageChanged(int page);
|
|
private slots:
|
|
void slotSliderMoved(int value);
|
|
void reportEngineDestroyed(QObject* object);
|
|
private:
|
|
void initPreview();
|
|
void setErrorsMesagesVisible(bool visible);
|
|
void setErrorMessages(const QStringList &value);
|
|
private:
|
|
Ui::PreviewReportWidget *ui;
|
|
PreviewReportWidgetPrivate* d_ptr;
|
|
};
|
|
|
|
} // namespace LimeReport
|
|
#endif // LRPREVIEWREPORTWIDGET_H
|