/******************************************************************************
 CSlots.h

				Header for CSlots ArrayPane 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) 9:07 PM Tue, Sep 28, 1993

	This file is only generated once. You can modify it by filling
	in the placeholder functions and adding any new functions you wish.

	If you change the name of the document class, a fresh version of this
	file will be generated. If you have made any changes to the file
	with the old name, you will have to copy those changes to the new
	file by hand.

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

#pragma once

#include "x_CSlots.h"
#include "MacAdaLib.h"

enum {	kCodeMTitle, kCodeTitles, kCodeFirst,  kCodeLast, kBlank1,
		kDataMTitle, kDataTitles, kDataFirst,  kDataLast, kBlank2,
		kExepMTitle, kExepTitles, kExepFirst,  kExepLast,
		kNumRows };

class CSlots : public x_CSlots
{
private:
			short	rows[kNumRows];
public:
			LSlot	code;
			LSlot	data;
			LSlot	exception;
			Boolean	haveSlots;

									/** Initialize **/
	void		ICSlots( CView *anEnclosure, CBureaucrat *aSupervisor,
							short aWidth, short aHeight,
							short aHEncl, short aVEncl,
							SizingOption aHSizing, SizingOption aVSizing);

	void	SetSlots(LSlot c, LSlot d, LSlot e);
	void	GetCellText( Cell aCell, short availableWidth, StringPtr itsText);
	void	BuildLine(SlotEntry slot, StringPtr itsText);
};
