ioa.h File Reference

#include <appletdefs.h>
#include <AppleEvents.h>

Include dependency graph for ioa.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tyobject
struct  tycard
struct  tyioaconfigrecord

Defines

#define ioainclude
#define idUserTalk   'LAND'
#define idAppleScript   'ascr'
#define notype   0
#define grouptype   1
#define checkboxtype   2
#define radiobuttontype   3
#define picturetype   4
#define statictexttype   5
#define edittexttype   6
#define buttontype   7
#define scrollbartype   8
#define unusedtype2   9
#define recttype   10
#define ovaltype   11
#define linetype   12
#define icontype   13
#define formulatype   14
#define popuptype   15
#define clonetype   16
#define neverrecalc   1
#define initrecalc   2
#define changerecalc   3
#define timerecalc   4
#define cttemphandles   25
#define IOAgetconfigcommand   1
#define IOAinitobjectcommand   2
#define IOAdrawobjectcommand   3
#define IOAeditobjectcommand   4
#define IOAkeystrokecommand   5
#define IOAidlecommand   6
#define IOAclickcommand   7
#define IOAcleanupcommand   8
#define IOArecalccommand   9
#define IOAcanreplicatcommand   10
#define IOAcatchreturncommand   11
#define IOAgetobjectinvalrectcommand   12
#define IOAgetobjecteditrectcommand   13
#define IOAgetvaluecommand   14
#define IOAsetvaluecommand   15
#define IOAsetcursorcommand   16
#define IOAunpackdatacommand   17
#define IOAdebugobjectcommand   18
#define IOAgetattributescommand   19
#define IOAsetattributescommand   20
#define IOAgeticoncommand   21
#define IOAgetcardcommand   22
#define IOApackdatacommand   23
#define IOAdisposedatacommand   24

Typedefs

typedef long tyobjecttype
typedef tyobjectptrobject
typedef tyobject ** hdlobject
typedef boolean(* tyobjectvisitroutine )(hdlobject)
typedef void(* tyupdatecallback )(void)
typedef boolean(* tyobjectcallback )(hdlobject)
typedef boolean(* tystackedobjectcallback )(tyobject *)
typedef boolean(* tycleanobjectcallback )(hdlobject, short, short, Rect *)
typedef boolean(* tyobjectbooleancallback )(hdlobject, boolean)
typedef boolean(* tyobjectcharcallback )(hdlobject, char)
typedef boolean(* tyobjectrectcallback )(hdlobject, Rect *)
typedef boolean(* tyobjectptrhandlecallback )(hdlobject, Handle *)
typedef boolean(* tyobjecthandlecallback )(hdlobject, Handle)
typedef boolean(* tyobjectstringcallback )(hdlobject, Str255)
typedef boolean(* tymouseclickcallback )(hdlobject, hdlobject, Point, boolean, boolean)
typedef boolean(* tyobjectpointcallback )(hdlobject, Point)
typedef void(* tygetobjectsizecallback )(hdlobject, short *, short *)
typedef boolean(* tyshortcallback )(short)
typedef boolean(* tyvoidcallback )(void)
typedef void(* tydrawtexthandlecallback )(Handle, Rect, tyjustification)
typedef boolean(* tyhandlecallback )(Handle)
typedef boolean(* tyeditclickcallback )(Point, boolean, Handle)
typedef boolean(* tycharhandlecallback )(char, Handle)
typedef boolean(* tyRGBcallback )(const RGBColor *)
typedef Handle(* tyreturnshandlecallback )(void)
typedef boolean(* tygetnthstringcallback )(hdlobject, short, bigstring)
typedef boolean(* tyappleeventcallback )(hdlobject, AppleEvent *)
typedef boolean(* typackdatacallback )(hdlobject, Handle *)
typedef boolean(* tyunpackdatacallback )(hdlobject, Handle)
typedef boolean(* tyevalscriptcallback )(hdlobject, Handle, Handle *, OSType, bigstring)
typedef tycard ** hdlcard
typedef tyioaconfigrecordptrioaconfigrecord
typedef tyioaconfigrecord ** hdlioaconfigrecord

Functions

