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
|
/************************************************************************/
/* */
/* Shading tool: */
/* */
/************************************************************************/
# ifndef TED_SHADING_TOOL_H
# define TED_SHADING_TOOL_H
# include <appGuiBase.h>
# include <appColorChooser.h>
# include "docBuf.h"
struct ShadingTool;
typedef void (*TedShadingToolCallback)(
struct ShadingTool * st,
void * through,
const PropertyMask * bpSetMask,
const ExpandedItemShading * eis );
typedef struct ShadingTool
{
APP_WIDGET stFrame;
APP_WIDGET stPaned;
APP_WIDGET stPatternLabel;
APP_WIDGET stLevelLabel;
APP_WIDGET stBackLabel;
APP_WIDGET stForeLabel;
int stShowPattern;
AppDrawnPulldown stPatternPulldown;
AppDrawingData stPatternInplaceDrawingData;
AppDrawingData stPatternPulldownDrawingData;
APP_BITMAP_IMAGE stPatternPixmaps[DOCsp_COUNT];
int stPulldownDrawingDataSet;
APP_WIDGET stLevelText;
ColorChooser stBackColorChooser;
ColorChooser stForeColorChooser;
ExpandedItemShading stShadingChosen;
PropertyMask stShadingChanged;
TedShadingToolCallback stCallback;
void * stTarget;
AppInspector * stInspector;
int stSubjectPage;
int stBackWhich;
int stForeWhich;
} ShadingTool;
typedef struct ShadingToolResources
{
char * strPattern;
char * strLevel;
char * strBackColor;
char * strForeColor;
ColorChooserResources strBackColorChooserResources;
ColorChooserResources strForeColorChooserResources;
} ShadingToolResources;
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void tedSetShadingTool( ShadingTool * st,
const DocumentProperties * dp,
const ItemShading * is );
extern void tedFormatMakeShadingTool(
ShadingTool * st,
AppInspector * ai,
APP_WIDGET pageWidget,
const char * title,
const ShadingToolResources * str,
int subjectPage,
int foreWhich,
int backWhich,
TedShadingToolCallback callback,
void * through );
extern int tedShadingToolGetShading(
ExpandedItemShading * eisSet,
PropertyMask * pSetMask,
const ShadingTool * st );
extern void tedShadeSetExplicitColorChoice(
ShadingTool * st,
int which,
const RGB8Color * rgb8Set );
extern void tedInitShadingTool( ShadingTool * st );
extern void tedCleanShadingTool( ShadingTool * st );
extern void tedFinishShadingTool( ShadingTool * st );
# endif /* TED_SHADING_TOOL_H */
|