ioa.c File Reference

#include "frontier.h"
#include "standard.h"
#include "ioa.h"

Include dependency graph for ioa.c:

Go to the source code of this file.

Defines

#define IOAopenUPP   (&IOAopenDesc)
#define IOAcloseUPP   (&IOAcloseDesc)
#define IOAcandoUPP   (&IOAcandoDesc)
#define IOAversionUPP   (&IOAversionDesc)
#define getconfigcommandUPP   (&getconfigcommandDesc)
#define initobjectcommandUPP   (&initobjectcommandDesc)
#define drawobjectcommandUPP   (&drawobjectcommandDesc)
#define editobjectcommandUPP   (&editobjectcommandDesc)
#define keystrokecommandUPP   (&keystrokecommandDesc)
#define idleobjectcommandUPP   (&idleobjectcommandDesc)
#define clickobjectcommandUPP   (&clickobjectcommandDesc)
#define cleanupobjectcommandUPP   (&cleanupobjectcommandDesc)
#define recalcobjectcommandUPP   (&recalcobjectcommandDesc)
#define canreplicateobjectcommandUPP   (&canreplicateobjectcommandDesc)
#define catchreturncommandUPP   (&catchreturncommandDesc)
#define getinvalrectcommandUPP   (&getinvalrectcommandDesc)
#define geteditrectcommandUPP   (&geteditrectcommandDesc)
#define getvaluecommandUPP   (&getvaluecommandDesc)
#define setvaluecommandUPP   (&setvaluecommandDesc)
#define setcursorcommandUPP   (&setcursorcommandDesc)
#define unpackdatacommandUPP   (&unpackdatacommandDesc)
#define disposedatacommandUPP   (&disposedatacommandDesc)
#define getattributescommandUPP   (&getattributescommandDesc)
#define setattributescommandUPP   (&setattributescommandDesc)
#define geticoncommandUPP   (&geticoncommandDesc)
#define getcardcommandUPP   (&getcardcommandDesc)
#define packdatacommandUPP   (&packdatacommandDesc)
#define debugobjectcommandUPP   (&debugobjectcommandDesc)

Typedefs

typedef pascal ComponentResult(* ComponentRoutine )(ComponentParameters *, Handle)
typedef void(* setupcallback )(tyioaconfigrecord *)

Enumerations

enum  { IOAopenProcInfo }
enum  { IOAcloseProcInfo }
enum  { IOAcandoProcInfo }
enum  { IOAversionProcInfo }
enum  { getconfigcommandProcInfo }
enum  { initobjectcommandProcInfo }
enum  { drawobjectcommandProcInfo }
enum  { editobjectcommandProcInfo }
enum  { keystrokecommandProcInfo }
enum  { idleobjectcommandProcInfo }
enum  { clickobjectcommandProcInfo }
enum  { cleanupobjectcommandProcInfo }
enum  { recalcobjectcommandProcInfo }
enum  { canreplicateobjectcommandProcInfo }
enum  { catchreturncommandProcInfo }
enum  { getinvalrectcommandProcInfo }
enum  { geteditrectcommandProcInfo }
enum  { getvaluecommandProcInfo }
enum  { setvaluecommandProcInfo }
enum  { setcursorcommandProcInfo }
enum  { unpackdatacommandProcInfo }
enum  { disposedatacommandProcInfo }
enum  { getattributescommandProcInfo }
enum  { setattributescommandProcInfo }
enum  { geticoncommandProcInfo }
enum  { getcardcommandProcInfo }
enum  { packdatacommandProcInfo }
enum  { debugobjectcommandProcInfo }

Functions

