Defines | |
| #define | dfrm_form(d, a, n, g) mt_dfrm_form(gl_appvar,d,a,n,g) |
| Quick declaration of a form window, see mt_dfrm_form(). | |
| #define | dfrm_modal(d, m) mt_dfrm_modal(gl_appvar,d,m) |
| Quick declaration of a modal form window, see mt_dfrm_modal(). | |
| #define | dfrm_toolbar(w, d) mt_dfrm_toolbar(gl_appvar,w,d) |
| Quick declaration of a toolbar in a window, see mt_dfrm_toolbar(). | |
| #define | dfrm_menu(w, d) mt_dfrm_menu(gl_appvar,w,d) |
| Quick declaration of a menu in a window (or desktop menu), see mt_dfrm_menu(). | |
| #define | dfrm_load_str(f) mt_dfrm_load_str(gl_appvar,f) |
| Load strings from a text file generated by dfrmstr, see mt_dfrm_load_str(). | |
Functions | |
| WINDOW * | mt_dfrm_form (APPvar *ap, void *dfrm, int attrib, char *name, int grow) |
| Quick declaration of a form window. | |
| WINDOW * | mt_dfrm_modal (APPvar *ap, void *dfrm, char *name) |
| Quick declaration of a modal form window. | |
| void | mt_dfrm_toolbar (APPvar *ap, WINDOW *win, void *dfrm) |
| Quick declaration of a toolbar in a window. | |
| void | mt_dfrm_menu (APPvar *ap, WINDOW *win, void *dfrm) |
| Quick declaration of a menu in a window or as desktop menu. | |
| char ** | mt_dfrm_load_str (APPvar *ap, char *file) |
| Load strings from a text file generated by dfrmstr. | |
| void | dfrm_free_str (char **strings) |
| Release memory reserved by dfrm_load_str(). | |
| void | dfrm_debug_list (OBJECT *tree, int max, char *log, int kind) |
| void | dfrm_trace (char *format,...) |
| Write a log message in the DFRM log file. | |
Utilities
| #define dfrm_form | ( | d, | |||
| a, | |||||
| n, | |||||
| g | ) | mt_dfrm_form(gl_appvar,d,a,n,g) |
Quick declaration of a form window, see mt_dfrm_form().
| #define dfrm_load_str | ( | f | ) | mt_dfrm_load_str(gl_appvar,f) |
Load strings from a text file generated by dfrmstr, see mt_dfrm_load_str().
| #define dfrm_menu | ( | w, | |||
| d | ) | mt_dfrm_menu(gl_appvar,w,d) |
Quick declaration of a menu in a window (or desktop menu), see mt_dfrm_menu().
| #define dfrm_modal | ( | d, | |||
| m | ) | mt_dfrm_modal(gl_appvar,d,m) |
Quick declaration of a modal form window, see mt_dfrm_modal().
| #define dfrm_toolbar | ( | w, | |||
| d | ) | mt_dfrm_toolbar(gl_appvar,w,d) |
Quick declaration of a toolbar in a window, see mt_dfrm_toolbar().
| void dfrm_free_str | ( | char ** | strings | ) |
Release memory reserved by dfrm_load_str().
| strings | array of strings returned by dfrm_load_str(). |
| void dfrm_trace | ( | char * | format, | |
| ... | ||||
| ) |
Write a log message in the DFRM log file.
| format | string format as printf() | |
| ... | variable argument list depending on format string |
| WINDOW* mt_dfrm_form | ( | APPvar * | app, | |
| void * | dfrm, | |||
| int | attrib, | |||
| char * | name, | |||
| int | grow | |||
| ) |
Quick declaration of a form window.
| app | application descriptor, | |
| dfrm | pointer to form structure, | |
| attrib | GEM attributes of host window, | |
| name | title of host window, | |
| grow | if TRUE, activate graphical effects when open/close window, |
When the window hosting the form is destroyed, memory used by extended objects and by dfrm_create() is automatically released.
Have a look to this function (in src/attach.c) for more details.
References dfrm_tree(), and mt_dfrm_win_attach().
| char** mt_dfrm_load_str | ( | APPvar * | app, | |
| char * | file | |||
| ) |
Load strings from a text file generated by dfrmstr.
| app | application descriptor, | |
| file | of strings to load, |
Each element of this array matches to a line from the text file. The text file contains typically all string displaying in object allowing a multilanguage support of DFRM applications.
| void mt_dfrm_menu | ( | APPvar * | app, | |
| WINDOW * | win, | |||
| void * | dial | |||
| ) |
Quick declaration of a menu in a window or as desktop menu.
| app | application descriptor, | |
| win | the host window or NULL (desktop), | |
| dial | pointer to the toolbar structure, |
When the window is destroyed, memory reserved by dfrm_toolbar() and dfrm_create() is released. Otherwise if menu is attached to the GEM desktop, memory is released when application catches the AP_TERM message.
See src/attach.c for details.
References dfrm_tree(), and mt_dfrm_win_attach().
| WINDOW* mt_dfrm_modal | ( | APPvar * | app, | |
| void * | dial, | |||
| char * | name | |||
| ) |
Quick declaration of a modal form window.
| app | application descriptor, | |
| dial | pointer to form structure, | |
| name | title of host window, |
References dfrm_tree(), and mt_dfrm_win_attach().
| void mt_dfrm_toolbar | ( | APPvar * | app, | |
| WINDOW * | win, | |||
| void * | dial | |||
| ) |
Quick declaration of a toolbar in a window.
| app | application descriptor, | |
| win | the host window, | |
| dial | pointer to the toolbar structure, |
When the window is destroyed, memory reserved by dfrm_toolbar() and dfrm_create() is released.
See src/attach.c for details.
References dfrm_tree(), and mt_dfrm_win_attach().
1.5.8