2014-01-02 20:09:28 +01:00
|
|
|
<?xml version="1.0"?>
|
2014-09-29 16:25:35 +02:00
|
|
|
<def format="1">
|
2014-01-02 20:09:28 +01:00
|
|
|
<markup ext=".qml" reporterrors="false" aftercode="true">
|
|
|
|
<!-- keywords in QML code to ignore -->
|
|
|
|
<keywords>
|
|
|
|
<keyword name="if"/>
|
|
|
|
<keyword name="while"/>
|
|
|
|
<keyword name="typeof"/>
|
|
|
|
<keyword name="for"/>
|
|
|
|
</keywords>
|
|
|
|
<!-- code blocks are meta-code/pseudo code placed in the library
|
|
|
|
that is used/called by the native c/c++ code -->
|
|
|
|
<codeblocks>
|
|
|
|
<!-- need to add all the QML function names below -->
|
|
|
|
<block name="onClicked"/>
|
|
|
|
<block name="onFinished"/>
|
|
|
|
<block name="onTriggered"/>
|
|
|
|
<block name="onRetrieveTriggered"/>
|
|
|
|
<block name="onPressed"/>
|
|
|
|
<block name="onTouch"/>
|
|
|
|
<block name="onFocusedChanged"/>
|
|
|
|
<block name="onSubmittedNewStatusChanged"/>
|
|
|
|
<block name="onCreationCompleted"/>
|
2014-03-11 15:57:28 +01:00
|
|
|
<block name="onFileSelected"/>
|
2014-01-02 20:09:28 +01:00
|
|
|
<!-- code block structure in QML is:
|
|
|
|
onClicked: {
|
|
|
|
call(var)
|
|
|
|
} -->
|
|
|
|
<structure offset="3" start="{" end="}"/>
|
|
|
|
<!-- the start block is '3' tokens after the
|
|
|
|
name token so we skip them -->
|
|
|
|
</codeblocks>
|
2014-03-11 15:57:28 +01:00
|
|
|
<codeblocks>
|
|
|
|
<block name="function"/>
|
|
|
|
<!-- code block structure in QML is:
|
|
|
|
funnction x(args): {
|
|
|
|
call(var)
|
|
|
|
} -->
|
|
|
|
<structure offset="2" start="{" end="}"/>
|
|
|
|
</codeblocks>
|
2014-01-02 20:09:28 +01:00
|
|
|
<!-- Qt Properties have the format :
|
|
|
|
Q_PROPERTY(<type> <name> READ <func> WRITE <func> NOTIFY <func>)
|
|
|
|
the READ/WRITE/NOTIFY parts are optional -->
|
|
|
|
<exported>
|
|
|
|
<exporter prefix="Q_PROPERTY">
|
2014-10-14 06:46:47 +02:00
|
|
|
<suffix>READ</suffix>
|
|
|
|
<!-- catch the element before READ if present -->
|
2014-01-02 20:09:28 +01:00
|
|
|
<prefix>READ</prefix>
|
|
|
|
<prefix>WRITE</prefix>
|
|
|
|
<prefix>NOTIFY</prefix>
|
|
|
|
</exporter>
|
|
|
|
</exported>
|
|
|
|
<!-- qml files can call connect on the c++ code -->
|
|
|
|
<imported>
|
|
|
|
<importer>connect</importer>
|
|
|
|
</imported>
|
|
|
|
</markup>
|
|
|
|
<!-- qt can call methods as strings using invokeMethod -->
|
2014-03-11 15:57:28 +01:00
|
|
|
<reflection>
|
2014-03-13 17:43:25 +01:00
|
|
|
<call arg="2">invokeMethod</call>
|
2014-03-11 15:57:28 +01:00
|
|
|
</reflection>
|
2014-01-02 20:09:28 +01:00
|
|
|
<!-- the SLOT/SIGNAL methods can be cause false-positives for pure
|
|
|
|
virtual functions being called in the constructor because it sees
|
|
|
|
the macro as a function. -->
|
|
|
|
<function name="SLOT">
|
|
|
|
<ignorefunction>true</ignorefunction>
|
|
|
|
</function>
|
|
|
|
<function name="SIGNAL">
|
|
|
|
<ignorefunction>true</ignorefunction>
|
|
|
|
</function>
|
2014-07-29 16:56:15 +02:00
|
|
|
<define name="Q_DECL_EXPORT" value=""/>
|
|
|
|
<define name="Q_DECL_IMPORT" value=""/>
|
2014-12-14 01:52:00 +01:00
|
|
|
<define name="Q_DISABLE_COPY(C)" value="C(C&);C& operator=(const C&);"/>
|
2014-09-02 09:18:10 +02:00
|
|
|
<podtype name="qint8" sign="s" size="1"/>
|
|
|
|
<podtype name="qint16" sign="s" size="2"/>
|
|
|
|
<podtype name="qint32" sign="s" size="4"/>
|
|
|
|
<podtype name="qint64" sign="s" size="8"/>
|
|
|
|
<podtype name="quint8" sign="u" size="1"/>
|
|
|
|
<podtype name="quint16" sign="u" size="2"/>
|
|
|
|
<podtype name="quint32" sign="u" size="4"/>
|
|
|
|
<podtype name="quint64" sign="u" size="8"/>
|
|
|
|
<podtype name="qlonglong" sign="s"/>
|
|
|
|
<podtype name="qulonglong" sign="u"/>
|
|
|
|
<podtype name="uchar" sign="u"/>
|
|
|
|
<podtype name="uint" sign="u"/>
|
|
|
|
<podtype name="ulong" sign="u"/>
|
|
|
|
<podtype name="ushort" sign="u"/>
|
|
|
|
<podtype name="qptrdiff" sign="s"/>
|
|
|
|
<podtype name="quinitptr" sign="u"/>
|
2014-01-02 20:09:28 +01:00
|
|
|
</def>
|