home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
gnu
/
ixemul-39.47-env-bin.lha
/
include
/
libraries
/
reqtools.i
< prev
Wrap
Text File
|
1993-08-25
|
18KB
|
585 lines
IFND LIBRARIES_REQTOOLS_I
LIBRARIES_REQTOOLS_I SET 1
**
** $Filename: libraries/reqtools.i $
** $Release: 2.1 $
** $Revision: 38.10 $
**
** reqtools.library definitions
**
** (C) Copyright 1991-1993 Nico François
** All Rights Reserved
**
IFND EXEC_LISTS_I
include "exec/lists.i"
ENDC
IFND EXEC_LIBRARIES_I
include "exec/libraries.i"
ENDC
IFND EXEC_SEMAPHORES_I
include "exec/semaphores.i"
ENDC
IFND LIBRARIES_DOS_I
include "libraries/dos.i"
ENDC
IFND LIBRARIES_DOSEXTENS_I
include "libraries/dosextens.i"
ENDC
IFND GRAPHICS_TEXT_I
include "graphics/text.i"
ENDC
IFND UTILITY_TAGITEM_I
include "utility/tagitem.i"
ENDC
REQTOOLSNAME MACRO
dc.b "reqtools.library",0
ENDM
REQTOOLSVERSION equ 38
************************
* *
* Preferences *
* *
************************
RTPREF_FILEREQ equ 0
RTPREF_FONTREQ equ 1
RTPREF_PALETTEREQ equ 2
RTPREF_SCREENMODEREQ equ 3
RTPREF_VOLUMEREQ equ 4
RTPREF_OTHERREQ equ 5
RTPREF_NR_OF_REQ equ 6
STRUCTURE ReqDefaults,0
ULONG rtrd_Size
ULONG rtrd_ReqPos
UWORD rtrd_LeftOffset
UWORD rtrd_TopOffset
UWORD rtrd_MinEntries
UWORD rtrd_MaxEntries
LABEL ReqDefaults_SIZE
STRUCTURE ReqToolsPrefs,0
* Size of preferences (_without_ this field and the semaphore)
ULONG rtpr_PrefsSize
STRUCT rtpr_PrefsSemaphore,SS_SIZE
* Start of real preferences
ULONG rtpr_Flags
STRUCT rtpr_ReqDefaults,RTPREF_NR_OF_REQ*ReqDefaults_SIZE
LABEL ReqToolsPrefs_SIZE
RTPREFS_SIZE equ (ReqToolsPrefs_SIZE-SS_SIZE-4)
* Flags
BITDEF RTPR,DIRSFIRST,0
BITDEF RTPR,DIRSMIXED,1
BITDEF RTPR,IMMSORT,2
BITDEF RTPR,NOSCRTOFRONT,3
************************
* *
* Library Base *
* *
************************
STRUCTURE ReqToolsBase,LIB_SIZE
UBYTE rt_RTFlags
STRUCT rt_pad,3
ULONG rt_SegList
* PUBLIC FIELDS *
* The following library bases may be read and used by your program
APTR rt_IntuitionBase
APTR rt_GfxBase
APTR rt_DOSBase
* Next two library bases are only (and always) valid on Kickstart 2.0!
* (1.3 version of reqtools also initializes these when run on 2.0)
APTR rt_GadToolsBase
APTR rt_UtilityBase
* PRIVATE FIELDS, THESE WILL CHANGE FROM RELEASE TO RELEASE!
* The RealOpenCnt is for the buffered AvailFonts feature. Since
* Kickstart 3.0 offers low memory handlers a release of ReqTools for
* 3.0 will not use this field and start using the normal OpenCnt again.
UWORD rt_RealOpenCnt
UWORD rt_AvailFontsLock
APTR rt_AvailFontsHeader
ULONG rt_FontsAssignType
BPTR rt_FontsAssignLock
APTR rt_FontsAssignList
STRUCT rt_ReqToolsPrefs,ReqToolsPrefs_SIZE
UWORD rt_prefspad
LABEL ReqToolsBase_SIZE
* types of requesters, for rtAllocRequestA()
RT_FILEREQ equ 0
RT_REQINFO equ 1
RT_FONTREQ equ 2
* (V38) *
RT_SCREENMODEREQ equ 3
************************
* *
* File requester *
* *
************************
* structure _MUST_ be allocated with rtAllocRequest()
STRUCTURE rtFileRequester,0
ULONG rtfi_ReqPos
UWORD rtfi_LeftOffset
UWORD rtfi_TopOffset
ULONG rtfi_Flags
ULONG rtfi_private1
APTR rtfi_Dir * READ ONLY! Change with rtChangeReqAttrA()!
APTR rtfi_MatchPat * READ ONLY! Change with rtChangeReqAttrA()!
APTR rtfi_DefaultFont
ULONG rtfi_WaitPointer
* (V38) *
ULONG rtfi_LockWindow
ULONG rtfi_ShareIDCMP
APTR rtfi_IntuiMsgFunc
UWORD rtfi_reserved1
UWORD rtfi_reserved2
UWORD rtfi_reserved3
UWORD rtfi_ReqHeight * READ ONLY! Use RTFI_Height tag!
* Lots of private data follows! HANDS OFF :-)
* returned by rtFileRequestA() if multiselect is enabled,
* free list with rtFreeFileList()
STRUCTURE rtFileList,0
APTR rtfl_Next
ULONG rtfl_StrLen
APTR rtfl_Name
LABEL rtFileList_SIZE
* structure passed to RTFI_FilterFunc callback hook by
* volume requester (see RTFI_VolumeRequest tag)
STRUCTURE rtVolumeEntry,0
ULONG rtve_Type * DLT_DEVICE or DLT_DIRECTORY
APTR rtve_Name
LABEL rtVolumeEntry_SIZE
************************
* *
* Font requester *
* *
************************
* structure _MUST_ be allocated with rtAllocRequest()
STRUCTURE rtFontRequester,0
ULONG rtfo_ReqPos
UWORD rtfo_LeftOffset
UWORD rtfo_TopOffset
ULONG rtfo_Flags
APTR rtfo_private1
STRUCT rtfo_Attr,ta_SIZEOF * READ ONLY!
APTR rtfo_DefaultFont
ULONG rtfo_WaitPointer
* (V38) *
ULONG rtfo_LockWindow
ULONG rtfo_ShareIDCMP
APTR rtfo_IntuiMsgFunc
UWORD rtfo_reserved1
UWORD rtfo_reserved2
UWORD rtfo_reserved3
UWORD rtfo_ReqHeight * READ ONLY! Use RTFO_Height tag!
* Lots of private data follows! HANDS OFF :-)
**************************
* *
* ScreenMode requester *
* *
**************************
* structure _MUST_ be allocated with rtAllocRequest()
STRUCTURE rtScreenModeRequester,0
ULONG rtsc_ReqPos
UWORD rtsc_LeftOffset
UWORD rtsc_TopOffset
ULONG rtsc_Flags
APTR rtsc_private1
*
ULONG rtsc_DisplayID * READ ONLY!
UWORD rtsc_DisplayWidth * READ ONLY!
UWORD rtsc_DisplayHeight * READ ONLY!
*
APTR rtsc_DefaultFont
ULONG rtsc_WaitPointer
ULONG rtsc_LockWindow
ULONG rtsc_ShareIDCMP
APTR rtsc_IntuiMsgFunc
UWORD rtsc_reserved1
UWORD rtsc_reserved2
UWORD rtsc_reserved3
UWORD rtsc_ReqHeight * READ ONLY! Use RTSC_Height tag!
*
UWORD rtsc_DisplayDepth * READ ONLY!
UWORD rtsc_OverscanType * READ ONLY!
ULONG rtsc_AutoScroll * READ ONLY!
* Lots of private data follows! HANDS OFF :-)
************************
* *
* Requester Info *
* *
************************
* for rtEZRequestA(), rtGetLongA(), rtGetStringA() and rtPaletteRequestA(),
* _MUST_ be allocated with rtAllocRequest()
STRUCTURE rtReqInfo,0
ULONG rtri_ReqPos
UWORD rtri_LeftOffset
UWORD rtri_TopOffset
ULONG rtri_Width * not for rtEZRequestA()
APTR rtri_ReqTitle * currently only for rtEZRequestA()
ULONG rtri_Flags
APTR rtri_DefaultFont * currently only for rtPaletteRequestA()
ULONG rtri_WaitPointer
* (V38) *
ULONG rtri_LockWindow
ULONG rtri_ShareIDCMP
ULONG rtri_IntuiMsgFunc
* structure may be extended in future
************************
* *
* Handler Info *
* *
************************
* for rtReqHandlerA(), will be allocated for you when you use
* the RT_ReqHandler tag, never try to allocate this yourself!
STRUCTURE rtHandlerInfo,4 * first longword is private!
ULONG rthi_WaitMask
ULONG rthi_DoNotWait
* Private data follows, HANDS OFF :-)
* possible return codes from rtReqHandlerA()
CALL_HANDLER equ $80000000
**************************************
* *
* TAGS *
* *
**************************************
RT_TagBase equ TAG_USER
*** tags understood by most requester functions ***
*
* optional pointer to window
RT_Window equ (RT_TagBase+1)
* idcmp flags requester should abort on (useful for IDCMP_DISKINSERTED)
RT_IDCMPFlags equ (RT_TagBase+2)
* position of requester window (see below) - default REQPOS_POINTER
RT_ReqPos equ (RT_TagBase+3)
* leftedge offset of requester relative to position specified by RT_ReqPos
RT_LeftOffset equ (RT_TagBase+4)
* topedge offset of requester relative to position specified by RT_ReqPos
RT_TopOffset equ (RT_TagBase+5)
* name of public screen to put requester on (use on Kickstart 2.0 only!)
RT