void IOAclearbytes (void *pclear, long ctclear)
short IOAmakemultiple (short val, short factor)
short IOAclosestmultiple (short val, short factor)
boolean IOAvisitobjects (hdlobject listhead, tyobjectvisitroutine visit)
void IOAcopystring (void *bssource, void *bsdest)
boolean IOApushstring (bigstring bssource, bigstring bsdest)
void IOAtexthandletostring (Handle htext, bigstring bs)
boolean IOAnewtexthandle (bigstring bs, Handle *htext)
void IOAellipsize (Str255 bs, short width)
void IOAcenterstring (Rect r, bigstring bs)
void IOAcenterrect (Rect *rcentered, Rect rcontains)
void IOAgetobjectsize (hdlobject h, short *height, short *width)
boolean IOAgetstringvalue (hdlobject h, Handle *hvalue)
boolean IOApushforecolor (RGBColor *rgb)
boolean IOApopforecolor (void)
boolean IOApushbackcolor (RGBColor *rgb)
boolean IOApopbackcolor (void)
boolean IOArunbuttonscript (hdlobject h)
boolean IOAgetbooleanvalue (hdlobject h, Handle *hvalue)
boolean IOAsetbooleanvalue (hdlobject h, Handle hvalue)
void IOAeditdrawtexthandle (Handle htext, Rect r, tyjustification j)
boolean IOArecalcobjectvalue (hdlobject h)
boolean IOAevalscript (hdlobject hself, Handle hscript, Handle *hvalue, OSType idlanguage, bigstring errorstring)
boolean IOAsetobjectvalue (hdlobject h, Handle hvalue)
boolean IOAgetnthstring (hdlobject h, short n, bigstring bs)
void IOAinvalobject (hdlobject h)
boolean IOAclearactivetextobject (void)
boolean IOAsetactivetextobject (hdlobject h)
boolean IOAeditclick (Point pt, boolean fl, Handle h)
boolean IOAeditselectall (Handle h)
boolean IOAeditidle (Handle h)
boolean IOAeditkeystroke (char ch, Handle h)
Handle IOAgetactiveeditrecord (void)
boolean IOAincolorwindow (hdlobject h)
boolean IOAopenresfile (void)
void IOAcloseresfile (void)
static boolean defaultGetObjectInvalRectCallback (hdlobject h, Rect *r)
static boolean defaultDebugObjectCallback (hdlobject h, bigstring errorstring)
static boolean defaultRecalcObjectCallback (hdlobject h, boolean flmajorrecalc)
static boolean defaultClickObjectCallback (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click)
static boolean defaultSetObjectCursorCallback (hdlobject h, Point pt)
static boolean defaultCatchReturnCallback (hdlobject h)
static boolean defaultUnpackDataCallback (hdlobject h)
static boolean defaultAppleEventCallback (hdlobject h, AppleEvent *event)
static boolean defaultPackDataCallback (hdlobject h, Handle *hpackeddata)
static boolean defaultDisposeDataCallback (hdlobject h)
static void callsetuproutine (setupcallback pcallback, tyioaconfigrecord *pconfig)
void name_of_IOA_setup_routine (tyioaconfigrecord *)
static pascal ComponentResult IOAopen (ComponentInstance self)
static pascal ComponentResult IOAclose (ComponentInstance self)
static pascal ComponentResult IOAcando (short selector)
static pascal ComponentResult IOAversion (void)
static pascal ComponentResult getconfigcommand (tyioaconfigrecord *stackedconfig)
static pascal ComponentResult initobjectcommand (tyobject *obj)
static pascal ComponentResult drawobjectcommand (hdlobject h)
static pascal ComponentResult editobjectcommand (hdlobject h, boolean flgoin)
static pascal ComponentResult keystrokecommand (hdlobject h, short ch)
static pascal ComponentResult idleobjectcommand (hdlobject h)
static pascal ComponentResult clickobjectcommand (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click)
static pascal ComponentResult cleanupobjectcommand (hdlobject h, short height, short width, Rect *r)
static pascal ComponentResult recalcobjectcommand (hdlobject h, boolean flmajorrecalc)
static pascal ComponentResult canreplicateobjectcommand (hdlobject h)
static pascal ComponentResult catchreturncommand (hdlobject h)
static pascal ComponentResult getinvalrectcommand (hdlobject h, Rect *r)
static pascal ComponentResult geteditrectcommand (hdlobject h, Rect *r)
static pascal ComponentResult getvaluecommand (hdlobject h, Handle *hvalue)
static pascal ComponentResult setvaluecommand (hdlobject h, Handle hvalue)
static pascal ComponentResult setcursorcommand (hdlobject h, Point pt)
static pascal ComponentResult unpackdatacommand (hdlobject h)
static pascal ComponentResult disposedatacommand (hdlobject h)
static pascal ComponentResult getattributescommand (hdlobject h, AppleEvent *event)
static pascal ComponentResult setattributescommand (hdlobject h, AppleEvent *event)
static pascal ComponentResult geticoncommand (Handle *hicon)
static pascal ComponentResult getcardcommand (Handle *hpackedcard)
static pascal ComponentResult packdatacommand (hdlobject h, Handle *hpackeddata)
static pascal ComponentResult debugobjectcommand (hdlobject h, Str255 errorstring)
pascal ComponentResult main (ComponentParameters *params, Handle hstorage)

Variables

