~ubuntu-branches/ubuntu/trusty/scilab/trusty

« back to all changes in this revision

Viewing changes to modules/graphics/src/c/getHandleProperty/set_auto_ticks_property.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-02 11:02:49 UTC
  • mfrom: (1.4.6)
  • Revision ID: package-import@ubuntu.com-20120802110249-0v5953emkp25geuz
Tags: 5.4.0-beta-2-1~exp1
* New upstream release
* Remove libscilab-java (remove upstream). Use libscilab2-java instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include "graphicObjectProperties.h"
36
36
 
37
37
/*------------------------------------------------------------------------*/
38
 
int set_auto_ticks_property(char* pobjUID, size_t stackPointer, int valueType, int nbRow, int nbCol )
 
38
int set_auto_ticks_property(void* _pvCtx, char* pobjUID, size_t stackPointer, int valueType, int nbRow, int nbCol )
39
39
{
40
40
    BOOL status[3];
41
41
    BOOL autoTicks = FALSE;
52
52
 
53
53
    values = getStringMatrixFromStack( stackPointer );
54
54
 
55
 
#if 0
56
 
    if ( sciGetEntityType( pobj ) != SCI_SUBWIN )
57
 
    {
58
 
        Scierror(999, _("'%s' property does not exist for this handle.\n"), "auto_ticks") ;
59
 
        return SET_PROPERTY_ERROR ;
60
 
    }
61
 
#endif
62
 
 
63
55
    if ( mSize == 1 )
64
56
    {
65
57
        /* only one parameter to set the value for every axes.*/
98
90
        int iAutoTicks = 0;
99
91
        int *piAutoTicks = &iAutoTicks;
100
92
 
101
 
        getGraphicObjectProperty(pobjUID, axesAutoTicksPropertiesNames[0], jni_bool, &piAutoTicks);
 
93
        getGraphicObjectProperty(pobjUID, axesAutoTicksPropertiesNames[0], jni_bool, (void **)&piAutoTicks);
102
94
 
103
95
        if (piAutoTicks == NULL)
104
96
        {
108
100
 
109
101
        autoTicks[0] = iAutoTicks;
110
102
 
111
 
        getGraphicObjectProperty(pobjUID, axesAutoTicksPropertiesNames[1], jni_bool, &piAutoTicks);
 
103
        getGraphicObjectProperty(pobjUID, axesAutoTicksPropertiesNames[1], jni_bool, (void **)&piAutoTicks);
112
104
        autoTicks[1] = iAutoTicks;
113
105
 
114
 
        getGraphicObjectProperty(pobjUID, axesAutoTicksPropertiesNames[2], jni_bool, &piAutoTicks);
 
106
        getGraphicObjectProperty(pobjUID, axesAutoTicksPropertiesNames[2], jni_bool, (void **)&piAutoTicks);
115
107
        autoTicks[2] = iAutoTicks;
116
108
 
117
109
        for ( i = 0; i < mSize; i++ )