/******************************************************************************
 x_CFind.h

			Header File For CFind Lower-Layer Dialog Class
	

	Copyright (C) 1985-1992  New York University
	Copyright (C) 1994 George Washington University
	 
	This file is part of the GWAdaEd system, an extension of the Ada/Ed-C
	system.  See the Ada/Ed README file for warranty (none) and distribution
	info and also the GNU General Public License for more details.


	Generated by Classyª (Object Factory)

	This file is rewritten each time you generate code. You should not
	make changes to this file; changes should go in the My.h
	file, instead.

	If you want to change how Classy generates this file, you can
	change the template for this file. It is "_Dialog.h" in the Classy
	Templates folder.

 ******************************************************************************/

#pragma once

#include <CDialogDirector.h>

CLASS CStaticText;
CLASS CDialogText;
CLASS CButtonProc;

	// Data struct for initializing dialog items
	// and receiving changed values

typedef struct
{
  										/* Dialog text						*/
	Str255			fFind_Edit4;
  										/* Dialog text						*/
	Str255			fFind_Edit5;
} CFindData;

	// We define a separate struct for UpdateData() which
	// eliminates duplicate data types

typedef struct
{
	Str255		stringvalue;			// CDialogText
	long		longvalue;				// CIntegerText
	short		value;					// All other controls and buttons
	Point		selection;				// CArrayPane
} CFindUpdate;

CLASS CDirectorOwner;
CLASS CPanorama;
CLASS CPane;

class x_CFind : public CDialogDirector
{
public:

										// Pointers to panes in window
	CStaticText	*fFind_Stat2;
	CStaticText	*fFind_Stat3;
	CDialogText	*fFind_Edit4;
	CDialogText	*fFind_Edit5;
	CButtonProc	*fFind_Butn7;
	CButtonProc	*fFind_Butn8;
	CButtonProc	*fFind_Butn15;


	void 	Ix_CFind(CDirectorOwner *aSupervisor);

	virtual	long	DoModalDialog(long defaultCmd);
	virtual	Boolean	Close(Boolean quitting);
	virtual	void	ProviderChanged(CCollaborator *aProvider, long reason, void* info);

protected:
	Boolean			ignore;
	CFindData	saveData;

	virtual void 	MakeNewWindow(void);
	virtual void 	BeginData(CFindData *initial);
	virtual void 	UpdateData(CFindUpdate *update, long itemNo);
	virtual void 	EndData(CFindData *final);


	CPane	*FindPane(long ID);

private:
	virtual	void 	DoBeginData(void);
	virtual	void 	DoEndData(long theCommand);
};

#define	CVueCFind	133
