BPS C++ API  2.24.4
bpsreportmenu.h
Go to the documentation of this file.
1 
4 #ifndef BPSREPORTMENU_H
5 #define BPSREPORTMENU_H
6 
7 #include "bpsgui_global.h"
8 #include <QMenu>
9 #include <QStringList>
10 
11 class BpsDatastore;
12 class QAction;
13 
18 {
19  Q_OBJECT
21 
22 public:
29  BpsReportMenu(BpsDatastore* aDatastore, const QString& aApplication, const QString& aTitle, QWidget* aParent = nullptr);
30 
32  virtual ~BpsReportMenu();
34 
39 
43  QAction* pdfAction() const;
44 
48  QAction* printAction() const;
49 
50 protected:
74  virtual QMap<QString,QVariantList> selections(const QStringList& aUsedSelections) const;
75 };
76 
77 #endif // BPSREPORTMENU_H
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
BPS datastore class.
Definition: bpsdatastore.h:61
A report menu fully featured with actions to manage the application report list, to preview,...
Definition: bpsreportmenu.h:18
virtual QMap< QString, QVariantList > selections(const QStringList &aUsedSelections) const
Re-implement this method to pass selections to the report script whenever a report gets loaded.
BpsReportMenu(BpsDatastore *aDatastore, const QString &aApplication, const QString &aTitle, QWidget *aParent=nullptr)
QAction * printAction() const
QAction * pdfAction() const
QAction * previewAction() const