Polyline structure for storing datatips. 29/12829/3
Gustavo LIBOTTE [Sat, 9 Nov 2013 19:33:23 +0000 (17:33 -0200)]
Change-Id: I0e5474bb53f43decaf6972e264c95760cd252ec4

20 files changed:
scilab/modules/graphic_objects/includes/graphicObjectProperties.h
scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/datatip/Datatip.java
scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/graphicController/GraphicController.java
scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/graphicObject/GraphicObjectProperties.java
scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/polyline/Polyline.java
scilab/modules/graphic_objects/src/scripts/propertiesMap.properties
scilab/modules/graphics/Makefile.am
scilab/modules/graphics/Makefile.in
scilab/modules/graphics/graphics.vcxproj
scilab/modules/graphics/graphics.vcxproj.filters
scilab/modules/graphics/macros/%h_load.sci
scilab/modules/graphics/macros/%h_p.sci
scilab/modules/graphics/macros/%h_save.sci
scilab/modules/graphics/src/c/getHandleProperty/GetHashTable.c
scilab/modules/graphics/src/c/getHandleProperty/SetHashTable.c
scilab/modules/graphics/src/c/getHandleProperty/getHandleProperty.h
scilab/modules/graphics/src/c/getHandleProperty/get_children_property.c
scilab/modules/graphics/src/c/getHandleProperty/get_datatips_property.c [new file with mode: 0644]
scilab/modules/graphics/src/c/getHandleProperty/setHandleProperty.h
scilab/modules/graphics/src/c/getHandleProperty/set_datatips_property.c [new file with mode: 0644]

index 9425f46..974e6ff 100755 (executable)
 #define __GO_MATERIAL_SHININESS__ 316
 #define __GO_LIGHT__ 317
 #define __GO_LIGHT_TYPE__ 318
+#define __GO_DATATIPS__ 319
+#define __GO_DATATIPS_COUNT__ 320
 
 #endif /* !__GRAPHIC_OBJECT_PROPERTIES_H__ */