void setupconfig (tyioaconfigrecord *)
void IOAclearbytes (void *, long)
short IOAmakemultiple (short, short)
short IOAclosestmultiple (short, short)
void IOAgetobjectsize (hdlobject, short *, short *)
boolean IOAgetstringvalue (hdlobject, Handle *)
boolean IOApushforecolor (RGBColor *)
boolean IOApopforecolor (void)
boolean IOApushbackcolor (RGBColor *)
boolean IOApopbackcolor (void)
boolean IOAvisitobjects (hdlobject, tyobjectvisitroutine)
boolean IOArunbuttonscript (hdlobject)
void IOAcopystring (void *, void *)
boolean IOAgetbooleanvalue (hdlobject, Handle *)
boolean IOAsetbooleanvalue (hdlobject, Handle)
void IOAeditdrawtexthandle (Handle, Rect, tyjustification)
boolean IOArecalcobjectvalue (hdlobject)
boolean IOAevalscript (hdlobject, Handle, Handle *, OSType, bigstring)
boolean IOAsetobjectvalue (hdlobject, Handle)
boolean IOAgetnthstring (hdlobject, short, bigstring)
void IOAinvalobject (hdlobject)
void IOAtexthandletostring (Handle, bigstring)
boolean IOAnewtexthandle (bigstring, Handle *)
void IOAcenterstring (Rect, bigstring)
void IOAcenterrect (Rect *, Rect)
boolean IOAclearactivetextobject (void)
boolean IOAsetactivetextobject (hdlobject)
Handle IOAgetactiveeditrecord (void)
boolean IOAeditclick (Point, boolean, Handle)
boolean IOAeditselectall (Handle)
boolean IOAeditidle (Handle)
boolean IOAeditkeystroke (char, Handle)
void IOAellipsize (Str255, short)
boolean IOAincolorwindow (hdlobject)
boolean IOAopenresfile (void)
void IOAcloseresfile (void)
boolean IOApushstring (bigstring bssource, bigstring bsdest)
boolean IOAregistercomponent (void)
void IOAunregistercomponent (void)


Define Documentation

#define buttontype   7
 

Definition at line 83 of file ioa.h.

Referenced by mapkeyvisit(), sameasbuttontype(), and setupbutton().

#define changerecalc   3
 

Definition at line 110 of file ioa.h.

Referenced by minorrecalcvisit().

#define checkboxtype   2
 

Definition at line 73 of file ioa.h.

Referenced by returnNamedValueVisit(), and setupcheckbox().

#define clonetype   16
 

Definition at line 101 of file ioa.h.

Referenced by callfontaware(), callgetobjectname(), callpackdata(), callunpackdata(), derefclone(), disposeobject(), drawobject(), findrunmodeobject(), geteditrect(), getobjectinvalrect(), invalobject(), majorrecalcvisit(), postunpackfilter(), recalcclone(), and resetclonerect().

#define cttemphandles   25
 

Definition at line 214 of file ioa.h.

Referenced by disposehandle(), disposetemphandle(), getnewhandle(), pushtemphandle(), and releasetemphandles().

#define edittexttype   6
 

Definition at line 81 of file ioa.h.

Referenced by objectVisit(), returnNamedValueVisit(), setcardenable(), and setupedittext().

#define formulatype   14
 

Definition at line 97 of file ioa.h.

#define grouptype   1
 

Definition at line 71 of file ioa.h.

Referenced by callgetobjectname(), callpackdata(), callunpackdata(), drawobject(), findrunmodeobject(), findterminalobject(), geteditrect(), getobjectinvalrect(), getobjectrect(), getvalueforscript(), initexclusiveobjectsvisit(), IOAvisitobjects(), putobjectrect(), unpackobject(), validateobjectlist(), and visitobjects().

#define icontype   13
 

Definition at line 95 of file ioa.h.

Referenced by setupicon().

#define idAppleScript   'ascr'
 

Definition at line 61 of file ioa.h.

#define idUserTalk   'LAND'
 

Definition at line 59 of file ioa.h.

Referenced by cardFastScript(), and unpackobject().

#define initrecalc   2
 

Definition at line 108 of file ioa.h.

Referenced by majorrecalcvisit().

#define IOAcanreplicatcommand   10
 

Definition at line 521 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAcatchreturncommand   11
 

Definition at line 522 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAcleanupcommand   8
 

Definition at line 519 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAclickcommand   7
 

Definition at line 518 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAdebugobjectcommand   18
 

Definition at line 529 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAdisposedatacommand   24
 

Definition at line 535 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAdrawobjectcommand   3
 

Definition at line 514 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAeditobjectcommand   4
 

Definition at line 515 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAgetattributescommand   19
 

Definition at line 530 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAgetcardcommand   22
 

Definition at line 533 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAgetconfigcommand   1
 

Definition at line 512 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAgeticoncommand   21
 

Definition at line 532 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAgetobjecteditrectcommand   13
 

Definition at line 524 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAgetobjectinvalrectcommand   12
 

Definition at line 523 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAgetvaluecommand   14
 

