mt_dfrm.h File Reference

#include <mt_wndm.h>

Go to the source code of this file.

Defines

#define __DFRM_MAJOR__   0
#define __DFRM_MINOR__   4
#define __DFRM_REVISION__   4
#define __DFRM_BETATAG__   ""
#define TYPE_NORMAL   0
#define TYPE_OUTLINED   1
#define TYPE_MENU   2
#define TYPE_EMPTY   3
#define TYPE_PBUT   9
#define TYPE_EBUT   10
#define TYPE_DBUT   11
#define TYPE_SBUT   12
#define TYPE_RBUT   13
#define TYPE_UBUT   14
#define TYPE_XEBUT   15
#define TYPE_XDBUT   16
#define TYPE_XSBUT   17
#define TYPE_XRBUT   18
#define TYPE_XUBUT   19
#define TYPE_IBUT   20
#define TYPE_LABEL   30
#define TYPE_ULABEL   31
#define TYPE_MITEM   32
#define TYPE_MTITLE   33
#define PUNIT(a)   (a)
#define SUNIT(a)   (-2*(a))
#define SSUNIT(a)   (-(a))
#define LHEIGHT   1
#define LWIDTH   2
#define SHEIGHT   3
#define SWIDTH   4
#define SLD_DRAW3D   0x1
#define SLD_THICK   0x2
#define DIR_NONE   0
#define DIR_VERT   0x1
#define DIR_HORI   0x2
#define ALIGN_NONE   0
#define ALIGN_LEFT   1
#define ALIGN_TOP   ALIGN_LEFT
#define ALIGN_RIGHT   2
#define ALIGN_BOT   ALIGN_RIGHT
#define ALIGN_CENTER   3
#define ALIGN_JUSTIFY   4
#define ALIGN_FJUSTIFY   5
#define ORD_TOP   0
#define ORD_BOT   -1
#define TE_TRANS   0
#define TE_OPAQUE   1
#define XEDIT_HIDDEN   "H"
#define XEDIT_LOWER   "x"
#define XEDIT_ALLCHAR   "X"
#define XEDIT_NUMERIC   "9"
#define XEDIT_ALPHANUM   "N"
#define XEDIT_LOWERSPACE   "a"
#define XEDIT_UPPERSPACE   "A"
#define XEDIT_FILENAME   "F"
#define XEDIT_PATHNAME   "P"
#define XEDIT_PATHMASK   "P"
#define WHITEBAK   0x0040
#define DRAW3D   0x0080
#define FLAGS9   0x0200
#define FLAGS10   0x0400
#define FLAGS11   0x0800
#define FLAGS12   0x1000
#define FLAGS13   0x2000
#define FLAGS14   0x4000
#define FLAGS15   0x8000
#define STATE8   0x0100
#define STATE9   0x0200
#define STATE10   0x0400
#define STATE11   0x0800
#define STATE12   0x1000
#define STATE13   0x2000
#define STATE14   0x4000
#define STATE15   0x8000

Functions

void * mt_dfrm_create (APPvar *ap, int maxobj, int type)
 Creating a new dynamic form.
void mt_dfrm_free (APPvar *ap, void *dfrm)
 Release from the memory a form.
void dfrm_add (void *dfrm, int pind, int cind, int wspace, int hspace, int dir)
 Add and place an object in a form.
int mt_dfrm_add_menu (APPvar *ap, void *dfrm, char *label)
 Special function to adding a title in a menu bar.
void dfrm_align (void *dfrm, int ind, int dir, int align)
 Giving alignement directives to objects.
void dfrm_repack (void *dfrm)
 Applying alignment directives.
void dfrm_order (void *dfrm, int ind, int order)
 Ordering children's object in a dynamic form.
void dfrm_attach (void *dfrm, int ind, int type,...)
 ObjcAttach() remplacement for menu and form.
void mt_dfrm_win_attach (APPvar *ap, int type, void *win, void *dfrm)
 Make effective bindings performed with mt_dfrm_attach().
OBJECT * dfrm_tree (void *dfrm)
 Returns the OBJECT tree of a form.
int dfrm_cellsize (int mode)
 Return cell character size .
int mt_dfrm_find_label (APPvar *ap, void *dfrm, char *label)
 Searching object by its label.
int mt_dfrm_delete (APPvar *ap, void *dfrm, int ind)
 Delete an object from a form.
void dfrm_setx (void *dfrm, int ind, int x)
 Sets the x-coordinate of an object.
void dfrm_sety (void *dfrm, int ind, int y)
 Sets the y-coordinate of an object.
void dfrm_setw (void *dfrm, int ind, int w)
 Sets the width of an object.
