Merge branch 'DOC-68' into api-docs

# Conflicts:
#	libraries/shared/src/RegisteredMetaTypes.h
This commit is contained in:
David Rowe 2020-01-14 18:02:23 +13:00
commit b9a1b78531
18 changed files with 25 additions and 7 deletions

View file

@ -110,6 +110,7 @@ using namespace InteractiveWindowEnums;
* <p>Create using {@link Desktop.createWindow}.</p> * <p>Create using {@link Desktop.createWindow}.</p>
* *
* @class InteractiveWindow * @class InteractiveWindow
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity

View file

@ -23,6 +23,7 @@ class QScriptEngine;
* Information about an animation resource, created by {@link AnimationCache.getAnimation}. * Information about an animation resource, created by {@link AnimationCache.getAnimation}.
* *
* @class AnimationObject * @class AnimationObject
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity
@ -57,9 +58,10 @@ public:
}; };
/**jsdoc /**jsdoc
* Joint rotations in one frame of an animation. * Joint rotations in one frame of an {@link AnimationObject}.
* *
* @class AnimationFrameObject * @class AnimationFrameObject
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity

View file

@ -42,9 +42,10 @@ class AudioStreamStatsInterface : public QObject {
/**jsdoc /**jsdoc
* Statistics for an audio stream. * Statistics for an audio stream.
* *
* <p>Provided in the {@link AudioStats} API.</p> * <p>Provided in properties of the {@link AudioStats} API.</p>
* *
* @class AudioStats.AudioStreamStats * @class AudioStats.AudioStreamStats
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity

View file

@ -18,7 +18,7 @@
/**jsdoc /**jsdoc
* Audio effect options used by the {@link Audio} API. * Audio effect options used by the {@link Audio} API.
* *
* <p>Create using <code>new AudioEffectOptions(reverbOptions)</code>.</p> * <p>Create using <code>new AudioEffectOptions(...)</code>.</p>
* *
* @class AudioEffectOptions * @class AudioEffectOptions
* @param {AudioEffectOptions.ReverbOptions} [reverbOptions=null] - Reverberation options. * @param {AudioEffectOptions.ReverbOptions} [reverbOptions=null] - Reverberation options.

View file

@ -130,6 +130,7 @@ typedef QSharedPointer<Sound> SharedSoundPointer;
* </ul> * </ul>
* *
* @class SoundObject * @class SoundObject
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity

View file

@ -54,6 +54,7 @@ class UserInputMapper;
* </ul> * </ul>
* *
* @class MappingObject * @class MappingObject
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity

View file

@ -36,6 +36,7 @@ class ScriptingInterface;
* types.<p> * types.<p>
* *
* @class RouteObject * @class RouteObject
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity

View file

@ -95,6 +95,7 @@ class ScriptableResource : public QObject {
* {@link ModelCache.prefetch}, {@link SoundCache.prefetch}, or {@link TextureCache.prefetch}. * {@link ModelCache.prefetch}, {@link SoundCache.prefetch}, or {@link TextureCache.prefetch}.
* *
* @class ResourceObject * @class ResourceObject
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity

View file

@ -87,7 +87,6 @@ public:
* </ul> * </ul>
* *
* @class ScriptsModel * @class ScriptsModel
* @hideconstructor * @hideconstructor
* *
* @hifi-interface * @hifi-interface

View file

@ -21,7 +21,7 @@
* near-complete implementation of the WebSocket API described in the Mozilla docs: * near-complete implementation of the WebSocket API described in the Mozilla docs:
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSocket">https://developer.mozilla.org/en-US/docs/Web/API/WebSocket</a>. * <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSocket">https://developer.mozilla.org/en-US/docs/Web/API/WebSocket</a>.
* *
* <p>Constructed by <code>new WebSocket(...)</code> in Interface, client entity, avatar, and server entity scripts, or the * <p>Create using <code>new WebSocket(...)</code> in Interface, client entity, avatar, and server entity scripts, or the
* {@link WebSocketServer} class in server entity and assignment client scripts. * {@link WebSocketServer} class in server entity and assignment client scripts.
* *
* <p><strong>Note:</strong> Does not support secure, <code>wss:</code> protocol.</p> * <p><strong>Note:</strong> Does not support secure, <code>wss:</code> protocol.</p>

View file

@ -20,6 +20,8 @@
/**jsdoc /**jsdoc
* Manages {@link WebSocket}s in server entity and assignment client scripts. * Manages {@link WebSocket}s in server entity and assignment client scripts.
* *
* <p>Create using <code>new WebSocketServer(...)</code>.</p>
*
* @class WebSocketServer * @class WebSocketServer
* *
* @hifi-server-entity * @hifi-server-entity

View file

@ -61,6 +61,8 @@ XMlHttpRequest.getResponseHeader(QString) function
* the Mozilla docs: * the Mozilla docs:
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest">https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest</a>. * <a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest">https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest</a>.
* *
* <p>Create using <code>new XMLHttpRequest(...)</code>.</p>
*
* @class XMLHttpRequest * @class XMLHttpRequest
* *
* @hifi-interface * @hifi-interface

View file

@ -690,6 +690,7 @@ using MeshPointer = std::shared_ptr<graphics::Mesh>;
* A mesh, such as returned by {@link Entities.getMeshes} or {@link Model} API functions. * A mesh, such as returned by {@link Entities.getMeshes} or {@link Model} API functions.
* *
* @class MeshProxy * @class MeshProxy
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity

View file

@ -14,6 +14,8 @@
/**jsdoc /**jsdoc
* A <code>OverlayWebWindow</code> displays an HTML window inside Interface. * A <code>OverlayWebWindow</code> displays an HTML window inside Interface.
* *
* <p>Create using <code>new OverlayWebWindow(...)</code>.</p>
*
* @class OverlayWebWindow * @class OverlayWebWindow
* @param {string|OverlayWindow.Properties} [titleOrProperties="WebWindow"] - The window's title or initial property values. * @param {string|OverlayWindow.Properties} [titleOrProperties="WebWindow"] - The window's title or initial property values.
* @param {string} [source="about:blank"] - The URL of the HTML to display. Not used unless the first parameter is the window * @param {string} [source="about:blank"] - The URL of the HTML to display. Not used unless the first parameter is the window

View file

@ -26,6 +26,8 @@ class QScriptContext;
* control is defined by a "WebView.qml" file included in the Interface install.) Alternatively, an {@link OverlayWebWindow} * control is defined by a "WebView.qml" file included in the Interface install.) Alternatively, an {@link OverlayWebWindow}
* can be used for HTML-based windows.</p> * can be used for HTML-based windows.</p>
* *
* <p>Create using <code>new OverlayWindow(...)</code>.</p>
*
* @class OverlayWindow * @class OverlayWindow
* @param {string|OverlayWindow.Properties} [titleOrProperties="WebWindow"] - The window's title or initial property values. * @param {string|OverlayWindow.Properties} [titleOrProperties="WebWindow"] - The window's title or initial property values.
* @param {string} [source] - The source of the QML to display. Not used unless the first parameter is the window title. * @param {string} [source] - The source of the QML to display. Not used unless the first parameter is the window title.

View file

@ -217,6 +217,7 @@ Q_DECLARE_METATYPE(TabletButtonsProxyModel*);
* <p>Retrieve an existing tablet or create a new tablet using {@link Tablet.getTablet}.</p> * <p>Retrieve an existing tablet or create a new tablet using {@link Tablet.getTablet}.</p>
* *
* @class TabletProxy * @class TabletProxy
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity
@ -586,6 +587,7 @@ Q_DECLARE_METATYPE(TabletProxy*);
* <p>Create a new button using {@link TabletProxy#addButton}.</p> * <p>Create a new button using {@link TabletProxy#addButton}.</p>
* *
* @class TabletButtonProxy * @class TabletButtonProxy
* @hideconstructor
* *
* @hifi-interface * @hifi-interface
* @hifi-client-entity * @hifi-client-entity

View file

@ -75,7 +75,7 @@
<?js doc.modules.forEach(function(module) { ?> <?js doc.modules.forEach(function(module) { ?>
<?js= self.partial('methodList.tmpl', module) ?> <?js= self.partial('methodList.tmpl', module) ?>
<?js }) ?> <?js }) ?>
<?js } else if (doc.kind === 'class' || (doc.kind === 'namespace' && doc.signature)) { ?> <?js } else if ((doc.kind === 'class' && !doc.hideconstructor) || (doc.kind === 'namespace' && doc.signature)) { ?>
<h3>Description</h3> <h3>Description</h3>
<div><?js= doc.description ?></div> <div><?js= doc.description ?></div>
<?js= self.partial('details.tmpl', doc) ?> <?js= self.partial('details.tmpl', doc) ?>

View file

@ -19,7 +19,7 @@ if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvalu
<?js <?js
var properties = data.properties; var properties = data.properties;
if (properties && properties.length && properties.forEach && !data.hideconstructor) { if (properties && properties.length && properties.forEach) {
?> ?>
<h3 class="propsHeading" id="props">Properties</h3> <h3 class="propsHeading" id="props">Properties</h3>