Definition at line 525 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAidlecommand   6
 

Definition at line 517 of file ioa.h.

Referenced by IOAcando(), and main().

#define ioainclude
 

Definition at line 28 of file ioa.h.

#define IOAinitobjectcommand   2
 

Definition at line 513 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAkeystrokecommand   5
 

Definition at line 516 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOApackdatacommand   23
 

Definition at line 534 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOArecalccommand   9
 

Definition at line 520 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAsetattributescommand   20
 

Definition at line 531 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAsetcursorcommand   16
 

Definition at line 527 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAsetvaluecommand   15
 

Definition at line 526 of file ioa.h.

Referenced by IOAcando(), and main().

#define IOAunpackdatacommand   17
 

Definition at line 528 of file ioa.h.

Referenced by IOAcando(), and main().

#define linetype   12
 

Definition at line 93 of file ioa.h.

#define neverrecalc   1
 

Definition at line 106 of file ioa.h.

Referenced by nilvaluesvisit(), unpackobject(), and validateobjectlist().

#define notype   0
 

Definition at line 69 of file ioa.h.

Referenced by getverbresult(), and landsendverb().

#define ovaltype   11
 

Definition at line 91 of file ioa.h.

#define picturetype   4
 

Definition at line 77 of file ioa.h.

Referenced by setuppicture().

#define popuptype   15
 

Definition at line 99 of file ioa.h.

Referenced by setuppopup().

#define radiobuttontype   3
 

Definition at line 75 of file ioa.h.

Referenced by clickradio(), returnNamedValueVisit(), and setupradio().

#define recttype   10
 

Definition at line 89 of file ioa.h.

Referenced by setuprect().

#define scrollbartype   8
 

Definition at line 85 of file ioa.h.

Referenced by setupscrollbar().

#define statictexttype   5
 

Definition at line 79 of file ioa.h.

Referenced by setupstatic().

#define timerecalc   4
 

Definition at line 112 of file ioa.h.

Referenced by checkagentvisit(), unpackobject(), and validateobjectlist().

#define unusedtype2   9
 

Definition at line 87 of file ioa.h.


Typedef Documentation

typedef struct tycard ** hdlcard
 

typedef struct tyioaconfigrecord ** hdlioaconfigrecord
 

typedef struct tyobject ** hdlobject
 

typedef struct tyioaconfigrecord * ptrioaconfigrecord
 

typedef struct tyobject * ptrobject
 

typedef boolean(* tyappleeventcallback)(hdlobject, AppleEvent *)
 

Definition at line 259 of file ioa.h.

typedef boolean(* tycharhandlecallback)(char, Handle)
 

Definition at line 251 of file ioa.h.

typedef boolean(* tycleanobjectcallback)(hdlobject, short, short, Rect *)
 

Definition at line 221 of file ioa.h.

typedef void(* tydrawtexthandlecallback)(Handle, Rect, tyjustification)
 

Definition at line 245 of file ioa.h.

typedef boolean(* tyeditclickcallback)(Point, boolean, Handle)
 

Definition at line 249 of file ioa.h.

typedef boolean(* tyevalscriptcallback)(hdlobject, Handle, Handle *, OSType, bigstring)
 

Definition at line 265 of file ioa.h.

typedef boolean(* tygetnthstringcallback)(hdlobject, short, bigstring)
 

Definition at line 257 of file ioa.h.

typedef void(* tygetobjectsizecallback)(hdlobject, short *, short *)
 

Definition at line 239 of file ioa.h.

typedef boolean(* tyhandlecallback)(Handle)
 

Definition at line 247 of file ioa.h.

typedef boolean(* tymouseclickcallback)(hdlobject, hdlobject, Point, boolean, boolean)
 

Definition at line 235 of file ioa.h.

typedef boolean(* tyobjectbooleancallback)(hdlobject, boolean)
 

Definition at line 223 of file ioa.h.

typedef boolean(* tyobjectcallback)(hdlobject)
 

Definition at line 217 of file ioa.h.

typedef boolean(* tyobjectcharcallback)(hdlobject, char)
 

Definition at line 225 of file ioa.h.

typedef boolean(* tyobjecthandlecallback)(hdlobject, Handle)
 

Definition at line 231 of file ioa.h.

typedef boolean(* tyobjectpointcallback)(hdlobject, Point)
 

Definition at line 237 of file ioa.h.

typedef boolean(* tyobjectptrhandlecallback)(hdlobject, Handle *)
 

Definition at line 229 of file ioa.h.

typedef boolean(* tyobjectrectcallback)(hdlobject, Rect *)
 