void dfrm_seth (void *dfrm, int ind, int h)
 Sets the height of an object.
void dfrm_setstate (void *dfrm, int ind, int state, int val)
 Sets the ob_state of an object.
void dfrm_setflags (void *dfrm, int ind, int flags, int val)
 Sets the ob_flags of an object.
int mt_dfrm_new_button (APPvar *ap, void *dfrm, int type, char *label)
 Create buttons objects.
int mt_dfrm_new_label (APPvar *ap, void *dfrm, int type, char *label)
 Create a string object (G_STRING, G_TITLE or MENUTITLE).
int mt_dfrm_new_tbox (APPvar *ap, void *dfrm, int w, int h, char *label)
 Create a box with a title (TITLEBOX).
int dfrm_new_box (void *dfrm, int w, int h, int fsize, int fcol)
 Create a simple box (G_IBOX).
int dfrm_new_fbox (void *dfrm, int w, int h, int fsize, int fcol, int bpat, int bcol)
 Create a filled box (G_BOX).
int dfrm_new_cbox (void *dfrm, int w, int h, int fsize, int fcol, int bpat, int bcol, int tmode, int tcol, int car)
 Create a box with a character inside (G_BOXCHAR).
int mt_dfrm_new_text (APPvar *ap, void *dfrm, int tcol, int talign, int tsize, int tmode, char *text)
 Create a text object (G_TEXT).
int mt_dfrm_new_ftext (APPvar *ap, void *dfrm, int tcol, int talign, int tsize, int tmode, int fcol, int fsize, int bcol, int bpat, char *text)
 Create a boxed object (G_FTEXT).
int mt_dfrm_new_mtext (APPvar *ap, void *dfrm, int w, int h, int tcol, int talign, int tmode, int fcol, int fsize, int bcol, int bpat, char *text)
 Create a multilined text (XBOXLONGEDIT).
int mt_dfrm_new_edit (APPvar *ap, void *dfrm, int tcol, char *tmptl, char *text, char *valid)
 Create an editable field (G_FTEXT).
int mt_dfrm_new_fedit (APPvar *ap, void *dfrm, int tcol, int fsize, int fcol, int bpat, int bcol, char *tmptl, char *text, char *valid)
 Create a framed editable field (G_FBOXTEXT).
int mt_dfrm_new_xedit (APPvar *ap, void *dfrm, char *type, int tcol, char *label, char *value)
 Create a editable object without limitation of text lenght (XEDIT).
int mt_dfrm_new_icon (APPvar *ap, void *dfrm, ICONBLK *icon, int dup)
 Build an monochrome icon from an ICONBLK data.
int mt_dfrm_new_cicon (APPvar *ap, void *dfrm, CICONBLK *icon, int dup)
 Build a color icon from a CICONBLK data.
int mt_dfrm_new_line (APPvar *ap, void *dfrm, int w, int h, int pente, int style, int color, int width, int start, int end)
 Create a line (or arrow) object.
int mt_dfrm_new_xcicon (APPvar *ap, void *dfrm, CICONBLK *icon, int dup)
 Create an icon color from WinDom extended color icon type (XCICON - 0xD).
int mt_dfrm_new_image (APPvar *ap, void *dfrm, MFDB *img, int dup)
 Creates an object displaying an image.
int mt_dfrm_new_texture (APPvar *ap, void *dfrm, MFDB *img, int w, int h)
 Creates an object displaying a texture.
int mt_dfrm_new_dmenu (APPvar *ap, void *dfrm, char *title, char *info)
 Macro function building a minimal structure for a desktop menu.
int mt_dfrm_new_slider (APPvar *ap, void *dfrm, int size, int ori, int *up, int *bg, int *sld, int *dn)
 Macro function building a slider.
int mt_dfrm_thumb_new (APPvar *ap, void *dfrm, int style)
int mt_dfrm_thumb_add (APPvar *ap, void *dfrm, int root, char *label)
void mt_dfrm_thumb_end (APPvar *ap, void *dfrm, int root, WINDOW *win)
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.


Detailed Description


Define Documentation

#define __DFRM_BETATAG__   ""

#define __DFRM_MAJOR__   0

#define __DFRM_MINOR__   4

#define __DFRM_REVISION__   4

#define ALIGN_BOT   ALIGN_RIGHT

Align to bottom

Referenced by dfrm_repack().

#define ALIGN_CENTER   3

Align to center

Referenced by dfrm_repack().

#define ALIGN_FJUSTIFY   5

Full JUSTIFY

Referenced by dfrm_repack().

#define ALIGN_JUSTIFY   4

Justify object

Referenced by dfrm_repack(), mt_dfrm_new_dmenu(), and mt_dfrm_thumb_add().