index a91431c..0098954 100755 (executable)
@@ -82,7 +82,7 @@ public class Datatip extends Text {
         interpMode = true;
         displayFnc = "";
         setVisible(true);
-        setHidden(true); /* To avoid to see the datatips in Scilab when reading 'children' property */
+        setHidden(false); /* To avoid to see the datatips in Scilab when reading 'children' property */
         setBox(true);
         setLineMode(true);
         setFillMode(true);
index ff6e49d..705f2a1 100644 (file)
@@ -355,10 +355,12 @@ public class GraphicController {
         /* Object updates can now be performed. */
         if (oldParent != null && oldParent instanceof Integer && ((Integer)oldParent) != 0) {
             objectUpdate((Integer)oldParent, GraphicObjectProperties.__GO_CHILDREN__);
+            objectUpdate((Integer)oldParent, GraphicObjectProperties.__GO_DATATIPS__);
         }
 
         if (parentId != null && parentId != 0) {
             objectUpdate(parentId, GraphicObjectProperties.__GO_CHILDREN__);
+            objectUpdate(parentId, GraphicObjectProperties.__GO_DATATIPS__);
         }
 
         // Useless (already done in setProperty(childId, GraphicObjectProperties.__GO_PARENT__, parentId);)
@@ -387,6 +389,7 @@ public class GraphicController {
             //setProperty(id, GraphicObjectProperties.__GO_PARENT__, "");
 
             objectUpdate(parentUID, GraphicObjectProperties.__GO_CHILDREN__);
+            objectUpdate(parentUID, GraphicObjectProperties.__GO_DATATIPS__);
             //objectUpdate(id, GraphicObjectProperties.__GO_PARENT__);
         }
 
index 86ea0a1..001ba08 100755 (executable)
@@ -339,5 +339,7 @@ public class GraphicObjectProperties {
     public static final int __GO_MATERIAL_SHININESS__ = 316;
     public static final int __GO_LIGHT__ = 317;
     public static final int __GO_LIGHT_TYPE__ = 318;
+    public static final int __GO_DATATIPS__ = 319;
+    public static final int __GO_DATATIPS_COUNT__ = 320;
 
 }
index c276efd..a818fcf 100644 (file)
@@ -18,6 +18,10 @@ import org.scilab.modules.graphic_objects.graphicObject.GraphicObjectProperties;
 import org.scilab.modules.graphic_objects.graphicObject.Visitor;
 import org.scilab.modules.graphic_objects.graphicObject.GraphicObject.UpdateStatus;
 
+import java.util.Arrays;
+import java.util.LinkedList;
+import java.util.List;
+
 import static org.scilab.modules.graphic_objects.graphicObject.GraphicObjectProperties.*;
 
 /**
@@ -31,7 +35,7 @@ public class Polyline extends ClippableContouredObject {
     /** Polyline properties names */
     private enum PolylineProperty { CLOSED, ARROWSIZEFACTOR, POLYLINESTYLE,
                                     INTERPCOLORVECTOR, INTERPCOLORVECTORSET, INTERPCOLORMODE,
-                                    XSHIFT, YSHIFT, ZSHIFT, BARWIDTH
+                                    XSHIFT, YSHIFT, ZSHIFT, BARWIDTH, DATATIPS, DATATIPSCOUNT
                                   };
 
     /** Specifies whether the polyline is closed */
@@ -63,6 +67,9 @@ public class Polyline extends ClippableContouredObject {
 
     /** Bar width */
     private double barWidth;
+    
+    /** Datatips objects list */
+    private List <Integer> datatips;
 
     /** Constructor */
     public Polyline() {
@@ -77,6 +84,7 @@ public class Polyline extends ClippableContouredObject {
         yShift = null;
         zShift = null;
         barWidth = 0.0;
+        datatips = new LinkedList<Integer>();
     }
 
     @Override
@@ -111,6 +119,10 @@ public class Polyline extends ClippableContouredObject {
                 return PolylineProperty.ZSHIFT;
             case __GO_BAR_WIDTH__ :
                 return PolylineProperty.BARWIDTH;
+            case __GO_DATATIPS__ :
+                return PolylineProperty.DATATIPS;
+            case __GO_DATATIPS_COUNT__ :
+                return PolylineProperty.DATATIPSCOUNT;
             default :
                 return super.getPropertyFromName(propertyName);
         }
@@ -142,6 +154,10 @@ public class Polyline extends ClippableContouredObject {
             return getZShift();
         } else if (property == PolylineProperty.BARWIDTH) {
             return getBarWidth();
+        } else if (property == PolylineProperty.DATATIPS) {
+            return getDatatips();
+        } else if (property == PolylineProperty.DATATIPSCOUNT) {
+            return datatips.size();
         } else {
             return super.getProperty(property);
         }
@@ -175,6 +191,8 @@ public class Polyline extends ClippableContouredObject {
                 setZShift((double[]) value);
             } else if (property == PolylineProperty.BARWIDTH) {
                 setBarWidth((Double) value);
+            } else if (property == PolylineProperty.DATATIPS) {
+                setDatatips((Integer[]) value);
             } else {
                 return super.setProperty(property, value);
             }
@@ -358,5 +376,28 @@ public class Polyline extends ClippableContouredObject {
     public Integer getType() {
         return GraphicObjectProperties.__GO_POLYLINE__;
     }
+    
+    /**
+     * @return datatips
+     */
+    public Integer[] getDatatips() {
+        return datatips.toArray(new Integer[datatips.size()]);
+    }
+    
+    /**
+     * @param datatips the datatips to set
+     */
+    private UpdateStatus setDatatips(List<Integer> datatips) {
+        this.datatips = datatips;
+        return UpdateStatus.Success;
+    }
+
+    /**
+     * @param datatips the datatips to set
+     */
+    public UpdateStatus setDatatips(Integer[] datatips) {
+        this.datatips = new LinkedList<Integer>(Arrays.asList(datatips));
+        return UpdateStatus.Success;
+    }
 
 }
index f4174ac..37ac9c1 100644 (file)
@@ -41,6 +41,7 @@ src/c/getHandleProperty/get_font_foreground_property.c \
 src/c/getHandleProperty/get_bar_layout_property.c \
 src/c/getHandleProperty/get_current_axes_property.c \
 src/c/getHandleProperty/get_bar_width_property.c \
+src/c/getHandleProperty/get_datatips_property.c \
 src/c/getHandleProperty/get_font_color_property.c \
 src/c/getHandleProperty/get_default_axes_property.c \
 src/c/getHandleProperty/get_y_shift_property.c \
@@ -201,6 +202,7 @@ src/c/getHandleProperty/set_font_foreground_property.c \
 src/c/getHandleProperty/set_text_box_mode_property.c \
 src/c/getHandleProperty/set_bar_layout_property.c \
 src/c/getHandleProperty/set_bar_width_property.c \
+src/c/getHandleProperty/set_datatips_property.c \
 src/c/getHandleProperty/SetPropertyStatus.c \
 src/c/getHandleProperty/set_font_style_property.c \
 src/c/getHandleProperty/set_surface_mode_property.c \
index 1c37095..6c9682b 100644 (file)
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.14 from Makefile.am.
+# Makefile.in generated by automake 1.13 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+# Copyright (C) 1994-2012 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 
 
 VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
+am__make_dryrun = \
+  { \
+    am__dry=no; \
     case $$MAKEFLAGS in \
       *\\[\ \  ]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
+        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
+          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+      *) \
+        for am__flg in $$MAKEFLAGS; do \
+          case $$am__flg in \
+            *=*|--*) ;; \
+            *n*) am__dry=yes; break;; \
+          esac; \
+        done;; \
     esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+    test $$am__dry = yes; \
+  }
 pkgdatadir = $(datadir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
 pkglibdir = $(libdir)/@PACKAGE@
@@ -187,6 +159,7 @@ am__objects_1 = libscigraphics_algo_la-GetCommandArg.lo \
        libscigraphics_algo_la-get_bar_layout_property.lo \
        libscigraphics_algo_la-get_current_axes_property.lo \
        libscigraphics_algo_la-get_bar_width_property.lo \
+       libscigraphics_algo_la-get_datatips_property.lo \
        libscigraphics_algo_la-get_font_color_property.lo \
        libscigraphics_algo_la-get_default_axes_property.lo \
        libscigraphics_algo_la-get_y_shift_property.lo \
@@ -347,6 +320,7 @@ am__objects_1 = libscigraphics_algo_la-GetCommandArg.lo \
        libscigraphics_algo_la-set_text_box_mode_property.lo \
        libscigraphics_algo_la-set_bar_layout_property.lo \
        libscigraphics_algo_la-set_bar_width_property.lo \
+       libscigraphics_algo_la-set_datatips_property.lo \
        libscigraphics_algo_la-SetPropertyStatus.lo \
        libscigraphics_algo_la-set_font_style_property.lo \
        libscigraphics_algo_la-set_surface_mode_property.lo \
@@ -926,6 +900,7 @@ src/c/getHandleProperty/get_font_foreground_property.c \
 src/c/getHandleProperty/get_bar_layout_property.c \
 src/c/getHandleProperty/get_current_axes_property.c \
 src/c/getHandleProperty/get_bar_width_property.c \
+src/c/getHandleProperty/get_datatips_property.c \
 src/c/getHandleProperty/get_font_color_property.c \
 src/c/getHandleProperty/get_default_axes_property.c \
 src/c/getHandleProperty/get_y_shift_property.c \
@@ -1086,6 +1061,7 @@ src/c/getHandleProperty/set_font_foreground_property.c \
 src/c/getHandleProperty/set_text_box_mode_property.c \
 src/c/getHandleProperty/set_bar_layout_property.c \
 src/c/getHandleProperty/set_bar_width_property.c \
+src/c/getHandleProperty/set_datatips_property.c \
 src/c/getHandleProperty/SetPropertyStatus.c \
 src/c/getHandleProperty/set_font_style_property.c \
 src/c/getHandleProperty/set_surface_mode_property.c \
@@ -1540,13 +1516,10 @@ clean-pkglibLTLIBRARIES:
          echo rm -f $${locs}; \
          rm -f $${locs}; \
        }
-
 libscigraphics-algo.la: $(libscigraphics_algo_la_OBJECTS) $(libscigraphics_algo_la_DEPENDENCIES) $(EXTRA_libscigraphics_algo_la_DEPENDENCIES) 
        $(AM_V_CCLD)$(LINK) $(am_libscigraphics_algo_la_rpath) $(libscigraphics_algo_la_OBJECTS) $(libscigraphics_algo_la_LIBADD) $(LIBS)
-
 libscigraphics-disable.la: $(libscigraphics_disable_la_OBJECTS) $(libscigraphics_disable_la_DEPENDENCIES) $(EXTRA_libscigraphics_disable_la_DEPENDENCIES) 
        $(AM_V_CCLD)$(LINK) -rpath $(pkglibdir) $(libscigraphics_disable_la_OBJECTS) $(libscigraphics_disable_la_LIBADD) $(LIBS)
-
 libscigraphics.la: $(libscigraphics_la_OBJECTS) $(libscigraphics_la_DEPENDENCIES) $(EXTRA_libscigraphics_la_DEPENDENCIES) 
        $(AM_V_CCLD)$(LINK) $(am_libscigraphics_la_rpath) $(libscigraphics_la_OBJECTS) $(libscigraphics_la_LIBADD) $(LIBS)
 
@@ -1626,6 +1599,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-get_data_mapping_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-get_data_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-get_datatip_property.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-get_datatips_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-get_default_axes_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-get_default_figure_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-get_diffuse_color_property.Plo@am__quote@
@@ -1779,6 +1753,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-set_data_mapping_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-set_data_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-set_datatip_property.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-set_datatips_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-set_default_values_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-set_diffuse_color_property.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libscigraphics_algo_la-set_direction_property.Plo@am__quote@
@@ -1948,14 +1923,14 @@ distclean-compile:
 @am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
 
 .c.obj:
 @am__fastdepCC_TRUE@   $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
 @am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
 
 .c.lo:
 @am__fastdepCC_TRUE@   $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -2076,6 +2051,13 @@ libscigraphics_algo_la-get_bar_width_property.lo: src/c/getHandleProperty/get_ba
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscigraphics_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libscigraphics_algo_la-get_bar_width_property.lo `test -f 'src/c/getHandleProperty/get_bar_width_property.c' || echo '$(srcdir)/'`src/c/getHandleProperty/get_bar_width_property.c
 
+libscigraphics_algo_la-get_datatips_property.lo: src/c/getHandleProperty/get_datatips_property.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscigraphics_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libscigraphics_algo_la-get_datatips_property.lo -MD -MP -MF $(DEPDIR)/libscigraphics_algo_la-get_datatips_property.Tpo -c -o libscigraphics_algo_la-get_datatips_property.lo `test -f 'src/c/getHandleProperty/get_datatips_property.c' || echo '$(srcdir)/'`src/c/getHandleProperty/get_datatips_property.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/libscigraphics_algo_la-get_datatips_property.Tpo $(DEPDIR)/libscigraphics_algo_la-get_datatips_property.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='src/c/getHandleProperty/get_datatips_property.c' object='libscigraphics_algo_la-get_datatips_property.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscigraphics_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libscigraphics_algo_la-get_datatips_property.lo `test -f 'src/c/getHandleProperty/get_datatips_property.c' || echo '$(srcdir)/'`src/c/getHandleProperty/get_datatips_property.c
+
 libscigraphics_algo_la-get_font_color_property.lo: src/c/getHandleProperty/get_font_color_property.c
 @am__fastdepCC_TRUE@   $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscigraphics_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libscigraphics_algo_la-get_font_color_property.lo -MD -MP -MF $(DEPDIR)/libscigraphics_algo_la-get_font_color_property.Tpo -c -o libscigraphics_algo_la-get_font_color_property.lo `test -f 'src/c/getHandleProperty/get_font_color_property.c' || echo '$(srcdir)/'`src/c/getHandleProperty/get_font_color_property.c
 @am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/libscigraphics_algo_la-get_font_color_property.Tpo $(DEPDIR)/libscigraphics_algo_la-get_font_color_property.Plo
@@ -3196,6 +3178,13 @@ libscigraphics_algo_la-set_bar_width_property.lo: src/c/getHandleProperty/set_ba
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscigraphics_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libscigraphics_algo_la-set_bar_width_property.lo `test -f 'src/c/getHandleProperty/set_bar_width_property.c' || echo '$(srcdir)/'`src/c/getHandleProperty/set_bar_width_property.c
 
+libscigraphics_algo_la-set_datatips_property.lo: src/c/getHandleProperty/set_datatips_property.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscigraphics_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libscigraphics_algo_la-set_datatips_property.lo -MD -MP -MF $(DEPDIR)/libscigraphics_algo_la-set_datatips_property.Tpo -c -o libscigraphics_algo_la-set_datatips_property.lo `test -f 'src/c/getHandleProperty/set_datatips_property.c' || echo '$(srcdir)/'`src/c/getHandleProperty/set_datatips_property.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/libscigraphics_algo_la-set_datatips_property.Tpo $(DEPDIR)/libscigraphics_algo_la-set_datatips_property.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='src/c/getHandleProperty/set_datatips_property.c' object='libscigraphics_algo_la-set_datatips_property.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscigraphics_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libscigraphics_algo_la-set_datatips_property.lo `test -f 'src/c/getHandleProperty/set_datatips_property.c' || echo '$(srcdir)/'`src/c/getHandleProperty/set_datatips_property.c
+
 libscigraphics_algo_la-SetPropertyStatus.lo: src/c/getHandleProperty/SetPropertyStatus.c
 @am__fastdepCC_TRUE@   $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscigraphics_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libscigraphics_algo_la-SetPropertyStatus.lo -MD -MP -MF $(DEPDIR)/libscigraphics_algo_la-SetPropertyStatus.Tpo -c -o libscigraphics_algo_la-SetPropertyStatus.lo `test -f 'src/c/getHandleProperty/SetPropertyStatus.c' || echo '$(srcdir)/'`src/c/getHandleProperty/SetPropertyStatus.c
 @am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/libscigraphics_algo_la-SetPropertyStatus.Tpo $(DEPDIR)/libscigraphics_algo_la-SetPropertyStatus.Plo
index a9d5d6f..f597ca0 100644 (file)
@@ -233,6 +233,7 @@ lib /DEF:"$(ProjectDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MA
     <ClCompile Include="src\c\getHandleProperty\get_background_property.c" />
     <ClCompile Include="src\c\getHandleProperty\get_bar_layout_property.c" />
     <ClCompile Include="src\c\getHandleProperty\get_bar_width_property.c" />
+    <ClCompile Include="src\c\getHandleProperty\get_datatips_property.c" />
     <ClCompile Include="src\c\getHandleProperty\get_box_property.c" />
     <ClCompile Include="src\c\getHandleProperty\get_callback_property.c" />
     <ClCompile Include="src\c\getHandleProperty\get_callback_type_property.c" />
@@ -468,6 +469,7 @@ lib /DEF:"$(ProjectDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MA
     <ClCompile Include="src\c\getHandleProperty\set_background_property.c" />
     <ClCompile Include="src\c\getHandleProperty\set_bar_layout_property.c" />
     <ClCompile Include="src\c\getHandleProperty\set_bar_width_property.c" />
+    <ClCompile Include="src\c\getHandleProperty\set_datatips_property.c" />
     <ClCompile Include="src\c\getHandleProperty\set_box_property.c" />
     <ClCompile Include="src\c\getHandleProperty\set_callback_property.c" />
     <ClCompile Include="src\c\getHandleProperty\set_callback_type_property.c" />
index fcaa332..5cbb8a1 100644 (file)
     <ClCompile Include="src\c\getHandleProperty\get_bar_width_property.c">
       <Filter>Source Files</Filter>
     </ClCompile>
+    <ClCompile Include="src\c\getHandleProperty\get_datatips_property.c">
+      <Filter>Source Files</Filter>
+    </ClCompile>
     <ClCompile Include="src\c\getHandleProperty\get_box_property.c">
       <Filter>Source Files</Filter>
     </ClCompile>
     <ClCompile Include="src\c\getHandleProperty\set_bar_width_property.c">
       <Filter>Source Files</Filter>
     </ClCompile>
+    <ClCompile Include="src\c\getHandleProperty\set_datatips_property.c">
+      <Filter>Source Files</Filter>
+    </ClCompile>
     <ClCompile Include="src\c\getHandleProperty\set_box_property.c">
       <Filter>Source Files</Filter>
     </ClCompile>
index 063cd21..e5bb75a 100644 (file)
@@ -636,6 +636,44 @@ function [h,immediate_drawing] = load_graphichandle(fd)
 
         load_user_data(fd) // user_data
 
+    case "Datatip"
+        if is_higher_than([5 5 0 1]) then
+            visible=toggle(mget(1,characterFormat,fd)) // visible
+            sz = mget(2,characterFormat,fd)
+            tip_data = matrix(mget(prod(sz),"dl",fd),sz(1),-1) // tip_data
+            tip_box_mode = ascii(mget(mget(1,characterFormat,fd),characterFormat,fd)); // tip_box_mode
+            tip_label_mode = ascii(mget(mget(1,characterFormat,fd),characterFormat,fd)); // tip_label_mode
+            tip_orientation = mget(1,characterFormat,fd); // tip_orientation
+            tip_3component = ascii(mget(mget(1,characterFormat,fd),characterFormat,fd)); // tip_3component
+            tip_auto_orientation = ascii(mget(mget(1,characterFormat,fd),characterFormat,fd)); // tip_auto_orientation
+            tip_interp_mode = ascii(mget(mget(1,characterFormat,fd),characterFormat,fd)); // tip_interp_mode
+            tip_disp_function = load_text_matrix(fd); // tip_disp_function
+            mark_mode = toggle(mget(1,characterFormat,fd)) // mark_mode
+            mark_style = mget(1,characterFormat,fd); // mark_style
+            if ascii(mget(1,characterFormat,fd))=="t" then // mark_size_unit
+                msu="tabulated"
+            else
+                msu="point";
+            end
+            mark_size = mget(1,characterFormat,fd); // mark_size
+            mark_foreground=mget(1,"il",fd) // mark_foreground
+            mark_background=mget(1,"il",fd) // mark_background
+            tag = ascii(mget(mget(1,characterFormat,fd),characterFormat,fd)) ; // tag
+
+            h=get("hdl");
+            set(h, "font_foreground", mget(1, "il", fd)); // font_foreground
+            set(h,"foreground", mget(1,"il",fd)); // foreground
+            set(h, "background", mget(1, "il", fd)); // background
+            set(h,"mark_mode",mark_mode); // mark_mode
+            set(h,"mark_style",mark_style); // mark_style
+            set(h,"mark_size_unit",msu) // mark_size_unit
+            set(h,"mark_size",mark_size) // mark_size
+            set(h,"mark_foreground",mark_foreground) // mark_foreground
+            set(h,"mark_background",mark_background) // mark_background
+
+            load_user_data(fd) // user_data
+        end
+
     case "Plot3d" then
         visible=toggle(mget(1,characterFormat,fd)) // visible
         surface_mode   = toggle(mget(1,characterFormat,fd)) // surface_mode
index 83464d5..aff1db1 100755 (executable)
@@ -63,6 +63,7 @@ function %h_p(h)
             t=[t;
             "parent: "+h.parent.type
             "children: "+fmtchildren(h.children)
+            "datatips: "+fmtchildren(h.datatips)
             "visible = "+sci2exp(h.visible)
             "data = "+d
             "closed = "+sci2exp(h.closed)
@@ -92,6 +93,36 @@ function %h_p(h)
             "tag = "+h.tag
             ]
 
+            // Datatip
+            // =====================================================================
+
+        case "Datatip"
+            u=h.user_data
+            t=[t;
+            "parent: "+h.parent.type
+            "children: "+fmtchildren(h.children)
+            "visible = "+sci2exp(h.visible)
+            "tip_data = "+sci2exp(h.tip_data)
+            "tip_box_mode = "+sci2exp(h.tip_box_mode)
+            "tip_label_mode = "+sci2exp(h.tip_label_mode)
+            "tip_orientation = "+sci2exp(h.tip_orientation)
+            "tip_3component = "+sci2exp(h.tip_3component)
+            "tip_auto_orientation = "+sci2exp(h.tip_auto_orientation)
+            "tip_interp_mode = "+sci2exp(h.tip_interp_mode)
+            "tip_disp_function = "+sci2exp(h.tip_disp_function)
+            "font_foreground = "+string(h.font_foreground)
+            "foreground = "+string(h.foreground)
+            "background = "+string(h.background)
+            "mark_mode = "+sci2exp(h.mark_mode)
+            "mark_style = "+sci2exp(h.mark_style)
+            "mark_size_unit = "+sci2exp(h.mark_size_unit)
+            "mark_size = "+string(h.mark_size)
+            "mark_foreground = "+string(h.mark_foreground)
+            "mark_background = "+string(h.mark_background)
+            "user_data = "+fmtuser_data(u)
+            "tag = "+h.tag
+            ]
+
             // Compound
             // =====================================================================
 
index 5913fc2..3478809 100644 (file)
@@ -297,6 +297,34 @@ function save_graphichandle(h,fd)
         end
         user_data=h.user_data;save(fd,user_data) // user_data
 
+    case "Datatip"
+        mput(length(h.type),characterFormat,fd); // type
+        mput(ascii(h.type),characterFormat,fd);
+        mput(bool2s(h.visible=="on"),characterFormat,fd) // visible
+        mput(size(h.tip_data),characterFormat,fd); // tip_data
+        mput(h.tip_data,"dl",fd);
+        mput(length(h.tip_box_mode),characterFormat,fd); // tip_box_mode
+        mput(ascii(h.tip_box_mode),characterFormat,fd);
+        mput(length(h.tip_label_mode),characterFormat,fd); // tip_label_mode
+        mput(ascii(h.tip_label_mode),characterFormat,fd);
+        mput(h.tip_orientation,characterFormat,fd) // tip_orientation
+        mput(bool2s(h.tip_3component=="on"),characterFormat,fd) // tip_3component
+        mput(bool2s(h.tip_auto_orientation=="on"),characterFormat,fd) // tip_auto_orientation
+        mput(bool2s(h.tip_interp_mode=="on"),characterFormat,fd) // tip_interp_mode
+        mput(length(ascii(h.tip_disp_function)),stringFormat,fd); // tip_disp_function
+        mput(h.font_foreground, "il", fd) ; // font_foreground
+        mput(h.foreground,"il",fd) // foreground
+        mput(h.background, "il", fd) ; // background
+        mput(bool2s(h.mark_mode=="on"),characterFormat,fd) // mark_mode
+        mput(h.mark_style,characterFormat,fd) // mark_style
+        mput(ascii(part(h.mark_size_unit,1)),characterFormat,fd) // mark_size_unit
+        mput(h.mark_size,characterFormat,fd) // mark_size
+        mput(h.mark_foreground,"il",fd) // mark_foreground
+        mput(h.mark_background,"il",fd) // mark_background
+        user_data=h.user_data;save(fd,user_data) // user_data
+        mput(length(h.tag),"c",fd); // tag
+        mput(ascii(h.tag),"c",fd);
+
     case "Plot3d";
         mput(length(h.type),characterFormat,fd);mput(ascii(h.type),characterFormat,fd); // type
         mput(bool2s(h.visible=="on"),characterFormat,fd) // visible
index e322e63..8d03f8e 100755 (executable)
@@ -46,7 +46,7 @@ typedef struct
  * don't forget to modify it each time the propertyTable
  * is modified.
  */
-#define NB_PROPERTIES 178
+#define NB_PROPERTIES 179
 
 /**
  * list of all property names and associated functions in scilab
@@ -231,7 +231,8 @@ static getHashTableCouple propertyTable[NB_PROPERTIES] =
     {"material_shininess", get_material_shininess_property},
     {"light_type", get_light_type_property},
     {"direction", get_direction_property},
-    {"image_type", get_image_type_property}
+    {"image_type", get_image_type_property},
+    {"datatips", get_datatips_property}
 };
 
 /*--------------------------------------------------------------------------*/
index d5908d9..01f9817 100755 (executable)
@@ -52,7 +52,7 @@ typedef struct
 * don't forget to modify it each time the propertyTable
 * is modified.
 */
-#define NB_PROPERTIES 173
+#define NB_PROPERTIES 174
 
 /**
 * list of all property names and associated functions in scilab
@@ -232,7 +232,8 @@ static setHashTableCouple propertyTable[NB_PROPERTIES] =
     {"material_shininess", set_material_shininess_property},
     {"light_type", set_light_type_property},
     {"direction", set_direction_property},
-    {"image_type", set_image_type_property}
+    {"image_type", set_image_type_property},
+    {"datatips", set_datatips_property}
 };
 
 /*--------------------------------------------------------------------------*/
index f5a7617..b29aa10 100755 (executable)
@@ -197,5 +197,6 @@ int get_light_type_property(void* _pvCtx, int iObjUID);
 int get_direction_property(void* _pvCtx, int iObjUID);
 int get_image_type_property(void* _pvCtx, int iObjUID);
 int get_video_mode_property(void* _pvCtx, int iObjUID);
+int get_datatips_property(void* _pvCtx, int iObjUID);
 
 #endif /* _GET_HANDLE_PROPERTY_H_ */
index 5a5433f..99bbcf4 100644 (file)
@@ -16,7 +16,7 @@
 /*------------------------------------------------------------------------*/
 /* file: get_children_property.c                                          */
 /* desc : function to retrieve in Scilab the children field of a          */
-/*        handle                                                          */
+/*        handle except datatips                                          */
 /*------------------------------------------------------------------------*/
 
 #include "getHandleProperty.h"
@@ -40,7 +40,7 @@ int get_children_property(void* _pvCtx, int iObjUID)
     int* piChildrenUID = NULL;
     int iHidden = 0;
     int *piHidden = &iHidden;
-    int iNotHiddenChildrenNumber = 0;
+    int childrenNumber = 0;
     int iChildIndex = 0;
     int iShowHiddenHandles = 0;
     int *piShowHiddenHandles = &iShowHiddenHandles;
@@ -49,6 +49,9 @@ int get_children_property(void* _pvCtx, int iObjUID)
     int iChildrenCount = 0;
     int *piChildrenCount = &iChildrenCount;
 
+    int type = -1;
+    int *piType = &type;
+
     getGraphicObjectProperty(iObjUID, __GO_CHILDREN_COUNT__, jni_int, (void **)&piChildrenCount);
     if (piChildrenCount == NULL || piChildrenCount[0] == 0)
     {
@@ -62,17 +65,21 @@ int get_children_property(void* _pvCtx, int iObjUID)
 
     if (iShowHiddenHandles == 0)
     {
-        // Find number of not hidden children
+        // Find number of not hidden children except datatips
         for (i = 0; i < piChildrenCount[0]; ++i)
         {
             getGraphicObjectProperty(piChildrenUID[i], __GO_HIDDEN__, jni_bool, (void **)&piHidden);
             if (iHidden == 0)
             {
-                iNotHiddenChildrenNumber++;
+                getGraphicObjectProperty(piChildrenUID[i], __GO_TYPE__, jni_int, (void**) &piType);
+                if (type != __GO_DATATIP__)
+                {
+                    childrenNumber++;
+                }
             }
         }
 
-        if (iNotHiddenChildrenNumber == 0)
+        if (childrenNumber == 0)
         {
             // No Child
             return sciReturnEmptyMatrix(_pvCtx);
@@ -80,21 +87,40 @@ int get_children_property(void* _pvCtx, int iObjUID)
     }
     else
     {
-        iNotHiddenChildrenNumber = piChildrenCount[0];
+        // Find all children except datatips
+        for (i = 0; i < piChildrenCount[0]; ++i)
+        {
+            getGraphicObjectProperty(piChildrenUID[i], __GO_TYPE__, jni_int, (void**) &piType);
+            if (type != __GO_DATATIP__)
+            {
+                childrenNumber++;
+            }
+        }
+
+        if (childrenNumber == 0)
+        {
+            // No Child
+            return sciReturnEmptyMatrix(_pvCtx);
+        }
+
     }
 
-    plChildren = MALLOC(iNotHiddenChildrenNumber * sizeof(long));
+    plChildren = MALLOC(childrenNumber * sizeof(long));
 
     for (i = 0; i < piChildrenCount[0]; ++i)
     {
         getGraphicObjectProperty(piChildrenUID[i], __GO_HIDDEN__, jni_bool, (void **)&piHidden);
         if (iHidden == 0 || iShowHiddenHandles == 1)
         {
-            plChildren[iChildIndex++] = getHandle(piChildrenUID[i]);
+           getGraphicObjectProperty(piChildrenUID[i], __GO_TYPE__, jni_int, (void**) &piType);
+           if (type != __GO_DATATIP__)
+           {
+                plChildren[iChildIndex++] = getHandle(piChildrenUID[i]);
+           }
         }
     }
 
-    status = sciReturnColHandleVector(_pvCtx, plChildren, iNotHiddenChildrenNumber);
+    status = sciReturnColHandleVector(_pvCtx, plChildren, childrenNumber);
     FREE(plChildren);
 
     return status;
diff --git a/scilab/modules/graphics/src/c/getHandleProperty/get_datatips_property.c b/scilab/modules/graphics/src/c/getHandleProperty/get_datatips_property.c
new file mode 100644 (file)
index 0000000..fc85a0f
--- /dev/null
@@ -0,0 +1,119 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2013 - Gustavo Barbosa Libotte <gustavolibotte@gmail.com>
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+/*------------------------------------------------------------------------*/
+/* file: get_datatips_property.c                                          */
+/* desc : function to retrieve in Scilab the datatips polyline's          */
+/*        field handle                                                    */
+/*------------------------------------------------------------------------*/
+
+#include "getHandleProperty.h"
+#include "GetProperty.h"
+#include "returnProperty.h"
+#include "MALLOC.h"
+#include "Scierror.h"
+#include "localization.h"
+#include "HandleManagement.h"
+#include "getConsoleIdentifier.h"
+#include "getGraphicObjectProperty.h"
+#include "graphicObjectProperties.h"
+
+int get_datatips_property(void* _pvCtx, int iObjUID)
+{
+    int i = 0;
+    int status = 0;
+    long *plDatatips = NULL;
+    int* piChildrenUID = NULL;
+    int iHidden = 0;
+    int *piHidden = &iHidden;
+    int datatipsNumber = 0;
+    int iDatatipIndex = 0;
+    int iShowHiddenHandles = 0;
+    int *piShowHiddenHandles = &iShowHiddenHandles;
+    int iChildrenCount = 0;
+    int *piChildrenCount = &iChildrenCount;
+    int type = -1;
+    int *piType = &type;
+
+    getGraphicObjectProperty(iObjUID, __GO_CHILDREN_COUNT__, jni_int, (void **)&piChildrenCount);
+    if (piChildrenCount == NULL || piChildrenCount[0] == 0)
+    {
+        // No Child
+        return sciReturnEmptyMatrix(_pvCtx);
+    }
+
+    getGraphicObjectProperty(iObjUID, __GO_CHILDREN__, jni_int_vector, (void **)&piChildrenUID);
+
+    getGraphicObjectProperty(getConsoleIdentifier(), __GO_SHOWHIDDENHANDLES__, jni_bool, (void **)&piShowHiddenHandles);
+
+    if (iShowHiddenHandles == 0)
+    {
+        // Find number of not hidden datatips
+        for (i = 0; i < piChildrenCount[0]; ++i)
+        {
+            getGraphicObjectProperty(piChildrenUID[i], __GO_HIDDEN__, jni_bool, (void **)&piHidden);
+            if (iHidden == 0)
+            {
+                getGraphicObjectProperty(piChildrenUID[i], __GO_TYPE__, jni_int, (void**) &piType);
+                if (type == __GO_DATATIP__)
+                {
+                    datatipsNumber++;
+                }
+            }
+        }
+
+        if (datatipsNumber == 0)
+        {
+            // No Child
+            return sciReturnEmptyMatrix(_pvCtx);
+        }
+    }
+    else
+    {
+        // Find number of all datatips
+        for (i = 0; i < piChildrenCount[0]; ++i)
+        {
+            getGraphicObjectProperty(piChildrenUID[i], __GO_TYPE__, jni_int, (void**) &piType);
+            if (type == __GO_DATATIP__)
+            {
+                datatipsNumber++;
+            }
+        }
+
+        if (datatipsNumber == 0)
+        {
+            // No Child
+            return sciReturnEmptyMatrix(_pvCtx);
+        }
+
+    }
+
+    plDatatips = MALLOC(datatipsNumber * sizeof(long));
+
+    for (i = 0; i < piChildrenCount[0]; ++i)
+    {
+        getGraphicObjectProperty(piChildrenUID[i], __GO_HIDDEN__, jni_bool, (void **)&piHidden);
+        if (iHidden == 0 || iShowHiddenHandles == 1)
+        {
+           getGraphicObjectProperty(piChildrenUID[i], __GO_TYPE__, jni_int, (void**) &piType);
+           if (type == __GO_DATATIP__)
+           {
+                plDatatips[iDatatipIndex++] = getHandle(piChildrenUID[i]);
+           }
+        }
+    }
+
+    status = sciReturnColHandleVector(_pvCtx, plDatatips, datatipsNumber);
+    FREE(plDatatips);
+
+    return status;
+}
index 96e5958..2e9af5f 100755 (executable)
@@ -198,5 +198,6 @@ int set_light_type_property(void* _pvCtx, int iObj, void* _pvData, int valueType
 int set_direction_property(void* _pvCtx, int iObj, void* _pvData, int valueType, int nbRow, int nbCol);
 int set_image_type_property(void* _pvCtx, int iObjUID, void* _pvData, int valueType, int nbRow, int nbCol);
 int set_video_mode_property(void* _pvCtx, int iObjUID, void* _pvData, int valueType, int nbRow, int nbCol);
+int set_datatips_property(void* _pvCtx, int iObj, void* _pvData, int valueType, int nbRow, int nbCol);
 
 #endif /* _SET_HANDLE_PROPERTY_H_ */
diff --git a/scilab/modules/graphics/src/c/getHandleProperty/set_datatips_property.c b/scilab/modules/graphics/src/c/getHandleProperty/set_datatips_property.c
new file mode 100644 (file)
index 0000000..e7ba0a7
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2013 - Gustavo Barbosa Libotte <gustavolibotte@gmail.com>
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution.  The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+/*------------------------------------------------------------------------*/
+/* file: set_datatips_property.c                                          */
+/* desc : function to modify in Scilab the datatips polyline's            */
+/*        field of a handle                                               */
+/*------------------------------------------------------------------------*/
+
+#include "setHandleProperty.h"
+#include "Scierror.h"
+#include "localization.h"
+#include "SetPropertyStatus.h"
+
+/*------------------------------------------------------------------------*/
+int set_datatips_property(void* _pvCtx, int iObjUID, void* _pvData, int valueType, int nbRow, int nbCol)
+{
+    Scierror(999, _("Datatips property can not be modified directly.\n"));
+    return SET_PROPERTY_ERROR;
+}
+/*------------------------------------------------------------------------*/
\ No newline at end of file