KD Reports 1.4
Signals | Public Member Functions
KDReports::PreviewDialog Class Reference

#include <KDReportsPreviewDialog.h>

List of all members.

Signals

void pageSizeChanged (QPrinter::PageSize pageSize)
 Emitted when the user changes the page size.
void orientationChanged (QPrinter::Orientation orientation)
 Emitted when the user changes the page orientation.

Public Member Functions

 PreviewDialog (KDReports::Report *report, QWidget *parent=0)
bool isSelected (int pageNumber) const
void setPageSizeChangeAllowed (bool b)
void setShowTableSettingsDialog (bool b)
void setWidthForEndlessPrinter (qreal widthMM)
virtual bool showTableSettingsDialog (KDReports::Report *report)
KDReports::PreviewWidgetpreviewWidget ()

Detailed Description

The PreviewDialog class provides a dialog showing the report to the user, typically used for "print preview" functionality.


Constructor & Destructor Documentation

KDReports::PreviewDialog::PreviewDialog ( KDReports::Report report,
QWidget *  parent = 0 
) [explicit]

Constructs a preview dialog.


Member Function Documentation

bool KDReports::PreviewDialog::isSelected ( int  pageNumber) const

Return true if the page has been selected (checked) by the user.

KDReports::PreviewWidget* KDReports::PreviewDialog::previewWidget ( )

Returns the preview widget used in this dialog. Can be used for fine tuning, for instance setShowPageListWidget(false).

Since:
1.4
void KDReports::PreviewDialog::setPageSizeChangeAllowed ( bool  b)

Set to false if you want to prevent the user from changing the page size in the preview dialog. Set to true if you want to allow the user to change the page size; note that this leads to a call to Report::setPageSize(). Changing the page size is allowed by default.

void KDReports::PreviewDialog::setShowTableSettingsDialog ( bool  b)

Show or hide the button for configuring table settings and font scaling. The button is shown by default.

Since:
1.1
void KDReports::PreviewDialog::setWidthForEndlessPrinter ( qreal  widthMM)

Sets the width of the endless printer, in case the user selects that item from the page selection combobox.

virtual bool KDReports::PreviewDialog::showTableSettingsDialog ( KDReports::Report report) [virtual]

Shows the table settings (and font scaling) dialog. Called when the user clicks on the corresponding button. This is a virtual method so that the dialog can be replaced or subclassed.

Since:
1.1

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Enumerations Enumerator

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-reports/