static ComponentInstance selfinstance = 0
static short resfilenum = 0
static hdlcard hcard = nil
static tyioaconfigrecord config
static RoutineDescriptor IOAopenDesc = BUILD_ROUTINE_DESCRIPTOR (IOAopenProcInfo, IOAopen)
static RoutineDescriptor IOAcloseDesc = BUILD_ROUTINE_DESCRIPTOR (IOAcloseProcInfo, IOAclose)
static RoutineDescriptor IOAcandoDesc = BUILD_ROUTINE_DESCRIPTOR (IOAcandoProcInfo, IOAcando)
static RoutineDescriptor IOAversionDesc = BUILD_ROUTINE_DESCRIPTOR (IOAversionProcInfo, IOAversion)
static RoutineDescriptor getconfigcommandDesc = BUILD_ROUTINE_DESCRIPTOR (getconfigcommandProcInfo, getconfigcommand)
static RoutineDescriptor initobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (initobjectcommandProcInfo, initobjectcommand)
static RoutineDescriptor drawobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (drawobjectcommandProcInfo, drawobjectcommand)
static RoutineDescriptor editobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (editobjectcommandProcInfo, editobjectcommand)
static RoutineDescriptor keystrokecommandDesc = BUILD_ROUTINE_DESCRIPTOR (keystrokecommandProcInfo, keystrokecommand)
static RoutineDescriptor idleobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (idleobjectcommandProcInfo, idleobjectcommand)
static RoutineDescriptor clickobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (clickobjectcommandProcInfo, clickobjectcommand)
static RoutineDescriptor cleanupobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (cleanupobjectcommandProcInfo, cleanupobjectcommand)
static RoutineDescriptor recalcobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (recalcobjectcommandProcInfo, recalcobjectcommand)
static RoutineDescriptor canreplicateobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (canreplicateobjectcommandProcInfo, canreplicateobjectcommand)
static RoutineDescriptor catchreturncommandDesc = BUILD_ROUTINE_DESCRIPTOR (catchreturncommandProcInfo, catchreturncommand)
static RoutineDescriptor getinvalrectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (getinvalrectcommandProcInfo, getinvalrectcommand)
static RoutineDescriptor geteditrectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (geteditrectcommandProcInfo, geteditrectcommand)
static RoutineDescriptor getvaluecommandDesc = BUILD_ROUTINE_DESCRIPTOR (getvaluecommandProcInfo, getvaluecommand)
static RoutineDescriptor setvaluecommandDesc = BUILD_ROUTINE_DESCRIPTOR (setvaluecommandProcInfo, setvaluecommand)
static RoutineDescriptor setcursorcommandDesc = BUILD_ROUTINE_DESCRIPTOR (setcursorcommandProcInfo, setcursorcommand)
static RoutineDescriptor unpackdatacommandDesc = BUILD_ROUTINE_DESCRIPTOR (unpackdatacommandProcInfo, unpackdatacommand)
static RoutineDescriptor disposedatacommandDesc = BUILD_ROUTINE_DESCRIPTOR (disposedatacommandProcInfo, disposedatacommand)
static RoutineDescriptor getattributescommandDesc = BUILD_ROUTINE_DESCRIPTOR (getattributescommandProcInfo, getattributescommand)
static RoutineDescriptor setattributescommandDesc = BUILD_ROUTINE_DESCRIPTOR (setattributescommandProcInfo, setattributescommand)
static RoutineDescriptor geticoncommandDesc = BUILD_ROUTINE_DESCRIPTOR (geticoncommandProcInfo, geticoncommand)
static RoutineDescriptor getcardcommandDesc = BUILD_ROUTINE_DESCRIPTOR (getcardcommandProcInfo, getcardcommand)
static RoutineDescriptor packdatacommandDesc = BUILD_ROUTINE_DESCRIPTOR (packdatacommandProcInfo, packdatacommand)
static RoutineDescriptor debugobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (debugobjectcommandProcInfo, debugobjectcommand)


Define Documentation

#define canreplicateobjectcommandUPP   (&canreplicateobjectcommandDesc)
 

Definition at line 1187 of file ioa.c.

Referenced by main().

#define catchreturncommandUPP   (&catchreturncommandDesc)
 

Definition at line 1188 of file ioa.c.

Referenced by main().

#define cleanupobjectcommandUPP   (&cleanupobjectcommandDesc)
 

Definition at line 1185 of file ioa.c.

Referenced by main().

#define clickobjectcommandUPP   (&clickobjectcommandDesc)
 

Definition at line 1184 of file ioa.c.

Referenced by main().

#define debugobjectcommandUPP   (&debugobjectcommandDesc)
 

Definition at line 1201 of file ioa.c.

Referenced by main().

#define disposedatacommandUPP   (&disposedatacommandDesc)
 

Definition at line 1195 of file ioa.c.

Referenced by main().

#define drawobjectcommandUPP   (&drawobjectcommandDesc)
 

Definition at line 1180 of file ioa.c.

Referenced by main().

#define editobjectcommandUPP   (&editobjectcommandDesc)
 

Definition at line 1181 of file ioa.c.

Referenced by main().

#define getattributescommandUPP   (&getattributescommandDesc)
 

Definition at line 1196 of file ioa.c.

Referenced by main().

#define getcardcommandUPP   (&getcardcommandDesc)
 

Definition at line 1199 of file ioa.c.

Referenced by main().

#define getconfigcommandUPP   (&getconfigcommandDesc)
 

Definition at line 1178 of file ioa.c.

Referenced by main().

#define geteditrectcommandUPP   (&geteditrectcommandDesc)
 

Definition at line 1190 of file ioa.c.

Referenced by main().

#define geticoncommandUPP   (&geticoncommandDesc)
 

Definition at line 1198 of file ioa.c.

Referenced by main().

#define getinvalrectcommandUPP   (&getinvalrectcommandDesc)
 

Definition at line 1189 of file ioa.c.

Referenced by main().

#define getvaluecommandUPP   (&getvaluecommandDesc)
 

Definition at line 1191 of file ioa.c.

Referenced by main().

#define idleobjectcommandUPP   (&idleobjectcommandDesc)
 

Definition at line 1183 of file ioa.c.

Referenced by main().

#define initobjectcommandUPP   (&initobjectcommandDesc)
 

Definition at line 1179 of file ioa.c.

Referenced by main().

#define IOAcandoUPP   (&IOAcandoDesc)
 

Definition at line 1176 of file ioa.c.

Referenced by main().

#define IOAcloseUPP   (&IOAcloseDesc)
 

Definition at line 1175 of file ioa.c.

Referenced by main().

#define IOAopenUPP   (&IOAopenDesc)
 

Definition at line 1174 of file ioa.c.

Referenced by main().

#define IOAversionUPP   (&IOAversionDesc)
 

