File: tedBorderTool.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 (81 lines) | stat: -rw-r--r-- 2,161 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/************************************************************************/
/*									*/
/*  Border tool:							*/
/*									*/
/************************************************************************/

#   ifndef	TED_BORDER_TOOL_H
#   define	TED_BORDER_TOOL_H

#   include	<appColorChooser.h>

struct BorderTool;

typedef struct BorderTool
    {
    AppInspector *		btInspector;
    int				btSubjectPage;
    int				btWhich;

    APP_WIDGET			btFrame;
    APP_WIDGET			btPaned;

    APP_WIDGET			btOnOffToggle;
    APP_WIDGET			btWideText;

    APP_WIDGET			btStyleRow;
    APP_WIDGET			btStyleLabel;
    AppDrawnPulldown		btStylePulldown;
    AppDrawingData		btInplaceDrawingData;
    AppDrawingData		btPulldownDrawingData;
    int				btPulldownDrawingDataSet;

    APP_WIDGET			btColorRow;
    APP_WIDGET			btColorLabel;
    ColorChooser		btColorChooser;

    ExpandedBorderProperties	btPropertiesChosen;
    PropertyMask		btPropertiesChanged;
    } BorderTool;

typedef struct BorderToolResources
    {
    char *			btrWidth;
    char *			btrColor;
    char *			btrStyle;
    ColorChooserResources	btrColorChooserResources;
    } BorderToolResources;

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

extern void tedInitBorderTool(		BorderTool *		bt );
extern void tedCleanBorderTool(		BorderTool *		bt );

extern void tedBorderToolSetProperties(	BorderTool *			bt,
					const DocumentProperties *	dp,
					const BorderProperties *	bp );

extern int tedBorderToolGetProperties(	BorderProperties *	bp,
					PropertyMask *		pSetMask,
					const BorderTool *	bt,
					DocumentProperties *	dp );

extern void tedMakeBorderTool(	BorderTool *			bt,
				AppInspector *			ai,
				APP_WIDGET			page,
				const char *			title,
				const BorderToolResources *	btr,
				int				subjectPage,
				int				which );

extern void tedFinishBorderTool(	BorderTool *		bt );

extern void tedBorderSetExplicitColorChoice(
					BorderTool *		bt,
					const RGB8Color *	rgb8Set );

#   endif	/*  TED_BORDER_TOOL_H */