Documents > BPS V2 C++ API
bpsreportpreviewwidget.h
Go to the documentation of this file.
00001 
00004 #ifndef BPSREPORTPREVIEWWIDGET_H
00005 #define BPSREPORTPREVIEWWIDGET_H
00006 
00007 #include "bpsgui_global.h"
00008 #include <QScrollArea>
00009 
00010 class BpsReport;
00011 class BpsSettings;
00012 
00017 class BPSGUI_EXPORT BpsReportPreviewWidget : public QScrollArea
00018 {
00019     Q_OBJECT
00020     BPS_PRIVATE(BpsReportPreviewWidget)
00021 
00022 public:
00027     BpsReportPreviewWidget(QWidget* aParent = 0);
00028 
00030     virtual ~BpsReportPreviewWidget();
00031     virtual QSize sizeHint() const; 
00033 
00040     void setReport(BpsReport* aReport);
00041 
00045     BpsReport* report() const;
00046 
00050     int currentPage() const;
00051 
00055     int pageCount() const;
00056 
00060     bool hasPreviousPage() const;
00061 
00065     bool hasNextPage() const;
00066 
00070     bool isFitPage() const;
00071 
00075     bool isFitWidth() const;
00076 
00082     qreal zoom() const;
00083 
00087     void scalePage();
00088 
00089 public slots:
00090 
00095     void showPage(int aPageNo);
00096 
00100     void showFirstPage();
00101 
00105     void showPreviousPage();
00106 
00110     void showNextPage();
00111 
00115     void showLastPage();
00116 
00122     void setFitPage(bool aEnable);
00123 
00129     void setFitWidth(bool aEnable);
00130 
00136     void setZoom(qreal aZoom);
00137 
00141     void emitStatus();
00142 
00143 signals:
00144 
00149     void fitPageEnabled(bool aEnabled);
00150 
00155     void fitWidthEnabled(bool aEnabled);
00156 
00161     void zoomChanged(qreal aZoom);
00162 
00167     void pageChanged(int aPageNo);
00168 
00173     void previousPageEnabled(bool aEnable);
00174 
00179     void nextPageEnabled(bool aEnable);
00180 };
00181 
00182 #endif // BPSREPORTPREVIEWWIDGET_H