Definition at line 1177 of file ioa.c.

Referenced by main().

#define keystrokecommandUPP   (&keystrokecommandDesc)
 

Definition at line 1182 of file ioa.c.

Referenced by main().

#define packdatacommandUPP   (&packdatacommandDesc)
 

Definition at line 1200 of file ioa.c.

Referenced by main().

#define recalcobjectcommandUPP   (&recalcobjectcommandDesc)
 

Definition at line 1186 of file ioa.c.

Referenced by main().

#define setattributescommandUPP   (&setattributescommandDesc)
 

Definition at line 1197 of file ioa.c.

Referenced by main().

#define setcursorcommandUPP   (&setcursorcommandDesc)
 

Definition at line 1193 of file ioa.c.

Referenced by main().

#define setvaluecommandUPP   (&setvaluecommandDesc)
 

Definition at line 1192 of file ioa.c.

Referenced by main().

#define unpackdatacommandUPP   (&unpackdatacommandDesc)
 

Definition at line 1194 of file ioa.c.

Referenced by main().


Typedef Documentation

typedef pascal ComponentResult(* ComponentRoutine)(ComponentParameters *, Handle)
 

Definition at line 52 of file ioa.c.

typedef void(* setupcallback)(tyioaconfigrecord *)
 

Definition at line 54 of file ioa.c.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
IOAopenProcInfo 

Definition at line 956 of file ioa.c.

anonymous enum
 

Enumerator:
IOAcloseProcInfo 

Definition at line 962 of file ioa.c.

anonymous enum
 

Enumerator:
clickobjectcommandProcInfo 

Definition at line 1017 of file ioa.c.

anonymous enum
 

Enumerator:
cleanupobjectcommandProcInfo 

Definition at line 1027 of file ioa.c.

anonymous enum
 

Enumerator:
recalcobjectcommandProcInfo 

Definition at line 1036 of file ioa.c.

anonymous enum
 

Enumerator:
canreplicateobjectcommandProcInfo 

Definition at line 1043 of file ioa.c.

anonymous enum
 

Enumerator:
catchreturncommandProcInfo 

Definition at line 1049 of file ioa.c.

anonymous enum
 

Enumerator:
getinvalrectcommandProcInfo 

Definition at line 1055 of file ioa.c.

anonymous enum
 

Enumerator:
geteditrectcommandProcInfo 

Definition at line 1062 of file ioa.c.

anonymous enum
 

Enumerator:
getvaluecommandProcInfo 

Definition at line 1069 of file ioa.c.

anonymous enum
 

Enumerator:
setvaluecommandProcInfo 

Definition at line 1076 of file ioa.c.

anonymous enum
 

Enumerator:
setcursorcommandProcInfo 

Definition at line 1083 of file ioa.c.

anonymous enum
 

Enumerator:
IOAcandoProcInfo 

Definition at line 968 of file ioa.c.

anonymous enum
 

Enumerator:
unpackdatacommandProcInfo 

Definition at line 1090 of file ioa.c.

anonymous enum
 

Enumerator:
disposedatacommandProcInfo 

Definition at line 1096 of file ioa.c.

anonymous enum
 

Enumerator:
getattributescommandProcInfo 

Definition at line 1102 of file ioa.c.

anonymous enum
 

Enumerator:
setattributescommandProcInfo 

Definition at line 1109 of file ioa.c.

anonymous enum
 

Enumerator:
geticoncommandProcInfo 

Definition at line 1116 of file ioa.c.

anonymous enum
 

Enumerator:
getcardcommandProcInfo 

Definition at line 1122 of file ioa.c.

anonymous enum
 

Enumerator:
packdatacommandProcInfo 

Definition at line 1128 of file ioa.c.

anonymous enum
 

Enumerator:
debugobjectcommandProcInfo 

Definition at line 1135 of file ioa.c.

anonymous enum
 

Enumerator:
IOAversionProcInfo 

Definition at line 974 of file ioa.c.

anonymous enum
 

Enumerator:
getconfigcommandProcInfo 

Definition at line 979 of file ioa.c.

anonymous enum
 

Enumerator:
initobjectcommandProcInfo 

Definition at line 985 of file ioa.c.

anonymous enum
 

Enumerator:
drawobjectcommandProcInfo 

Definition at line 991 of file ioa.c.

anonymous enum
 

Enumerator:
editobjectcommandProcInfo 

Definition at line 997 of file ioa.c.

anonymous enum
 

Enumerator:
keystrokecommandProcInfo 

Definition at line 1004 of file ioa.c.

anonymous enum
 

Enumerator:
idleobjectcommandProcInfo 

Definition at line 1011 of file ioa.c.


Function Documentation

static void callsetuproutine setupcallback  pcallback,
tyioaconfigrecord pconfig
[static]
 

Definition at line 581 of file ioa.c.

References defaultAppleEventCallback(), defaultCatchReturnCallback(), defaultClickObjectCallback(), defaultDebugObjectCallback(), defaultDisposeDataCallback(), defaultGetObjectInvalRectCallback(), defaultPackDataCallback(), defaultRecalcObjectCallback(), defaultSetObjectCursorCallback(), defaultUnpackDataCallback(), IOAclearbytes(), IOAsetobjectvalue(), and longsizeof.

