File: [Platon] / tucniak / api / t_c_person.h (download)
Revision 1.1.1.1 (vendor branch), Fri Nov 11 16:08:29 2005 UTC (18 years, 4 months ago) by koli
Changes since 1.1: +0 -0
lines
Initial import
|
// Copyright (c) 2003,2004,2005 Juraj Kolesár <koli@koli.sk>
/* __PARAMS shortcuts from __LT_C_PERSON {{{ */
#define __PK __LT_C_PERSON_PK
#define __NAME __LT_C_PERSON_NAME
#define __SURNAME __LT_C_PERSON_SURNAME
#define __NICKNAME __LT_C_PERSON_NICKNAME
#define __COMPANY __LT_C_PERSON_COMPANY
#define __ADDRESS __LT_C_PERSON_ADDRESS
#define __PHONE __LT_C_PERSON_PHONE
#define __EMAIL __LT_C_PERSON_EMAIL
/* }}} */
/* t_c_person_qs (*WINDOW, *T_DB, *T_QS, *T_PERSON) {{{ ***********************/
int t_c_person_qs(WINDOW *win, T_DB *tdb, T_QS *qs, T_PERSON *person);
/*
-list table of persons filtered and ordered by T_QS values
-primary mean of this function is to fill (or clear) T_PERSON data
and call c_person_form which can handle it.
RETURN
__LT_FILLED - T_PERSON is filled with reliable data that can be used
__LT_EMPTY - T_PERSON is empty
/* }}} */
/* t_c_person_form (*WINDOW, *T_DB, *T_PERSON) {{{ ****************************/
int t_c_person_form(WINDOW *win, T_DB *tdb, T_PERSON *person);
/*
1. inits positions of objects in local POS array
2. calls form_draw to show objets
3. initialize MENU where user chooses next action what to do with
data stored in T_PERSON.
-or when T_PERSON is empty automaticly is run form_edit function
-from menu data can be updated (stored,deleted) in T_DB
/* }}} */
/* t_c_person_form_draw (*T_PERSON, *POS[0]) {{{ ******************************/
int t_c_person_form_draw(T_PERSON *person, POS *pos);
/*
-draws T_PERSON data on positions from POS array
/* }}} */
/* t_c_person_form_edit (*T_PERSON, *POS[0]) {{{ ******************************/
int t_c_person_form_edit(T_PERSON *person, POS *pos);
/*
start "editing and showing" cycle
where user can change values stored in T_PERSON
RETURN (exit from cycle)
__TT_ENTER
__TT_ESC
calling function then decides what to do with edited data.
Old values are lost if they were changed, but they can be refreshed
from db (when some kind of UNDO function would be implemented in future)
/* }}} */
Platon Group <platon@platon.org> http://platon.org/
|