Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/KReportScriptSection.h
Show All 17 Lines | |||||
18 | #define KRSCRIPTSECTION_H | 18 | #define KRSCRIPTSECTION_H | ||
19 | 19 | | |||
20 | #include <QObject> | 20 | #include <QObject> | ||
21 | #include <QtQml/QJSValue> | 21 | #include <QtQml/QJSValue> | ||
22 | 22 | | |||
23 | class KReportSectionData; | 23 | class KReportSectionData; | ||
24 | 24 | | |||
25 | /** | 25 | /** | ||
26 | @ *brief Report section object user scripting API. | 26 | @brief Report section object user scripting API. | ||
27 | 27 | | |||
28 | Contains methods for a report section object which can be called by user scripts. \n | 28 | Contains methods for a report section object which can be called by user scripts. \n | ||
29 | 29 | | |||
30 | Example: \n | 30 | Example: \n | ||
31 | \code | 31 | \code | ||
32 | function detail() | 32 | function detail() | ||
33 | { | 33 | { | ||
34 | this.OnRender = function() | 34 | this.OnRender = function() | ||
35 | { | 35 | { | ||
36 | debug.print("Rendering detail section!"); | 36 | debug.print("Rendering detail section!"); | ||
37 | } | 37 | } | ||
38 | } | 38 | } | ||
39 | reportname.section_detail.initialize(new detail()) | 39 | reportname.section_detail.initialize(new detail()) | ||
40 | \endcode | 40 | \endcode | ||
41 | @author Adam Pigg <adam@piggz.co.uk>. | ||||
42 | | ||||
41 | */ | 43 | */ | ||
42 | namespace Scripting | 44 | namespace Scripting | ||
43 | { | 45 | { | ||
44 | class Section : public QObject | 46 | class Section : public QObject | ||
45 | { | 47 | { | ||
46 | Q_OBJECT | 48 | Q_OBJECT | ||
47 | public: | 49 | public: | ||
48 | explicit Section(KReportSectionData*); | 50 | explicit Section(KReportSectionData*); | ||
Show All 37 Lines |