Referenced by IOAopen(), and main().

Here is the call graph for this function:

static pascal ComponentResult canreplicateobjectcommand hdlobject  h  )  [static]
 

Definition at line 761 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult catchreturncommand hdlobject  h  )  [static]
 

Definition at line 769 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult cleanupobjectcommand hdlobject  h,
short  height,
short  width,
Rect r
[static]
 

Definition at line 745 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult clickobjectcommand hdlobject  listhead,
hdlobject  h,
Point  pt,
boolean  flshiftkey,
boolean  fl2click
[static]
 

Definition at line 737 of file ioa.c.

References config, h, hcard, and pt.

Referenced by main().

static pascal ComponentResult debugobjectcommand hdlobject  h,
Str255  errorstring
[static]
 

Definition at line 912 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static boolean defaultAppleEventCallback hdlobject  h,
AppleEvent event
[static]
 

Definition at line 556 of file ioa.c.

Referenced by callsetuproutine().

static boolean defaultCatchReturnCallback hdlobject  h  )  [static]
 

Definition at line 542 of file ioa.c.

Referenced by callsetuproutine().

static boolean defaultClickObjectCallback hdlobject  listhead,
hdlobject  h,
Point  pt,
boolean  flshiftkey,
boolean  fl2click
[static]
 

Definition at line 528 of file ioa.c.

Referenced by callsetuproutine().

static boolean defaultDebugObjectCallback hdlobject  h,
bigstring  errorstring
[static]
 

Definition at line 512 of file ioa.c.

References IOAcopystring().

Referenced by callsetuproutine().

Here is the call graph for this function:

static boolean defaultDisposeDataCallback hdlobject  h  )  [static]
 

Definition at line 574 of file ioa.c.

Referenced by callsetuproutine().

static boolean defaultGetObjectInvalRectCallback hdlobject  h,
Rect r
[static]
 

Definition at line 504 of file ioa.c.

Referenced by callsetuproutine().

static boolean defaultPackDataCallback hdlobject  h,
Handle hpackeddata
[static]
 

Definition at line 563 of file ioa.c.

References nil.

Referenced by callsetuproutine().

static boolean defaultRecalcObjectCallback hdlobject  h,
boolean  flmajorrecalc
[static]
 

Definition at line 521 of file ioa.c.

Referenced by callsetuproutine().

static boolean defaultSetObjectCursorCallback hdlobject  h,
Point  pt
[static]
 

Definition at line 535 of file ioa.c.

Referenced by callsetuproutine().

static boolean defaultUnpackDataCallback hdlobject  h  )  [static]
 

Definition at line 549 of file ioa.c.

Referenced by callsetuproutine().

static pascal ComponentResult disposedatacommand hdlobject  h  )  [static]
 

Definition at line 825 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult drawobjectcommand hdlobject  h  )  [static]
 

Definition at line 705 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult editobjectcommand hdlobject  h,
boolean  flgoin
[static]
 

Definition at line 713 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult getattributescommand hdlobject  h,
AppleEvent event
[static]
 

Definition at line 833 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult getcardcommand Handle hpackedcard  )  [static]
 

Definition at line 879 of file ioa.c.

References config, h, IOAcloseresfile(), and IOAopenresfile().

Referenced by main().

Here is the call graph for this function:

static pascal ComponentResult getconfigcommand tyioaconfigrecord stackedconfig  )  [static]
 

Definition at line 691 of file ioa.c.

References config, and longsizeof.

Referenced by main().

static pascal ComponentResult geteditrectcommand hdlobject  h,
Rect r
[static]
 

Definition at line 785 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult geticoncommand Handle hicon  )  [static]
 

Definition at line 849 of file ioa.c.

References config, h, IOAcloseresfile(), and IOAopenresfile().

Referenced by main().

Here is the call graph for this function:

static pascal ComponentResult getinvalrectcommand hdlobject  h,
Rect r
[static]
 

Definition at line 777 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult getvaluecommand hdlobject  h,
Handle hvalue
[static]
 

Definition at line 793 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult idleobjectcommand hdlobject  h  )  [static]
 

Definition at line 729 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult initobjectcommand tyobject obj  )  [static]
 

Definition at line 699 of file ioa.c.

References config.

Referenced by main().

static pascal ComponentResult IOAcando short  selector  )  [static]
 

Definition at line 643 of file ioa.c.

References IOAcanreplicatcommand, IOAcatchreturncommand, IOAcleanupcommand, IOAclickcommand, IOAdebugobjectcommand, IOAdisposedatacommand, IOAdrawobjectcommand, IOAeditobjectcommand, IOAgetattributescommand, IOAgetcardcommand, IOAgetconfigcommand, IOAgeticoncommand, IOAgetobjecteditrectcommand, IOAgetobjectinvalrectcommand, IOAgetvaluecommand, IOAidlecommand, IOAinitobjectcommand, IOAkeystrokecommand, IOApackdatacommand, IOArecalccommand, IOAsetattributescommand, IOAsetcursorcommand, IOAsetvaluecommand, and IOAunpackdatacommand.

Referenced by main().

void IOAcenterrect Rect rcentered,
Rect  rcontains
 

Definition at line 321 of file ioa.c.

References r.

Referenced by drawiconobject(), and drawpicture().

