/*-*-C-*-*/

typedef struct _propsinforec
{
    WindowPtr main;
    WindowPtr more;
    void (*fillin) (WindowPtr, WindowPtr, RectPtr);
    void (*mouseclick) (WindowPtr, MouseClickPtr);
    Bool (*apply) (WindowPtr, WindowPtr, int *, int *);
} PropsInfoRec, *PropsInfoPtr;

extern error * props_lose_caret (CaretPositionPtr caret);
extern error * props_load_prototypes (void);
extern error * props_show_window (void);
extern error * props_select (ResourcePtr res, ItemInfoPtr item);
extern error * props_open_window (WindowPtr win, RegistryType rt, void *closure);
extern error * props_key_pressed (KeyPressPtr key, Bool *consumed);
extern void props_set_icon_bg (IconInfoPtr icon, int newbg);
extern error * props_mouse_click (MouseClickPtr mouse, unsigned int modifiers, WindowPtr win);
extern ItemInfoPtr props_current (ResourcePtr *res);
extern ItemType props_type (void);
extern void props_palette (void);


#define I_LABEL_NAME 0
#define I_LABEL_TEXT 3
#define I_LABEL_SPRITE 10
#define I_LABEL_LEFT 5
#define I_LABEL_RIGHT 9
#define I_LABEL_CENTRE 11
#define I_LABEL_OPEN_MORE 8
#define I_LABEL_OK 12
#define I_LABEL_CANCEL 1

#define I_LABEL_WIDTH 0
#define I_LABEL_WIDTH_DOWN 2
#define I_LABEL_WIDTH_UP 3
#define I_LABEL_HEIGHT 18
#define I_LABEL_HEIGHT_DOWN 4
#define I_LABEL_HEIGHT_UP 5
#define I_LABEL_FONTNAME 1
#define I_LABEL_FONT_MENU 7
#define I_LABEL_FONTSIZE 11
#define I_LABEL_FONTSIZE_DOWN 12
#define I_LABEL_FONTSIZE_UP 13
#define I_LABEL_CLOSE_MORE 17
#define I_LABEL_ICONNUM 8