#define ALIGN_LEFT   1

Align to left

Referenced by dfrm_repack().

#define ALIGN_NONE   0

No alignment

#define ALIGN_RIGHT   2

Align to right

Referenced by dfrm_repack().

#define ALIGN_TOP   ALIGN_LEFT

Align to top

Referenced by dfrm_repack().

#define DIR_HORI   0x2

#define DIR_NONE   0

No horizontal and vertical relative spacing

Referenced by dfrm_add(), mt_dfrm_add_menu(), and mt_dfrm_thumb_add().

#define DIR_VERT   0x1

Relative vertical spacing

Referenced by dfrm_add(), dfrm_align(), mt_dfrm_new_dmenu(), mt_dfrm_new_slider(), and mt_dfrm_thumb_new().

#define DRAW3D   0x0080

#define FLAGS10   0x0400

Referenced by mt_dfrm_new_button().

#define FLAGS11   0x0800

Referenced by mt_dfrm_new_button().

#define FLAGS12   0x1000

#define FLAGS13   0x2000

#define FLAGS14   0x4000

#define FLAGS15   0x8000

#define FLAGS9   0x0200

#define LHEIGHT   1

#define LWIDTH   2

#define ORD_BOT   -1

Referenced by dfrm_order(), and mt_dfrm_thumb_end().

#define ORD_TOP   0

Referenced by dfrm_order().

#define PUNIT (  )     (a)

#define SHEIGHT   3

Referenced by dfrm_cellsize().

#define SLD_DRAW3D   0x1

#define SLD_THICK   0x2

#define SSUNIT (  )     (-(a))

#define STATE10   0x0400

#define STATE11   0x0800

#define STATE12   0x1000

#define STATE13   0x2000

#define STATE14   0x4000

#define STATE15   0x8000

#define STATE8   0x0100

#define STATE9   0x0200

#define SUNIT (  )     (-2*(a))

#define SWIDTH   4

Referenced by dfrm_cellsize().

#define TE_OPAQUE   1

#define TE_TRANS   0

#define TYPE_DBUT   11

Default button

Referenced by mt_dfrm_new_button().

#define TYPE_EBUT   10

Exit button

Referenced by mt_dfrm_new_button().

#define TYPE_EMPTY   3

Empty tree

Referenced by mt_dfrm_create().

#define TYPE_IBUT   20

Index button

Referenced by mt_dfrm_new_button(), and mt_dfrm_thumb_add().

#define TYPE_LABEL   30

Label object

Referenced by mt_dfrm_new_dmenu(), and mt_dfrm_new_label().

#define TYPE_MENU   2

Menu

Referenced by mt_dfrm_create().

#define TYPE_MITEM   32

Menu item object

Referenced by mt_dfrm_new_label().

#define TYPE_MTITLE   33

Menu title object (reserved)

Referenced by mt_dfrm_add_menu(), and mt_dfrm_new_label().

#define TYPE_NORMAL   0

Normal form

Referenced by mt_dfrm_create().

#define TYPE_OUTLINED   1

Outlined form

Referenced by mt_dfrm_create().

#define TYPE_PBUT   9

Popup button

Referenced by mt_dfrm_new_button().

#define TYPE_RBUT   13

Radio button

Referenced by mt_dfrm_new_button().

#define TYPE_SBUT   12

Selectable button

Referenced by mt_dfrm_new_button().

#define TYPE_UBUT   14

Undo button

Referenced by mt_dfrm_new_button().

#define TYPE_ULABEL   31

Underlined label object

Referenced by mt_dfrm_new_label().

#define TYPE_XDBUT   16

eXtended default button

Referenced by mt_dfrm_new_button().

#define TYPE_XEBUT   15

eXtended exit button

Referenced by mt_dfrm_new_button().

#define TYPE_XRBUT   18

eXtended radio button

Referenced by mt_dfrm_new_button().

#define TYPE_XSBUT   17

eXtended selectable button

Referenced by mt_dfrm_new_button().

#define TYPE_XUBUT   19

eXtended undo button

Referenced by mt_dfrm_new_button().

#define WHITEBAK   0x0040

#define XEDIT_ALLCHAR   "X"

#define XEDIT_ALPHANUM   "N"

#define XEDIT_FILENAME   "F"

#define XEDIT_HIDDEN   "H"

#define XEDIT_LOWER   "x"

#define XEDIT_LOWERSPACE   "a"

#define XEDIT_NUMERIC   "9"

#define XEDIT_PATHMASK   "P"

#define XEDIT_PATHNAME   "P"

#define XEDIT_UPPERSPACE   "A"


Generated on Thu Dec 23 18:55:34 2010 for Dynamic Forms by  doxygen 1.5.8