Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/krscriptsection.h
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public | 14 | * You should have received a copy of the GNU Lesser General Public | ||
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | #ifndef KRSCRIPTSECTION_H | 17 | #ifndef KRSCRIPTSECTION_H | ||
18 | #define KRSCRIPTSECTION_H | 18 | #define KRSCRIPTSECTION_H | ||
19 | 19 | | |||
20 | #include <QObject> | 20 | #include <QObject> | ||
21 | 21 | #include <QtQml/QJSValue> | |||
22 | #include <kross/core/object.h> | | |||
23 | 22 | | |||
24 | class KRSectionData; | 23 | class KRSectionData; | ||
25 | 24 | | |||
26 | /** | 25 | /** | ||
27 | */ | 26 | */ | ||
28 | namespace Scripting | 27 | namespace Scripting | ||
29 | { | 28 | { | ||
30 | class Section : public QObject | 29 | class Section : public QObject | ||
Show All 20 Lines | 37 | public Q_SLOTS: | |||
51 | /**Returns the name of the section*/ | 50 | /**Returns the name of the section*/ | ||
52 | QString name(); | 51 | QString name(); | ||
53 | 52 | | |||
54 | /**Returns an object in the section, by number*/ | 53 | /**Returns an object in the section, by number*/ | ||
55 | QObject* objectByNumber(int); | 54 | QObject* objectByNumber(int); | ||
56 | /**Returns an object in the section, by name*/ | 55 | /**Returns an object in the section, by name*/ | ||
57 | QObject* objectByName(const QString&); | 56 | QObject* objectByName(const QString&); | ||
58 | 57 | | |||
59 | void initialize(Kross::Object::Ptr); | 58 | void initialize(const QJSValue &s); | ||
staniek: -> const QJSValue &val | |||||
60 | void eventOnRender(); | 59 | void eventOnRender(); | ||
61 | 60 | | |||
62 | private: | 61 | private: | ||
63 | KRSectionData *m_section; | 62 | KRSectionData *m_section; | ||
64 | Kross::Object::Ptr m_scriptObject; | 63 | QJSValue m_scriptObject; | ||
65 | }; | 64 | }; | ||
66 | } | 65 | } | ||
67 | #endif | 66 | #endif |
-> const QJSValue &val