You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
659 B
C
41 lines
659 B
C
8 years ago
|
#ifndef REPORTVIEWER_H
|
||
|
#define REPORTVIEWER_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include "report.h"
|
||
|
|
||
|
namespace Ui {
|
||
|
class ReportViewer;
|
||
|
}
|
||
|
|
||
|
namespace LimeReport {
|
||
|
class PreviewReportWidget;
|
||
|
class ReportEngine;
|
||
|
}
|
||
|
|
||
|
class ReportViewer : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit ReportViewer(QWidget *parent = 0);
|
||
|
~ReportViewer();
|
||
|
void setReport(ReportPtr report);
|
||
|
void openPreview();
|
||
|
|
||
|
private slots:
|
||
|
void on_btnClose_clicked();
|
||
|
|
||
|
void on_btnEdit_clicked();
|
||
|
|
||
|
void slotPageSet(int page);
|
||
|
|
||
|
private:
|
||
|
Ui::ReportViewer *ui;
|
||
|
|
||
|
LimeReport::PreviewReportWidget *m_prevWidget;
|
||
|
LimeReport::ReportEngine *m_report;
|
||
|
};
|
||
|
|
||
|
#endif // REPORTVIEWER_H
|