275 to->update = from->update; |
275 to->update = from->update; |
276 to->obj = from->obj; |
276 to->obj = from->obj; |
277 } |
277 } |
278 |
278 |
279 |
279 |
|
280 void uic_int_save(UiInteger *i) { |
|
281 i->value = i->get(i); |
|
282 } |
|
283 |
|
284 void uic_string_save(UiString *s) { |
|
285 s->get(s); |
|
286 } |
|
287 |
|
288 void uic_text_save(UiText *t) { |
|
289 t->get(t); |
|
290 t->position(t); |
|
291 } |
|
292 |
|
293 void uic_range_save(UiRange *r) { |
|
294 r->get(r); |
|
295 } |
|
296 |
|
297 |
280 void uic_int_unbind(UiInteger *i) { |
298 void uic_int_unbind(UiInteger *i) { |
281 i->value = i->get(i); |
|
282 i->get = NULL; |
299 i->get = NULL; |
283 i->set = NULL; |
300 i->set = NULL; |
284 i->obj = NULL; |
301 i->obj = NULL; |
285 } |
302 } |
286 |
303 |
287 void uic_string_unbind(UiString *s) { |
304 void uic_string_unbind(UiString *s) { |
288 s->value = s->get(s); |
|
289 s->get = NULL; |
305 s->get = NULL; |
290 s->set = NULL; |
306 s->set = NULL; |
291 s->obj = NULL; |
307 s->obj = NULL; |
292 } |
308 } |
293 |
309 |
294 void uic_text_unbind(UiText *t) { |
310 void uic_text_unbind(UiText *t) { |
295 t->value = t->get(t); |
|
296 t->set = NULL; |
311 t->set = NULL; |
297 t->get = NULL; |
312 t->get = NULL; |
298 t->getsubstr = NULL; |
313 t->getsubstr = NULL; |
299 t->insert = NULL; |
314 t->insert = NULL; |
300 t->setposition = NULL; |
315 t->setposition = NULL; |