Definition at line 227 of file ioa.h.

typedef boolean(* tyobjectstringcallback)(hdlobject, Str255)
 

Definition at line 233 of file ioa.h.

typedef long tyobjecttype
 

Definition at line 64 of file ioa.h.

typedef boolean(* tyobjectvisitroutine)(hdlobject)
 

Definition at line 209 of file ioa.h.

typedef boolean(* typackdatacallback)(hdlobject, Handle *)
 

Definition at line 261 of file ioa.h.

typedef Handle(* tyreturnshandlecallback)(void)
 

Definition at line 255 of file ioa.h.

typedef boolean(* tyRGBcallback)(const RGBColor *)
 

Definition at line 253 of file ioa.h.

typedef boolean(* tyshortcallback)(short)
 

Definition at line 241 of file ioa.h.

typedef boolean(* tystackedobjectcallback)(tyobject *)
 

Definition at line 219 of file ioa.h.

typedef boolean(* tyunpackdatacallback)(hdlobject, Handle)
 

Definition at line 263 of file ioa.h.

typedef void(* tyupdatecallback)(void)
 

Definition at line 211 of file ioa.h.

typedef boolean(* tyvoidcallback)(void)
 

Definition at line 243 of file ioa.h.


Function Documentation

void IOAcenterrect Rect ,
Rect 
 

Definition at line 321 of file ioa.c.

References r.

Referenced by drawiconobject(), and drawpicture().

void IOAcenterstring Rect  ,
bigstring 
 

Definition at line 275 of file ioa.c.

References tyFontInfo::ascent, tyFontInfo::descent, DisposeRgn, h, IOAellipsize(), NewRgn, rgn, and v.

Referenced by drawpicture().

Here is the call graph for this function:

boolean IOAclearactivetextobject void   ) 
 

Definition at line 438 of file ioa.c.

Referenced by clickedittext(), and editedittext().

void IOAclearbytes void *  ,
long 
 

Definition at line 65 of file ioa.c.

Referenced by callsetuproutine(), getpopuprects(), main(), packpopupdata(), and packtextdata().

void IOAcloseresfile void   ) 
 

Definition at line 495 of file ioa.c.

References resfilenum.

Referenced by colormenuclick(), getcardcommand(), and geticoncommand().

short IOAclosestmultiple short  ,
short 
 

Definition at line 94 of file ioa.c.

Referenced by cleanedittext(), and cleanscrollbar().

void IOAcopystring void *  ,
void * 
 

Definition at line 146 of file ioa.c.

References i, and short.

Referenced by clickpopup(), defaultDebugObjectCallback(), drawpicture(), drawpopup(), getcolorpopupvalue(), getpopupvalue(), getscrollbarvalue(), initpopup(), packpopupdata(), setupbutton(), setupcheckbox(), setupcolorpopup(), setupedittext(), setupframe(), setupicon(), setuppicture(), setuppopup(), setupradio(), setuprect(), setupscrollbar(), setupstatic(), and unpackpopupdata().

boolean IOAeditclick Point  ,
boolean  ,
Handle 
 

Definition at line 450 of file ioa.c.

References pt.

Referenced by clickedittext().

void IOAeditdrawtexthandle Handle  ,
Rect  ,
tyjustification 
 

Definition at line 402 of file ioa.c.

Referenced by drawbutton(), drawcheckbox(), drawcolorobject(), drawedittext(), drawframe(), drawiconobject(), drawpopup(), drawradio(), and drawstatic().

boolean IOAeditidle Handle   ) 
 

Definition at line 462 of file ioa.c.

Referenced by idleedittext().

boolean IOAeditkeystroke char  ,
Handle 
 

Definition at line 468 of file ioa.c.

Referenced by keystrokeedittext().

boolean IOAeditselectall Handle   ) 
 

Definition at line 456 of file ioa.c.

Referenced by editedittext(), and keystrokeedittext().

void IOAellipsize Str255  ,
short 
 

Definition at line 240 of file ioa.c.

References long.

Referenced by drawpopup(), and IOAcenterstring().

boolean IOAevalscript hdlobject  ,
Handle  ,
Handle ,
OSType  ,
bigstring 
 

Definition at line 414 of file ioa.c.

Referenced by recalcbutton(), recalccheckbox(), recalccolorpopup(), recalcpopup(), and recalcradio().

Handle IOAgetactiveeditrecord void   ) 
 

Definition at line 474 of file ioa.c.

Referenced by clickedittext(), editedittext(), idleedittext(), and keystrokeedittext().

boolean IOAgetbooleanvalue hdlobject  ,
Handle
 

