File: [Platon] / tucniak / api / api.h (download)
Revision 1.3, Sat Nov 12 20:41:57 2005 UTC (18 years, 5 months ago) by koli
Changes since 1.2: +0 -0
lines
*** empty log message ***
|
// Copyright (c) 2003-2005 Juraj Kolesár (koli) <koli@koli.sk>
#include "../term/tt.h"
/* ABOUT {{{ ******************************************************************/
/*
api - Aplication Library Tucniak is first executable program that uses
all the other libraries. Main code is stored in "t_main.c"
This aplication is designed only for text terminal console,
where it uses widgets from 'tt' library (for more see ../TERM/tt.h),
so its better name should be something like 'tapi',
but for now its the first&only aplication with prowd name "API"
Its users it offers menu where they can choose what to do
(in simple way:"users work with program")
/* }}} */
#define STATUS_LINE 24
/*
line where are shown any messages for users (or debugging developer)
*/
//TUCNIAK MENU (SUBMENU) - definition of menu (submenu) items
#define __TM_CONTACTS 0
#define __TMS_PERSON 0
#define __TMS_COMPANY 1
#define __TM_STORE 1
#define __TMS_INPUT 0
#define __TMS_OUTPUT 1
#define __TMS_OVERVIEW 2
#define __TMS_FLOW 3
#define __TMSS_INPUTS 0
#define __TMSS_OUTPUTS 1
#define __TM_ACCOUNTING 2
#define __TM_END 3
/* HOW IT WORKS {{{
Beacause we don't have any event handler there are some cycles that
have some sub-cycles and every time we analyze user input. Acording
to this input is called one of t_%_*_qs or t_%_*_form functions
that allow user to find, edit or input data in database.
NOW, There are some "global" data objects (f.e. T_PERSON, T_COMPANY,...)
and choosing some action from the main manu fills these objects with some
kind of actual data, that is user working with. The reason is that we
are now testing if the formulars and specially functions from LT,
that handle this objects, work well. Future of these objects as
global variables is fuzzy.
}}} */
Platon Group <platon@platon.org> http://platon.org/
|