void IOAcenterstring Rect  r,
bigstring  bs
 

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 *  pclear,
long  ctclear
 

Definition at line 65 of file ioa.c.

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

static pascal ComponentResult IOAclose ComponentInstance  self  )  [static]
 

Definition at line 636 of file ioa.c.

References noErr.

Referenced by main().

void IOAcloseresfile void   ) 
 

Definition at line 495 of file ioa.c.

References resfilenum.

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

short IOAclosestmultiple short  val,
short  factor
 

Definition at line 94 of file ioa.c.

Referenced by cleanedittext(), and cleanscrollbar().

void IOAcopystring void *  bssource,
void *  bsdest
 

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  pt,
boolean  fl,
Handle  h
 

Definition at line 450 of file ioa.c.

References pt.

Referenced by clickedittext().

void IOAeditdrawtexthandle Handle  htext,
Rect  r,
tyjustification  j
 

Definition at line 402 of file ioa.c.

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

boolean IOAeditidle Handle  h  ) 
 

Definition at line 462 of file ioa.c.

Referenced by idleedittext().

boolean IOAeditkeystroke char  ch,
Handle  h
 

Definition at line 468 of file ioa.c.

Referenced by keystrokeedittext().

boolean IOAeditselectall Handle  h  ) 
 

Definition at line 456 of file ioa.c.

Referenced by editedittext(), and keystrokeedittext().

void IOAellipsize Str255  bs,
short  width
 

Definition at line 240 of file ioa.c.

References long.

Referenced by drawpopup(), and IOAcenterstring().

boolean IOAevalscript hdlobject  hself,
Handle  hscript,
Handle hvalue,
OSType  idlanguage,
bigstring  errorstring
 

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  h,
Handle hvalue
 

Definition at line 390 of file ioa.c.

References h.

Referenced by getcheckboxvalue(), and getradiovalue().

boolean IOAgetnthstring hdlobject  h,
short  n,
bigstring  bs
 

Definition at line 426 of file ioa.c.

References h.

void IOAgetobjectsize hdlobject  h,
short height,
short width
 

Definition at line 348 of file ioa.c.

References h.

Referenced by getbuttoneditrect().

boolean IOAgetstringvalue hdlobject  h,
Handle hvalue
 

Definition at line 354 of file ioa.c.

References h.

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

boolean IOAincolorwindow hdlobject  h  ) 
 

Definition at line 480 of file ioa.c.

void IOAinvalobject hdlobject  h  ) 
 

Definition at line 432 of file ioa.c.

References h.

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

short IOAmakemultiple short  val,
short  factor
 

Definition at line 75 of file ioa.c.

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

boolean IOAnewtexthandle bigstring  bs,
Handle htext
 

Definition at line 215 of file ioa.c.

References h, NewHandle, nil, and stringlength.

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

static pascal ComponentResult IOAopen ComponentInstance  self  )  [static]
 

Definition at line 622 of file ioa.c.

References callsetuproutine(), config, name_of_IOA_setup_routine(), noErr, and selfinstance.

Referenced by main().

Here is the call graph for this function:

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 rgb  ) 
 

Definition at line 372 of file ioa.c.

Referenced by drawcolorobject().

boolean IOApushforecolor RGBColor rgb  ) 
 

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  h  ) 
 

Definition at line 408 of file ioa.c.

References h.

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

boolean IOArunbuttonscript hdlobject  h  ) 
 

Definition at line 384 of file ioa.c.

References h.

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

boolean IOAsetactivetextobject hdlobject  h  ) 
 

Definition at line 444 of file ioa.c.

References h.

Referenced by clickedittext(), and editedittext().

boolean IOAsetbooleanvalue hdlobject  h,
Handle  hvalue
 

Definition at line 396 of file ioa.c.

References h.

Referenced by setcheckboxvalue(), and setradiovalue().

boolean IOAsetobjectvalue hdlobject  h,
Handle  hvalue
 

Definition at line 420 of file ioa.c.

References h.

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

void IOAtexthandletostring Handle  htext,
bigstring  bs
 

Definition at line 193 of file ioa.c.

References GetHandleSize, lenbigstring, nil, and setstringlength.

Referenced by gettextbehindbullets(), and setcolorpopupvalue().

static pascal ComponentResult IOAversion void   )  [static]
 

Definition at line 685 of file ioa.c.

Referenced by main().

boolean IOAvisitobjects hdlobject  listhead,
tyobjectvisitroutine  visit
 

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:

static pascal ComponentResult keystrokecommand hdlobject  h,
short  ch
[static]
 

Definition at line 721 of file ioa.c.

References config, h, and hcard.

Referenced by main().

pascal ComponentResult main ComponentParameters *  params,
Handle  hstorage
 

Definition at line 1282 of file ioa.c.

