File: tedHeightTool.h

package info (click to toggle)
ted 2.16-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,944 kB
  • ctags: 20,273
  • sloc: ansic: 167,980; makefile: 12,518; sh: 263
file content (63 lines) | stat: -rw-r--r-- 1,773 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/************************************************************************/
/*									*/
/*  Height tool:							*/
/*									*/
/************************************************************************/

#   ifndef	TED_HEIGHT_TOOL_H
#   define	TED_HEIGHT_TOOL_H

/************************************************************************/
/*									*/
/*  A combination of a pulldown menu and a text widget to manage a	*/
/*  height property.							*/
/*									*/
/************************************************************************/

#   define	HC_FREE		0
#   define	HC_EXACTLY	1
#   define	HC_AT_LEAST	2
#   define	HC__COUNT	3

typedef struct HeightChooser
    {
    AppOptionmenu	hcOptionmenu;
    APP_WIDGET		hcText;

    APP_WIDGET		hcMenuItems[HC__COUNT];
    int			hcHow;
    } HeightChooser;

/************************************************************************/
/*									*/
/*  Routine declarations.						*/
/*									*/
/************************************************************************/

extern void tedInitHeightChooser(	HeightChooser *		hc );

extern void tedFormatMakeHeightRow(
				APP_WIDGET *			pRow,
				void *				through,
				APP_WIDGET			parent,
				HeightChooser *			hc,
				APP_TXACTIVATE_CALLBACK_T	callback );

extern void tedFormatRefreshHeightChooser(	HeightChooser *	hc,
						int		height );

extern void tedFormatHeightChosen(	int			how,
					HeightChooser *		hc,
					int			defaultValue );

extern void tedFormatFillHeightChooser(	HeightChooser *		hc,
					APP_OITEM_CALLBACK_T	callback,
					void *			voidtft,
					const char *		freeText,
					const char *		atLeastText,
					const char *		exactlyText );

extern int tedFormatToolGetHeight(	int *		pHeight,
					HeightChooser *	hc );

#   endif	/*  TED_HEIGHT_TOOL_H */