mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-09-23 16:49:07 +03:00
Fix #46 Allow to customize the Preview dialog
hints (ShowAllPreviewBars, HidePreviewToolBar, HidePreviewMenuBar, HidePreviewStatusBar, HideAllPreviewBar) have been added to preview method
This commit is contained in:
@@ -80,6 +80,13 @@ namespace Const{
|
||||
QString extractClassName(QString className);
|
||||
enum RenderPass {FirstPass, SecondPass};
|
||||
enum ArrangeType {AsNeeded, Force};
|
||||
enum PreviewHint{ShowAllPreviewBars=0,
|
||||
HidePreviewToolBar=1,
|
||||
HidePreviewMenuBar=2,
|
||||
HidePreviewStatusBar=4,
|
||||
HideAllPreviewBar=7};
|
||||
Q_DECLARE_FLAGS(PreviewHints, PreviewHint)
|
||||
|
||||
class ReportError : public std::runtime_error{
|
||||
public:
|
||||
ReportError(const QString& message):std::runtime_error(message.toStdString()){}
|
||||
@@ -104,6 +111,6 @@ namespace Const{
|
||||
|
||||
} // namespace LimeReport
|
||||
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(LimeReport::PreviewHints)
|
||||
|
||||
#endif // GLOBAL_H
|
||||
|
@@ -71,7 +71,7 @@ public:
|
||||
bool printReport(QPrinter *printer=0);
|
||||
void printToFile(const QString& fileName);
|
||||
bool printToPDF(const QString& fileName);
|
||||
void previewReport();
|
||||
void previewReport(PreviewHints hints = ShowAllPreviewBars);
|
||||
void designReport();
|
||||
void setShowProgressDialog(bool value);
|
||||
IDataSourceManager* dataManager();
|
||||
|
Reference in New Issue
Block a user