[Kst] branches/work/kst/1.6/kst/src/extensions/js

Andrew Walker arwalker at sumusltd.com
Tue Nov 20 23:08:15 CET 2007


SVN commit 739355 by arwalker:

first draft of elog functionality in javaScript

 M  +2 -1      Makefile.am  
 M  +20 -3     bind_axis.h  
 A             bind_elog.cpp   [License: GPL (v2+)]
 A             bind_elog.h   [License: GPL (v2+)]
 M  +1 -1      bind_file.cpp  
 M  +1 -1      bind_file.h  
 M  +2 -0      js.cpp  


--- branches/work/kst/1.6/kst/src/extensions/js/Makefile.am #739354:739355
@@ -93,7 +93,8 @@
 			    bind_picture.cpp \
 			    bind_arrow.cpp \
 			    bind_line.cpp \
-			    bind_file.cpp
+			    bind_file.cpp \
+			    bind_elog.cpp
 
 #			    js_dataobject.cpp \
 #			    bind_jsdataobject.cpp
--- branches/work/kst/1.6/kst/src/extensions/js/bind_axis.h #739354:739355
@@ -64,82 +64,98 @@
     KJS::Value scaleRange(KJS::ExecState *exec, const KJS::List& args);
 
     // properties
+
     /* @property boolean log
        @description True if the axis is in logarithm mode.
     */
     KJS::Value log(KJS::ExecState *exec) const;
     void setLog(KJS::ExecState *exec, const KJS::Value& value);
+
     /* @property boolean suppressed
        @description True if this axis is suppressed.
     */
     void setSuppressed(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value suppressed(KJS::ExecState *exec) const;
+
     /* @property boolean oppositeSuppressed
        @description True if the opposite axis is suppressed.  (Right X or top Y)
     */
     void setOppositeSuppressed(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value oppositeSuppressed(KJS::ExecState *exec) const;
+
     /* @property boolean offsetMode
        @description True if this axis is in base + offset mode.
     */
     void setOffsetMode(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value offsetMode(KJS::ExecState *exec) const;
+
     /* @property boolean reversed
        @description True if this axis is reversed.
     */
     void setReversed(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value reversed(KJS::ExecState *exec) const;
+
     /* @property boolean majorGridLines
        @description True if this axis shows major grid lines.
     */
     void setMajorGridLines(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value majorGridLines(KJS::ExecState *exec) const;
+
     /* @property boolean minorGridLines
        @description True if this axis shows minor grid lines.
     */
     void setMinorGridLines(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value minorGridLines(KJS::ExecState *exec) const;
+
     /* @property string transformation
        @description The transformation expression for this axis.
     */
     void setTransformation(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value transformation(KJS::ExecState *exec) const;
+
     /* @property boolean innerTicks
        @description True if tick marks are displayed inside the plot.
     */
     void setInnerTicks(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value innerTicks(KJS::ExecState *exec) const;
+
     /* @property boolean outerTicks
        @description True if tick marks are displayed outside the plot.
     */
     void setOuterTicks(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value outerTicks(KJS::ExecState *exec) const;
+
     /* @property string label
        @description The label for this axis.
     */
     void setLabel(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value label(KJS::ExecState *exec) const;
+
     /* @property string type
        @readonly
        @description The type of axis - X or Y presently.
     */
     KJS::Value type(KJS::ExecState *exec) const;
+
     /* @property string majorGridColor
        @description The color for the major grid lines.
      */
     void setMajorGridColor(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value majorGridColor(KJS::ExecState *exec) const;
+
     /* @property string minorGridColor
        @description The color for the minor grid lines.
      */
     void setMinorGridColor(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value minorGridColor(KJS::ExecState *exec) const;
+
     /* @property number minorTickCount
        @description The number of minor ticks between two major ticks.  The
                     special value -1 forces Kst to determine this automatically.
      */
     void setMinorTickCount(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value minorTickCount(KJS::ExecState *exec) const;
+
     /* @property number majorTickDensity
        @description The density of major tick markers along this axis.  Value
                     must be one of:
@@ -152,6 +168,7 @@
      */
     void setMajorTickDensity(KJS::ExecState *exec, const KJS::Value& value);
     KJS::Value majorTickDensity(KJS::ExecState *exec) const;
+
     /* @property number scaleMode
        @readonly
        @description The type of scaling done on the axis.
@@ -167,16 +184,19 @@
                     </ul>
      */
     KJS::Value scaleMode(KJS::ExecState *exec) const;
+
     /* @property TimeInterpretation interpretation
        @readonly
        @description The method with which the axis is interpreted and times are
                     displayed.
      */
     KJS::Value interpretation(KJS::ExecState *exec) const;
+
     /* @property AxisLabel label
        @description The label for this axis.
     */
     KJS::Value title(KJS::ExecState *exec) const;
+
     /* @property AxisTickLabel label
        @description The tick label for this axis.
     */
@@ -190,7 +210,4 @@
     bool _xAxis;
 };
 
-
 #endif
-
-// vim: ts=2 sw=2 et
--- branches/work/kst/1.6/kst/src/extensions/js/bind_file.cpp #739354:739355
@@ -2,7 +2,7 @@
                               bind_file.cpp
                              -------------------
     begin                : Oct 18 2007
-    copyright            : (C) 2005 The University of British Columbia
+    copyright            : (C) 2007 The University of British Columbia
     email                :
  ***************************************************************************/
 
--- branches/work/kst/1.6/kst/src/extensions/js/bind_file.h #739354:739355
@@ -2,7 +2,7 @@
                                bind_file.h
                              -------------------
     begin                : Oct 18 2007
-    copyright            : (C) 2005 The University of British Columbia
+    copyright            : (C) 2007 The University of British Columbia
     email                :
  ***************************************************************************/
 
--- branches/work/kst/1.6/kst/src/extensions/js/js.cpp #739354:739355
@@ -53,6 +53,7 @@
 #include "bind_debug.h"
 #include "bind_equation.h"
 #include "bind_ellipse.h"
+#include "bind_elog.h"
 #include "bind_file.h"
 #include "bind_histogram.h"
 #include "bind_image.h"
@@ -214,6 +215,7 @@
   new KstBindKst(exec, &globalObj, this);
 
   new KstBindFile(exec, &globalObj);
+  new KstBindELOG(exec, &globalObj);
 
   globalObj.put(exec, "loadScript", KJS::Object(new LoadScript(this)));
 


More information about the Kst mailing list