Definition at line 390 of file ioa.c.

References h.

Referenced by getcheckboxvalue(), and getradiovalue().

boolean IOAgetnthstring hdlobject  ,
short  ,
bigstring 
 

Definition at line 426 of file ioa.c.

References h.

void IOAgetobjectsize hdlobject  ,
short ,
short
 

Definition at line 348 of file ioa.c.

References h.

Referenced by getbuttoneditrect().

boolean IOAgetstringvalue hdlobject  ,
Handle
 

Definition at line 354 of file ioa.c.

References h.

Referenced by getbuttonvalue(), getedittextvalue(), getframevalue(), geticonvalue(), getrectvalue(), and getstaticvalue().

boolean IOAincolorwindow hdlobject   ) 
 

Definition at line 480 of file ioa.c.

void IOAinvalobject hdlobject   ) 
 

Definition at line 432 of file ioa.c.

References h.

Referenced by clickcheckbox(), clickcolorpopup(), clickpopup(), clickradio(), and recalcbutton().

short IOAmakemultiple short  ,
short 
 

Definition at line 75 of file ioa.c.

Referenced by cleanbutton(), cleancheckbox(), cleancolorpopup(), cleanedittext(), cleanframe(), cleanicon(), cleanpicture(), cleanpopup(), cleanradio(), and cleanrect().

boolean IOAnewtexthandle bigstring  ,
Handle
 

Definition at line 215 of file ioa.c.

References h, NewHandle, nil, and stringlength.

Referenced by getcolorpopupvalue(), getpopupattributes(), getpopupvalue(), getscrollbarvalue(), initpopup(), and settextbehindbullets().

boolean IOAopenresfile void   ) 
 

Definition at line 487 of file ioa.c.

References resfilenum, and selfinstance.

Referenced by colormenuclick(), getcardcommand(), and geticoncommand().

boolean IOApopbackcolor void   ) 
 

Definition at line 378 of file ioa.c.

Referenced by drawcolorobject().

boolean IOApopforecolor void   ) 
 

Definition at line 366 of file ioa.c.

Referenced by colormenuhandler(), drawframe(), drawrect(), and frameitem().

boolean IOApushbackcolor RGBColor  ) 
 

Definition at line 372 of file ioa.c.

Referenced by drawcolorobject().

boolean IOApushforecolor RGBColor  ) 
 

Definition at line 360 of file ioa.c.

Referenced by colormenuhandler(), drawframe(), drawrect(), and frameitem().

boolean IOApushstring bigstring  bssource,
bigstring  bsdest
 

Definition at line 165 of file ioa.c.

References lenbigstring, and stringlength.

Referenced by getcolorpopupvalue(), getpopupvalue(), getscrollbarvalue(), and pushlong().

boolean IOArecalcobjectvalue hdlobject   ) 
 

Definition at line 408 of file ioa.c.

References h.

Referenced by recalcedittext(), recalcframe(), recalciconobject(), recalcscrollbar(), and recalcstatic().

boolean IOAregistercomponent void   ) 
 

boolean IOArunbuttonscript hdlobject   ) 
 

Definition at line 384 of file ioa.c.

References h.

Referenced by clickbutton(), clickcheckbox(), clickcolorpopup(), clickicon(), clickpopup(), clickradio(), and clickrect().

boolean IOAsetactivetextobject hdlobject   ) 
 

Definition at line 444 of file ioa.c.

References h.

Referenced by clickedittext(), and editedittext().

boolean IOAsetbooleanvalue hdlobject  ,
Handle 
 

Definition at line 396 of file ioa.c.

References h.

Referenced by setcheckboxvalue(), and setradiovalue().

boolean IOAsetobjectvalue hdlobject  ,
Handle 
 

Definition at line 420 of file ioa.c.

References h.

Referenced by callsetuproutine(), recalcbutton(), and recalcedittext().

void IOAtexthandletostring Handle  ,
bigstring 
 

Definition at line 193 of file ioa.c.

References GetHandleSize, lenbigstring, nil, and setstringlength.

Referenced by gettextbehindbullets(), and setcolorpopupvalue().

void IOAunregistercomponent void   ) 
 

boolean IOAvisitobjects hdlobject  ,
tyobjectvisitroutine 
 

Definition at line 116 of file ioa.c.

References grouptype, IOAvisitobjects(), tyobject::nextobject, and nil.

Referenced by cardContainsEditTextObject(), cleanframe(), initbutton(), and IOAvisitobjects().

Here is the call graph for this function:

void setupconfig tyioaconfigrecord  ) 
 


Generated on Fri Jun 2 04:02:34 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6