;*******************************************************************************
; Director - WorkSpace
;
; Copyright (C) 2002, Nick Craig-Wood and the RISC OS Director Developers
;
;This program is free software; you can redistribute it and/or modify it under
;the terms of the GNU General Public License as published by the Free Software
;Foundation; either version 2 of the License, or (at your option) any later
;version.
;
;This program is distributed in the hope that it will be useful, but WITHOUT ANY
;WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
;PARTICULAR PURPOSE. See the GNU General Public License for more details.
;
;You should have received a copy of the GNU General Public License along with
;this program; if not, write to the Free Software Foundation, Inc., 59 Temple
;Place - Suite 330, Boston, MA 02111-1307, USA
;
;*******************************************************************************
;----h- Director.h.WorkSpace
; Name
;   WorkSpace
;
; Purpose
;   WorkSpace
;------
;*******************************************************************************



			TTL	> WorkSpace
				; This holds the workspace definitions

;*******************************************************************************
;Memory sizing constants
;*******************************************************************************

StringSize		EQU	256
TaskStackSize		EQU	1024

;*******************************************************************************
;Memory allocation
;*******************************************************************************

			^	0,wp
;Global variables

SaveRegsSpace		#	4		;space for SaveRegs and RestoreRegs
PrivateWord		#	4
StartModule		#	4
TaskHandle		#	4
FilerHandle		#	4
PollWord		#	4
CurrentMenuItem		#	4
FiltersRunning		#	4
GiveOldMenu		#	4
InfoWindow		#	4		; holds the window handle for the Info window	; Obsolete
SaveWindow		#	4		; holds the window handle for the Save window
KeysWindow		#	4		; holds the window handle for the Keys window
Status			#	4		; hold the status of Director, Initialsing, running or quitting.


; Option settings

OptionWimpslotMin		#	4	; Minimum size of the wimpslot for support programs
OptionWimpslotMax		#	4	; Maximum size of the wimpslot for support programs
OptionFilerBootApps		#	4	; Filer_Boot applications which appear on menus
OptionCanonFilenames		#	4	; canonicalise filesnames before they're opened/run
OptionMemoriseMenuMenu		#	4	; Memorise MenuMenu-ed files
OptionMoveMouse			#	4	; move the pointer when opening the 'OldMenu'
OptionWithPling			#	4	; keep the initial "!" in filenames

OptionMoveMouseX		#	4	; previous X value
OptionMoveMouseY		#	4	; previous Y value



;Lists

MenuStoredAnchor	#	4
MenuDisplayedAnchor	#	4
IconsAnchor		#	4
FiltersAnchor		#	4
WindowsAnchor		#	4
EditAnchor		#	4
URLAnchor		#	4

;Memory manager info

MallocBlocks		#	4
MallocTotalSize		#	4
MemoryPageSize		#	4
MemoryPages		#	4
DynamicAreaNumber	#	4
DynamicAreaBase		#	4
DynamicAreaSize		#	4


;Storage

LastMenuBlock		#	Wimp_Pointer


;Variables

BMGVars			#	2 * 4		; BMG Variables
EndBMGVars		#	0

FilterVars		#	12 * 4		; Filter Variables
EndFilterVars		#	0

IconsVars		#	0 * 4		; Icons Variables
EndIconsVars		#	0

MemoriserVars		#	7 * 4		; Memoriser Variables
EndMemoriserVars	#	0

MessageVars		#	2 * 4		; MessageTrans Variables
EndMessageVars		#	0

TaskVars		#	8 * 4		; Task Variables
EndTaskVars		#	0

URLVars	                #	4 * 4		; URL Variables
EndURLVars		#	0

WindowsVars		#	2 * 4		; Windows Variables
EndWindowsVars		#	0


			AlignSpace	64

TempSpace	#	StringSize

			;Task WorkSpace
Error_Block		#	StringSize		; Probably best to keep this separate.
PollSpace		#	1024			;These 2 areas could coalesce
TaskStack		#	TaskStackSize		;
IndirectSpace		#	1024
IndirectSpaceEnd	#	0


WorkSpaceSize		EQU	:INDEX: @

;*******************************************************************************
		END
