File: appRgbChooserPage.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 (105 lines) | stat: -rw-r--r-- 2,885 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/************************************************************************/
/*									*/
/*  RGB chooser page on an inspector.					*/
/*									*/
/************************************************************************/

#   ifndef	APP_RGB_CHOOSER_PAGE_H
#   define	APP_RGB_CHOOSER_PAGE_H

#   include	<appFrame.h>
#   include	<bmcolor.h>
#   include	<appRgbCube.h>

/************************************************************************/
/*									*/
/*  Resources for the RGB chooser page.					*/
/*									*/
/************************************************************************/

typedef struct RgbChooserPageResources
    {
    char *		rcprCancelText;

    char *		rcprRedText;
    char *		rcprGreenText;
    char *		rcprBlueText;
    } RgbChooserPageResources;

/************************************************************************/
/*									*/
/*  A RGB chooser tool. Select RGB colors by typing or clicking.	*/
/*									*/
/************************************************************************/

struct RgbChooserPage;

typedef void (*RgbChooserCallback)(	struct RgbChooserPage *	rcp,
					const RGB8Color *	rgb8New,
					void *			through );

typedef struct RgbChooserPage
    {
    EditApplication *			rcpApplication;
    AppInspector *			rcpInspector;
    const RgbChooserPageResources *	rcpPageResources;

    RGB8Color				rcpRGBSet;
    RGB8Color				rcpRGBChosen;

    int					rcpSubject;
    int					rcpProperty;

    APP_WIDGET				rcpDrawing;
    AppDrawingData			rcpDrawingData;
    int					rcpDrawingDataAllocated;

    APP_WIDGET				rcpRedToggle;
    APP_WIDGET				rcpGreenToggle;
    APP_WIDGET				rcpBlueToggle;

    APP_WIDGET				rcpRedText;
    APP_WIDGET				rcpGreenText;
    APP_WIDGET				rcpBlueText;

    APP_WIDGET				rcpCancelButton;

    RgbCube				rcpRgbCube;
    } RgbChooserPage;

/************************************************************************/
/*									*/
/*  Routine Declarations.						*/
/*									*/
/************************************************************************/

extern void appRgbChooserPageFinishPage(
				RgbChooserPage *		rcp,
				const RgbChooserPageResources *	rcpr );

extern void appRgbChooserRefresh(
				RgbChooserPage *		rcp,
				int *				pEnabled,
				InspectorSubject *		is,
				const RGB8Color *		rgbSet );

extern void appRgbChooserPageFillPage(
				RgbChooserPage *		rcp,
				const RgbChooserPageResources *	plpr,
				InspectorSubject *		is,
				APP_WIDGET			pageWidget,
				const InspectorSubjectResources * isr );

extern void appRgbChooserPageGetResourceTable(
				EditApplication *		ea,
				RgbChooserPageResources *	rcpr,
				InspectorSubjectResources *	isr );

extern void appRgbChooserPageCleanPage(
				RgbChooserPage *		rcp );

extern void appRgbChooserSetContext(	RgbChooserPage *	rcp,
					int			subjectPage,
					int			property );

#   endif	/*  APP_RGB_CHOOSER_PAGE_H */