88 Curve * this_curve = this_proj -> analysis[rid] -> curves[cid];
94 if (fread (& this_curve -> displayed,
sizeof(gboolean), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
95 if (fread (& this_curve -> ndata,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
96 this_curve -> data[0] =
allocdouble (this_curve -> ndata);
97 if (fread (this_curve -> data[0],
sizeof(
double), this_curve -> ndata,
fp) != this_curve -> ndata)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
98 this_curve -> data[1] =
allocdouble (this_curve -> ndata);
99 if (fread (this_curve -> data[1],
sizeof(
double), this_curve -> ndata,
fp) != this_curve -> ndata)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
103 this_curve -> err =
allocdouble (this_curve -> ndata);
104 if (fread (this_curve -> err,
sizeof(
double), this_curve -> ndata,
fp) != this_curve -> ndata)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
106 if (this_curve -> displayed)
108 if (fread (this_curve -> wsize,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
109 if (fread (this_curve -> cmin,
sizeof(
double), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
110 if (fread (this_curve -> cmax,
sizeof(
double), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
119 if (fread (this_curve -> title_pos,
sizeof(
double), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
124 if (fread (this_curve -> axmin,
sizeof(
double), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
125 if (fread (this_curve -> axmax,
sizeof(
double), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
133 if (fread (this_curve -> axis_title_x,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
134 if (fread (this_curve -> axis_title_y,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
136 if (fread (this_curve -> axis_defaut_title,
sizeof(gboolean), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
139 if (fread (this_curve -> mint,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
140 if (fread (this_curve -> ticks_io,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
141 if (fread (this_curve -> ticks_pos,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
142 if (fread (this_curve -> majt_size,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
143 if (fread (this_curve -> mint_size,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
144 if (fread (this_curve -> labels_pos,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
145 if (fread (this_curve -> labels_digit,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
151 if (fread (this_curve -> labels_angle,
sizeof(
double), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
152 if (fread (this_curve -> labels_shift_x,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
153 if (fread (this_curve -> labels_shift_y,
sizeof(
int), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
154 if (fread (this_curve -> show_grid,
sizeof(gboolean), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
155 if (fread (this_curve -> show_axis,
sizeof(gboolean), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
161 if (fread (this_curve -> legend_pos,
sizeof(
double), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
163 if (fread (& this_curve -> show_legend_box,
sizeof(gboolean), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
164 if (fread (& this_curve -> legend_box_dash,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
165 if (fread (& this_curve -> legend_box_thickness,
sizeof(
double), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
169 if (fread (& this_curve -> frame_type,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
170 if (fread (& this_curve -> frame_dash,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
171 if (fread (& this_curve -> frame_thickness,
sizeof(
double), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
173 if (fread (this_curve -> frame_pos,
sizeof(this_curve -> frame_pos), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
176 this_curve ->
layout = g_malloc0(
sizeof*this_curve ->
layout);
182 if (fread (& this_curve -> draw_id,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
183 if (fread (& this_curve -> bshift,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
185 this_curve -> extrac = g_malloc0(
sizeof*this_curve -> extrac);
186 if (fread (& this_curve -> extrac -> extras,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_CURVE);
187 if (this_curve -> extrac -> extras > 0)
189 this_curve -> extrac -> first = g_malloc0(
sizeof*this_curve -> extrac -> first);
190 this_curve -> extrac -> last = g_malloc0(
sizeof*this_curve -> extrac -> last);
191 CurveExtra * ctmp = this_curve -> extrac -> first;
192 for (i=0; i<this_curve -> extrac -> extras; i++)
195 if (! wid) ctmp ->
id.a += (
nprojects - 1);
204 if (i < this_curve -> extrac -> extras - 1)
206 ctmp -> next = g_malloc0(
sizeof*ctmp -> next);
207 ctmp -> next -> prev = ctmp;
210 else if (i == this_curve -> extrac -> extras - 1)
212 this_curve -> extrac -> last = ctmp;