Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/KReportScriptReport.h
Show All 22 Lines | |||||
23 | 23 | | |||
24 | class KReportDocument; | 24 | class KReportDocument; | ||
25 | 25 | | |||
26 | namespace Scripting | 26 | namespace Scripting | ||
27 | { | 27 | { | ||
28 | 28 | | |||
29 | 29 | | |||
30 | /** | 30 | /** | ||
31 | @ *brief Report object user scripting API. | 31 | @brief Report object user scripting API. | ||
32 | 32 | | |||
33 | Contains methods for a report object which can be called by user scripts. \n | 33 | Contains methods for a report object which can be called by user scripts. \n | ||
34 | 34 | | |||
35 | Example: \n | 35 | Example: \n | ||
36 | \code | 36 | \code | ||
37 | function report() | 37 | function report() | ||
38 | { | 38 | { | ||
39 | this.OnOpen = function() | 39 | this.OnOpen = function() | ||
40 | { | 40 | { | ||
41 | debug.print("Report opened!"); | 41 | debug.print("Report opened!"); | ||
42 | } | 42 | } | ||
43 | } | 43 | } | ||
44 | reportname.initialize(new report()) | 44 | reportname.initialize(new report()) | ||
45 | \endcode | 45 | \endcode | ||
46 | @author Adam Pigg <adam@piggz.co.uk>. | ||||
46 | */ | 47 | */ | ||
47 | class Report : public QObject | 48 | class Report : public QObject | ||
48 | { | 49 | { | ||
49 | Q_OBJECT | 50 | Q_OBJECT | ||
50 | public: | 51 | public: | ||
51 | explicit Report(KReportDocument*); | 52 | explicit Report(KReportDocument*); | ||
52 | 53 | | |||
53 | ~Report() override; | 54 | ~Report() override; | ||
Show All 39 Lines |