References callsetuproutine(), canreplicateobjectcommand(), canreplicateobjectcommandProcInfo, canreplicateobjectcommandUPP, catchreturncommand(), catchreturncommandProcInfo, catchreturncommandUPP, cleanupobjectcommand(), cleanupobjectcommandProcInfo, cleanupobjectcommandUPP, clickobjectcommand(), clickobjectcommandProcInfo, clickobjectcommandUPP, componentarray, config, debugobjectcommand(), debugobjectcommandProcInfo, debugobjectcommandUPP, disposedatacommand(), disposedatacommandProcInfo, disposedatacommandUPP, drawobjectcommand(), drawobjectcommandProcInfo, drawobjectcommandUPP, editobjectcommand(), editobjectcommandProcInfo, editobjectcommandUPP, getattributescommand(), getattributescommandProcInfo, getattributescommandUPP, getcardcommand(), getcardcommandProcInfo, getcardcommandUPP, getconfigcommand(), getconfigcommandProcInfo, getconfigcommandUPP, geteditrectcommand(), geteditrectcommandProcInfo, geteditrectcommandUPP, geticoncommand(), geticoncommandProcInfo, geticoncommandUPP, getinvalrectcommand(), getinvalrectcommandProcInfo, getinvalrectcommandUPP, getvaluecommand(), getvaluecommandProcInfo, getvaluecommandUPP, i, idleobjectcommand(), idleobjectcommandProcInfo, idleobjectcommandUPP, initobjectcommand(), initobjectcommandProcInfo, initobjectcommandUPP, IOAcando(), IOAcandoProcInfo, IOAcandoUPP, IOAcanreplicatcommand, IOAcatchreturncommand, IOAcleanupcommand, IOAclearbytes(), IOAclickcommand, IOAclose(), IOAcloseProcInfo, IOAcloseUPP, IOAdebugobjectcommand, IOAdisposedatacommand, IOAdrawobjectcommand, IOAeditobjectcommand, IOAgetattributescommand, IOAgetcardcommand, IOAgetconfigcommand, IOAgeticoncommand, IOAgetobjecteditrectcommand, IOAgetobjectinvalrectcommand, IOAgetvaluecommand, IOAidlecommand, IOAinitobjectcommand, IOAkeystrokecommand, IOAopen(), IOAopenProcInfo, IOAopenUPP, IOApackdatacommand, IOArecalccommand, IOAsetattributescommand, IOAsetcursorcommand, IOAsetvaluecommand, IOAunpackdatacommand, IOAversion(), IOAversionProcInfo, IOAversionUPP, keystrokecommand(), keystrokecommandProcInfo, keystrokecommandUPP, longsizeof, nil, noErr, packdatacommand(), packdatacommandProcInfo, packdatacommandUPP, pascal, recalcobjectcommand(), recalcobjectcommandProcInfo, recalcobjectcommandUPP, rect, setattributescommand(), setattributescommandProcInfo, setattributescommandUPP, setcursorcommand(), setcursorcommandProcInfo, setcursorcommandUPP, setupbutton(), setupcheckbox(), setupcolorpopup(), setupedittext(), setupframe(), setupicon(), setuppicture(), setuppopup(), setupradio(), setuprect(), setupscrollbar(), setupstatic(), setvaluecommand(), setvaluecommandProcInfo, setvaluecommandUPP, text, unpackdatacommand(), unpackdatacommandProcInfo, and unpackdatacommandUPP.

Here is the call graph for this function:

void name_of_IOA_setup_routine tyioaconfigrecord  ) 
 

Referenced by IOAopen().

static pascal ComponentResult packdatacommand hdlobject  h,
Handle hpackeddata
[static]
 

Definition at line 904 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult recalcobjectcommand hdlobject  h,
boolean  flmajorrecalc
[static]
 

Definition at line 753 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult setattributescommand hdlobject  h,
AppleEvent event
[static]
 

Definition at line 841 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult setcursorcommand hdlobject  h,
Point  pt
[static]
 

Definition at line 809 of file ioa.c.

References config, h, hcard, and pt.

Referenced by main().

static pascal ComponentResult setvaluecommand hdlobject  h,
Handle  hvalue
[static]
 

Definition at line 801 of file ioa.c.

References config, h, and hcard.

Referenced by main().

static pascal ComponentResult unpackdatacommand hdlobject  h  )  [static]
 

Definition at line 817 of file ioa.c.

References config, h, and hcard.

Referenced by main().


Variable Documentation

RoutineDescriptor canreplicateobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (canreplicateobjectcommandProcInfo, canreplicateobjectcommand) [static]
 

Definition at line 1157 of file ioa.c.

RoutineDescriptor catchreturncommandDesc = BUILD_ROUTINE_DESCRIPTOR (catchreturncommandProcInfo, catchreturncommand) [static]
 

Definition at line 1158 of file ioa.c.

RoutineDescriptor cleanupobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (cleanupobjectcommandProcInfo, cleanupobjectcommand) [static]
 

Definition at line 1155 of file ioa.c.

RoutineDescriptor clickobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (clickobjectcommandProcInfo, clickobjectcommand) [static]
 

Definition at line 1154 of file ioa.c.

tyioaconfigrecord config [static]
 

Definition at line 62 of file ioa.c.

RoutineDescriptor debugobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (debugobjectcommandProcInfo, debugobjectcommand) [static]
 

Definition at line 1171 of file ioa.c.

RoutineDescriptor disposedatacommandDesc = BUILD_ROUTINE_DESCRIPTOR (disposedatacommandProcInfo, disposedatacommand) [static]
 

Definition at line 1165 of file ioa.c.

RoutineDescriptor drawobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (drawobjectcommandProcInfo, drawobjectcommand) [static]
 

