changeset 1233:eac00401cb96

fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Dec 2014 17:18:18 +0100
parents f1c01451a8ee
children a65ad39596cb
files OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Plugins/OrthancCPlugin/OrthancCPlugin.h
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Thu Dec 04 17:04:40 2014 +0100
+++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp	Thu Dec 04 17:18:18 2014 +0100
@@ -122,6 +122,8 @@
   {
     Json::Value v = Json::arrayValue;
 
+    v.append("explorer.js");
+
     if (OrthancRestApi::GetContext(call).HasPlugins())
     {
       std::list<std::string> plugins;
--- a/Plugins/OrthancCPlugin/OrthancCPlugin.h	Thu Dec 04 17:04:40 2014 +0100
+++ b/Plugins/OrthancCPlugin/OrthancCPlugin.h	Thu Dec 04 17:18:18 2014 +0100
@@ -1760,6 +1760,15 @@
   }
 
 
+  /**
+   * @brief Set a description for this plugin.
+   *
+   * Set a description for this plugin. It is displayed in the
+   * "Plugins" page of Orthanc Explorer.
+   * 
+   * @param context The Orthanc plugin context, as received by OrthancPluginInitialize().
+   * @param description The description.
+   **/ 
   ORTHANC_PLUGIN_INLINE void OrthancPluginSetDescription(
     OrthancPluginContext*  context,
     const char*            description)
@@ -1773,6 +1782,15 @@
   }
 
 
+  /**
+   * @brief Extend the JavaScript code of Orthanc Explorer.
+   *
+   * Add JavaScript code to customize the default behavior of Orthanc
+   * Explorer. This can for instance be used to add new buttons.
+   * 
+   * @param context The Orthanc plugin context, as received by OrthancPluginInitialize().
+   * @param javascript The custom JavaScript code.
+   **/ 
   ORTHANC_PLUGIN_INLINE void OrthancPluginExtendOrthancExplorer(
     OrthancPluginContext*  context,
     const char*            javascript)