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
17
class
BPSGUI_EXPORT
BpsReportMenu
:
public
QMenu
18
{
19
Q_OBJECT
20
BPS_PRIVATE
(
BpsReportMenu
)
21
22
public
:
29
BpsReportMenu
(
BpsDatastore
* aDatastore,
const
QString
& aApplication,
const
QString
& aTitle,
QWidget
* aParent =
nullptr
);
30
32
virtual
~
BpsReportMenu
();
34
38
QAction
*
previewAction
()
const
;
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
BPS_PRIVATE
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition:
bpsglobals.h:102
bpsgui_global.h
Public include file for BPS GUI library macros.
BPSGUI_EXPORT
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition:
bpsgui_global.h:22
BpsDatastore
BPS datastore class.
Definition:
bpsdatastore.h:61
BpsReportMenu
A report menu fully featured with actions to manage the application report list, to preview,...
Definition:
bpsreportmenu.h:18
BpsReportMenu::selections
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::BpsReportMenu
BpsReportMenu(BpsDatastore *aDatastore, const QString &aApplication, const QString &aTitle, QWidget *aParent=nullptr)
BpsReportMenu::printAction
QAction * printAction() const
BpsReportMenu::pdfAction
QAction * pdfAction() const
BpsReportMenu::previewAction
QAction * previewAction() const
QAction
QMap
QMenu
QString
QStringList
QWidget
C:
dev
bps
src
libs
bpsgui
bpsreportmenu.h
Generated by
1.9.1