Definition at line 1150 of file ioa.c.

RoutineDescriptor editobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (editobjectcommandProcInfo, editobjectcommand) [static]
 

Definition at line 1151 of file ioa.c.

RoutineDescriptor getattributescommandDesc = BUILD_ROUTINE_DESCRIPTOR (getattributescommandProcInfo, getattributescommand) [static]
 

Definition at line 1166 of file ioa.c.

RoutineDescriptor getcardcommandDesc = BUILD_ROUTINE_DESCRIPTOR (getcardcommandProcInfo, getcardcommand) [static]
 

Definition at line 1169 of file ioa.c.

RoutineDescriptor getconfigcommandDesc = BUILD_ROUTINE_DESCRIPTOR (getconfigcommandProcInfo, getconfigcommand) [static]
 

Definition at line 1148 of file ioa.c.

RoutineDescriptor geteditrectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (geteditrectcommandProcInfo, geteditrectcommand) [static]
 

Definition at line 1160 of file ioa.c.

RoutineDescriptor geticoncommandDesc = BUILD_ROUTINE_DESCRIPTOR (geticoncommandProcInfo, geticoncommand) [static]
 

Definition at line 1168 of file ioa.c.

RoutineDescriptor getinvalrectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (getinvalrectcommandProcInfo, getinvalrectcommand) [static]
 

Definition at line 1159 of file ioa.c.

RoutineDescriptor getvaluecommandDesc = BUILD_ROUTINE_DESCRIPTOR (getvaluecommandProcInfo, getvaluecommand) [static]
 

Definition at line 1161 of file ioa.c.

hdlcard hcard = nil [static]
 

Definition at line 60 of file ioa.c.

Referenced by canreplicateobjectcommand(), cardEditCommand(), catchreturncommand(), checkcontrolexists(), cleanupobjectcommand(), clickobjectcommand(), debugobjectcommand(), disposedatacommand(), drawobjectcommand(), editobjectcommand(), getattributescommand(), geteditrectcommand(), getinvalrectcommand(), getObjectHandle(), getObjectValue(), getvaluecommand(), idleobjectcommand(), keystrokecommand(), packdatacommand(), recalcobjectcommand(), setattributescommand(), setcursorcommand(), setObjectValue(), setvaluecommand(), unpackdatacommand(), and updateCard().

RoutineDescriptor idleobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (idleobjectcommandProcInfo, idleobjectcommand) [static]
 

Definition at line 1153 of file ioa.c.

RoutineDescriptor initobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (initobjectcommandProcInfo, initobjectcommand) [static]
 

Definition at line 1149 of file ioa.c.

RoutineDescriptor IOAcandoDesc = BUILD_ROUTINE_DESCRIPTOR (IOAcandoProcInfo, IOAcando) [static]
 

Definition at line 1146 of file ioa.c.

RoutineDescriptor IOAcloseDesc = BUILD_ROUTINE_DESCRIPTOR (IOAcloseProcInfo, IOAclose) [static]
 

Definition at line 1145 of file ioa.c.

RoutineDescriptor IOAopenDesc = BUILD_ROUTINE_DESCRIPTOR (IOAopenProcInfo, IOAopen) [static]
 

Definition at line 1144 of file ioa.c.

RoutineDescriptor IOAversionDesc = BUILD_ROUTINE_DESCRIPTOR (IOAversionProcInfo, IOAversion) [static]
 

Definition at line 1147 of file ioa.c.

RoutineDescriptor keystrokecommandDesc = BUILD_ROUTINE_DESCRIPTOR (keystrokecommandProcInfo, keystrokecommand) [static]
 

Definition at line 1152 of file ioa.c.

RoutineDescriptor packdatacommandDesc = BUILD_ROUTINE_DESCRIPTOR (packdatacommandProcInfo, packdatacommand) [static]
 

Definition at line 1170 of file ioa.c.

RoutineDescriptor recalcobjectcommandDesc = BUILD_ROUTINE_DESCRIPTOR (recalcobjectcommandProcInfo, recalcobjectcommand) [static]
 

Definition at line 1156 of file ioa.c.

short resfilenum = 0 [static]
 

Definition at line 58 of file ioa.c.

Referenced by IOAcloseresfile(), and IOAopenresfile().

ComponentInstance selfinstance = 0 [static]
 

Definition at line 56 of file ioa.c.

Referenced by IOAopen(), and IOAopenresfile().

RoutineDescriptor setattributescommandDesc = BUILD_ROUTINE_DESCRIPTOR (setattributescommandProcInfo, setattributescommand) [static]
 

Definition at line 1167 of file ioa.c.

RoutineDescriptor setcursorcommandDesc = BUILD_ROUTINE_DESCRIPTOR (setcursorcommandProcInfo, setcursorcommand) [static]
 

Definition at line 1163 of file ioa.c.

RoutineDescriptor setvaluecommandDesc = BUILD_ROUTINE_DESCRIPTOR (setvaluecommandProcInfo, setvaluecommand) [static]
 

Definition at line 1162 of file ioa.c.

RoutineDescriptor unpackdatacommandDesc = BUILD_ROUTINE_DESCRIPTOR (unpackdatacommandProcInfo, unpackdatacommand) [static]
 

Definition at line 1164 of file ioa.c.


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