iowafrontier.c File Reference

#include "frontier.h"
#include "standard.h"
#include <iac.h>
#include "shelltypes.h"
#include "iowacore.h"
#include "iowascript.h"
#include "iowaruntime.h"
#include "iowafrontier.h"

Include dependency graph for iowafrontier.c:

Go to the source code of this file.

Defines

#define idscriptresource   128
#define startcardtoken   'init'
#define setcardtoken   'sett'
#define closecardtoken   'clos'
#define edittabletoken   'edtb'
#define getttabletoken   'gett'
#define scriptmodebits   kOSANullMode

Functions

static void getappspec (FSSpec *fs)
static void componenterrormessage (OSErr ec, bigstring errormessage)
static boolean getcompiledscript (OSAID *scriptid, ComponentInstance *scriptcomp, bigstring errormessage)
static boolean callcompiledscript (AppleEvent *message, OSType resulttype, bigstring errormessage, Handle *hreturned)
static boolean newevent (OSType token, AppleEvent *event)
boolean findfrontiercomponent (void)
boolean frontStartCard (AEDesc *filelist)
boolean frontSetRuntimeCard (boolean flswitchingin, boolean flmajorswitch)
boolean frontEditTable (bigstring tablewindowtitle)
boolean frontGetTable (void)
boolean frontDeleteCardTable (void)


Define Documentation

#define closecardtoken   'clos'
 

Definition at line 60 of file iowafrontier.c.

Referenced by frontDeleteCardTable().

#define edittabletoken   'edtb'
 

Definition at line 61 of file iowafrontier.c.

Referenced by frontEditTable().

#define getttabletoken   'gett'
 

Definition at line 62 of file iowafrontier.c.

Referenced by frontGetTable().

#define idscriptresource   128
 

Definition at line 55 of file iowafrontier.c.

Referenced by getcompiledscript().

#define scriptmodebits   kOSANullMode
 

Definition at line 86 of file iowafrontier.c.

Referenced by callcompiledscript().

#define setcardtoken   'sett'
 

Definition at line 59 of file iowafrontier.c.

Referenced by frontSetRuntimeCard().

#define startcardtoken   'init'
 

Definition at line 58 of file iowafrontier.c.

Referenced by frontStartCard().


Function Documentation

static boolean callcompiledscript AppleEvent message,
OSType  resulttype,
bigstring  errormessage,
Handle hreturned
[static]
 

Definition at line 221 of file iowafrontier.c.

References componenterrormessage(), copydatahandle(), copyhandle(), copystring(), datahandletostring(), getcompiledscript(), nil, noErr, scriptmodebits, setstringlength, texthandletostring(), typeChar, and typeNull.

Referenced by frontDeleteCardTable(), frontEditTable(), frontGetTable(), frontSetRuntimeCard(), and frontStartCard().

Here is the call graph for this function:

static void componenterrormessage OSErr  ec,
bigstring  errormessage
[static]
 

Definition at line 109 of file iowafrontier.c.

References copystring(), pushlong(), and pushstring().

Referenced by callcompiledscript(), and getcompiledscript().

Here is the call graph for this function:

boolean findfrontiercomponent void   ) 
 

Definition at line 326 of file iowafrontier.c.

References findlangcomponent(), and idfrontier.

Referenced by frontSetRuntimeCard().

Here is the call graph for this function:

boolean frontDeleteCardTable void   ) 
 

Definition at line 664 of file iowafrontier.c.

References alertdialog(), bigstring, callcompiledscript(), closecardtoken, disposehandle(), error, errormessage, tyIACglobals::event, IACglobals, IACpushstringparam(), newevent(), texthandletostring(), and typeChar.

Referenced by iowadisposerecord().

Here is the call graph for this function:

boolean frontEditTable bigstring  tablewindowtitle  ) 
 

Definition at line 560 of file iowafrontier.c.

References alertdialog(), bigstring, callcompiledscript(), disposehandle(), edittabletoken, error, errormessage, tyIACglobals::event, frontStartCard(), IACglobals, IACpushstringparam(), newevent(), nil, texthandletostring(), and typeChar.

Here is the call graph for this function:

boolean frontGetTable void   ) 
 

Definition at line 609 of file iowafrontier.c.

References alertdialog(), assert, bigstring, callcompiledscript(), disposehandle(), error, errormessage, tyIACglobals::event, getttabletoken, IACglobals, IACpushstringparam(), newevent(), nil, and texthandletostring().

Here is the call graph for this function:

boolean frontSetRuntimeCard boolean  flswitchingin,
boolean  flmajorswitch
 

Definition at line 470 of file iowafrontier.c.

References alertdialog(), bigstring, callcompiledscript(), disposehandle(), error, errormessage, tyIACglobals::event, findfrontiercomponent(), frontStartCard(), IACglobals, IACpushbooleanparam(), IACpushstringparam(), newevent(), nil, setcardtoken, texthandletostring(), and typeChar.

Referenced by cardcheckinit(), checkagentvisit(), checkrecalc(), objectclick(), recalcCardWindow(), runbuttonscript(), and runmodeactivate().

Here is the call graph for this function:

boolean frontStartCard AEDesc filelist  ) 
 

Definition at line 332 of file iowafrontier.c.

References alertdialog(), bigstring, callcompiledscript(), tyAEDesc::dataHandle, tyAEDesc::descriptorType, tyIACglobals::dontdisposenextparam, error, errormessage, tyIACglobals::event, getappspec(), IACglobals, IACpushbinaryparam(), IACpushfilespecparam(), IACpushstringparam(), installRuntimeEventHandlers(), iowadata, newdescnull(), newevent(), nil, noErr, setstringlength, startcardtoken, tycard::tablename, texthandletostring(), typeChar, and typeNull.

Referenced by frontEditTable(), frontSetRuntimeCard(), runHostedCard(), runModalCard(), and runModelessCard().

Here is the call graph for this function:

static void getappspec FSSpec fs  )  [static]
 

Definition at line 91 of file iowafrontier.c.

References info, and long.

Referenced by frontStartCard().

static boolean getcompiledscript OSAID *  scriptid,
ComponentInstance *  scriptcomp,
bigstring  errormessage
[static]
 

Definition at line 119 of file iowafrontier.c.

References componenterrormessage(), copystring(), tyAEDesc::dataHandle, tyAEDesc::descriptorType, findlangcomponent(), GetHandleSize, HLock, HUnlock, idfrontier, idscriptresource, nil, and noErr.

Referenced by callcompiledscript().

Here is the call graph for this function:

static boolean newevent OSType  token,
AppleEvent event
[static]
 

Definition at line 303 of file iowafrontier.c.

References noErr, and typeProcessSerialNumber.

Referenced by frontDeleteCardTable(), frontEditTable(), frontGetTable(), frontSetRuntimeCard(), and frontStartCard().


Generated on Fri Jun 2 04:40:10 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6