/*===============================
|	EditStringHandler.c
|
|	Blugs 1.1 handler for editable text
|	www.blugs.com
|
|	Copyright © 1998-2001 Brian Hall
|	You may use these routines in your software without restriction.
|
|===============================*/
#include "Blugs.h"
#include "KeyFilters.h"

/*
	Implements a single-line editable text handler. It uses TextEdit for the inline
	editing but just uses QD text for display.
*/

pascal UInt32 EditString(	BLMessage			message,
							BLHandlerParamPtr	param		);
typedef struct
{
	BLKeyFilterProcPtr	keyFilter;	// Used for inline editing
	TEHandle			inlineTE;
	Boolean				doingInline;
	Str31				string;
} EditStringData, **EditStringHdl;


/* Imports the following flavors:

'TEXT'				Up to 31 characters.
kKeyFilterFlavor	A KeyFilterProcPtr.

Exports only 'TEXT' for now.
If there's an inline edit, gets text from TERec. Otherwise from string.
*/