iowacore.c File Reference

#include "frontier.h"
#include "standard.h"
#include "shelltypes.h"
#include "byteorder.h"
#include <applet.h>
#include <appletmenuops.h>
#include "iowacore.h"
#include "iowascript.h"
#include "iowaparser.h"
#include "iowafrontier.h"
#include "iowaattributes.h"
#include "iowainfowindow.h"
#include "iowaiac.h"

Include dependency graph for iowacore.c:

Go to the source code of this file.

Data Structures

struct  tylookup
struct  tyautoname
struct  tythread

Functions

boolean unpacklist (hdlobject *)
boolean unpackobject (hdlobject *, boolean *)
boolean unpacksingleobject (Handle, hdlobject *)
static void iowareadclock (void)
void editclickbottleneck (Point pt, boolean flshiftkey, hdleditrecord hbuffer)
boolean runcardscript (Handle hscript, long idlanguage, boolean flgetreturn, bigstring errorstring, Handle *hreturns)
boolean cardFastScript (bigstring bspre, Handle hmid, bigstring bspost)
short makemultiple (short val, short factor)
short closestmultiple (short val, short factor)
void pushtemphandle (Handle h)
void releasetemphandles (void)
void disposetemphandle (Handle h)
void pushobjectstyle (hdlobject h)
void popobjectstyle (void)
static boolean autonamevisit (hdlobject h)
boolean autonameobject (hdlobject h)
static short framevertinset (void)
void toggleobjectflag (hdlobject h)
void getlastinlist (hdlobject h, hdlobject *hlast)
boolean inselection (hdlobject x)
short countobjects (hdlobject hlist)
boolean getnthobject (hdlobject hlist, short n, hdlobject *h)
boolean findobject (Point pt, hdlobject hlist, hdlobject *h)
void getchildobjectlist (hdlobject h, hdlobject *childobjectlist)
boolean findterminalobject (Point pt, hdlobject listhead, hdlobject *hparent, hdlobject *hobject)
boolean visitobjects (hdlobject listhead, tyobjectvisitroutine visit)
boolean visittoplevelobjects (hdlobject listhead, tyobjectvisitroutine visit)
static boolean cleartmpbitvisit (hdlobject h)
void clearalltmpbits (void)
boolean derefclone (hdlobject *hsource)
void turnoffallexclusiveobjects (hdlobject firstobject)
void turnonfirstexclusiveobject (hdlobject firstobject)
boolean initexclusiveobjectsvisit (hdlobject h)
boolean recalcbottleneck (hdlobject h, boolean flmajorrecalc)
boolean minorrecalcvisit (hdlobject h)
boolean majorrecalcvisit (hdlobject h)
static boolean checkagentvisit (hdlobject h)
void checkrecalc (void)
void schedulerecalc (hdlobject h, short ctticks)
void recalcobject (hdlobject h)
void getgrouprect (hdlobject h, Rect *r)
boolean getobjectrect (hdlobject h, Rect *robject)
void getobjectnamestring (hdlobject h, bigstring bs)
void getobjectvalue (hdlobject h, Handle *hvalue)
void getobjectsize (hdlobject h, short *height, short *width)
void getobjectname (hdlobject h, Handle *hname)
void getobjectscript (hdlobject h, Handle *hscript)
void getobjectrecalcscript (hdlobject h, Handle *hscript)
void setobjectvalue (hdlobject h, Handle hvalue)
void setobjectscript (hdlobject h, Handle hscript)
void setobjectrecalcscript (hdlobject h, Handle hscript)
void setobjectname (hdlobject h, Handle hname)
void setobjecterrormessage (hdlobject h, Handle herrorstring)
void waitfornexttick (void)
void debugrect (Rect r)
boolean iowagetstring (short ix, bigstring bs)
void iowainvalrect (Rect *rinval)
void getobjectinvalrect (hdlobject h, Rect *r)
void invalobject (hdlobject h)
void validobject (hdlobject h)
boolean unlinkobject (hdlobject x)
void movegroupto (hdlobject x, short h, short v)
boolean putobjectrect (hdlobject h, Rect r)
static boolean preupdatevisit (hdlobject h)
boolean iowapreupdate (void)
void disposeobjectlist (hdlobject hlist)
void disposeobject (hdlobject h)
boolean iowadisposerecord (void)
boolean geteditrect (hdlobject h, Rect *redit)
void getobjectframe (hdlobject h, Rect *r)
boolean iowaopenbitmap (Rect r)
boolean iowaclosebitmap (void)
static void checkminmax (Point pt)
static void checkrectoperation (Rect r)
static void resetclonerect (hdlobject h)
static void drawclone (hdlobject h)
void drawobject (hdlobject h)
void drawobjectnow (hdlobject h)
void drawobjectlist (hdlobject x)
static boolean iscolorport (GrafPtr pport)
void setnubonborder (void)
static void voidrect (Rect *rvoid)
static void drawgrid (void)
static void drawborder (void)
static void runmodedrawbackground (Rect rdraw)
static void drawbackground (Rect rdraw)
boolean iowaupdate (void)
static boolean showinvisiblesvisit (hdlobject h)
boolean showinvisiblesloop (void)
boolean setactivetextobject (hdlobject h)
void clearactivetextobject (void)
hdleditrecord getactiveeditrecord (void)
static boolean lookupvisit (hdlobject h)
boolean lookupname (bigstring bsname, hdlobject *h)
boolean iowagetbooleanvalue (hdlobject hobj, Handle *hvalue)
boolean iowasetbooleanvalue (hdlobject h, Handle hvalue)
boolean iowagetstringvalue (hdlobject hobj, Handle *hvalue)
boolean iowasetpictrect (void)
void sortobjectlist (void)
static boolean laythreadvisit (hdlobject h)
void laythread (void)
void iowaupdatenow (void)
boolean recalcobjectvalue (hdlobject h)
static boolean evalscript (hdlobject hself, Handle hscript, Handle *hvalue, OSType idlanguage, bigstring errorstring)
boolean runbuttonscript (hdlobject h)
boolean recalcclone (hdlobject h)
static boolean unpackhandle (long ctbytes, Handle *h)
static boolean checkobjectnamevisit (hdlobject h)
static boolean uniqueobjectname (hdlobject h)
static void checkobjectnames (void)
static void postunpackfilter (hdlobject h)
boolean iowaunpack (Handle hpacked)
boolean setCardValue (bigstring name, Handle hvalue)
boolean setCardValueCopy (bigstring name, Handle hvalue)
boolean setCardString (bigstring name, bigstring value)
boolean getCardValue (bigstring name, Handle *hvalue)
boolean getCardValueCopy (bigstring name, Handle *hcopy)
boolean setCardFlag (bigstring name, boolean fl)
boolean getCardFlag (bigstring name, boolean *fl)
static boolean getnthstring (hdlobject h, short n, bigstring bs)
void geteventwindow (EventRecord *ev, WindowPtr *eventwindow)
void initIOAcallbacks (void)

Variables

boolean displaydebug = false
hdlcard iowadata = nil
tylookup lookup
tyunpackglobals unpack = {nil, nil}
static tyautoname autoname
boolean flalertdialogrunning = false
static unsigned long now
static boolean specialflag1 = false
static boolean flsomethingrecalcd = false
tythread thread
static hdlobject hcheck


Function Documentation

boolean autonameobject hdlobject  h  ) 
 

Definition at line 373 of file iowacore.c.

References autoname, autonamevisit(), bigstring, copystring(), h, tyautoname::highestnum, iowagetstring(), newtexthandle(), pushstring(), setobjectname(), untitledobjectname, tyautoname::untitledstring, and visitobjects().

Referenced by checkobjectnamevisit(), and uniqueobjectname().

Here is the call graph for this function:

static boolean autonamevisit hdlobject  h  )  [static]
 

Definition at line 346 of file iowacore.c.

References autoname, bigstring, copystring(), deletestring(), tyautoname::highestnum, patternmatch(), stringlength, texthandletostring(), and tyautoname::untitledstring.

Referenced by autonameobject().

Here is the call graph for this function:

boolean cardFastScript bigstring  bspre,
Handle  hmid,
bigstring  bspost
 

Definition at line 177 of file iowacore.c.

References alertdialog(), bigstring, disposehandle(), error, errorstring, flalertdialogrunning, h, idUserTalk, newtexthandle(), pushhandleonhandle(), pushtexthandle(), runcardscript(), and stringlength.

Here is the call graph for this function:

static boolean checkagentvisit hdlobject  h  )  [static]
 

Definition at line 807 of file iowacore.c.

References flsomethingrecalcd, frontSetRuntimeCard(), h, now, recalcbottleneck(), and timerecalc.

Referenced by checkrecalc().

Here is the call graph for this function:

static void checkminmax Point  pt  )  [static]
 

Definition at line 1558 of file iowacore.c.

References pt, and r.

Referenced by checkrectoperation().

static void checkobjectnames void   )  [static]
 

Definition at line 2703 of file iowacore.c.

References uniqueobjectname(), and visitobjects().

Referenced by iowaunpack().

Here is the call graph for this function:

static boolean checkobjectnamevisit hdlobject  h  )  [static]
 

Definition at line 2669 of file iowacore.c.

References autonameobject(), disposehandle(), equalhandles(), h, hcheck, and nil.

Referenced by checkobjectname(), and uniqueobjectname().

Here is the call graph for this function:

void checkrecalc void   ) 
 

Definition at line 828 of file iowacore.c.

References checkagentvisit(), flsomethingrecalcd, frontSetRuntimeCard(), iowareadclock(), iowaupdatenow(), minorrecalcvisit(), and visitobjects().

Referenced by runmodeidle().

Here is the call graph for this function:

static void checkrectoperation Rect  r  )  [static]
 

Definition at line 1578 of file iowacore.c.

References checkminmax(), and pt.

Referenced by drawobject().

Here is the call graph for this function:

void clearactivetextobject void   ) 
 

Definition at line 2204 of file iowacore.c.

References editdispose(), editgettexthandlecopy(), h, invalobject(), iowadata, nil, setnubonborder(), and setobjectvalue().

Referenced by closeCardWindow(), initIOAcallbacks(), and setcardenable().

Here is the call graph for this function:

void clearalltmpbits void   ) 
 

Definition at line 608 of file iowacore.c.

References cleartmpbitvisit(), and visitobjects().

Referenced by iowaunpack().

Here is the call graph for this function:

static boolean cleartmpbitvisit hdlobject  h  )  [static]
 

Definition at line 600 of file iowacore.c.

Referenced by clearalltmpbits().

short closestmultiple short  val,
short  factor
 

Definition at line 246 of file iowacore.c.

short countobjects hdlobject  hlist  ) 
 

Definition at line 440 of file iowacore.c.

References ct, tyobject::nextobject, and nil.

Referenced by getnthobject().

void debugrect Rect  r  ) 
 

Definition at line 1156 of file iowacore.c.

References displaydebug, quickdrawglobal, and waitfornexttick().

Referenced by iowainvalrect(), preupdatevisit(), and setactivetextobject().

Here is the call graph for this function:

boolean derefclone hdlobject hsource  ) 
 

Definition at line 614 of file iowacore.c.

References clonetype, nil, and tyobject::objectdata.

Referenced by findrunmodeobject(), getobjectinvalrect(), initeditabletext(), initexclusiveobjectsvisit(), minorrecalcvisit(), movetextboxcursor(), objectclick(), runmodetracker(), runtimeeditableobject(), showinvisiblesvisit(), turnoffallexclusiveobjects(), and turnonfirstexclusiveobject().

void disposeobject hdlobject  h  ) 
 

Definition at line 1420 of file iowacore.c.

References calldisposedata(), clonetype, disposehandle(), disposeobject(), disposeobjectlist(), h, and nil.

Here is the call graph for this function:

void disposeobjectlist hdlobject  hlist  ) 
 

Definition at line 1404 of file iowacore.c.

References disposeobject(), tyobject::nextobject, and nil.

Referenced by disposeobject(), and iowadisposerecord().

Here is the call graph for this function:

void disposetemphandle Handle  h  ) 
 

Definition at line 304 of file iowacore.c.

References cttemphandles, disposehandle(), i, iowadata, and nil.

Referenced by preparseScript().

Here is the call graph for this function:

static void drawbackground Rect  rdraw  )  [static]
 

Definition at line 2003 of file iowacore.c.

References iowadata, popbackcolor(), pushbackcolor(), runmodedrawbackground(), and voidrect().

Referenced by iowaupdate().

Here is the call graph for this function:

static void drawborder void   )  [static]
 

Definition at line 1954 of file iowacore.c.

References iowadata, nubsize, poppen(), pushpen(), quickdrawglobal, r, and tycard::refcon.

Referenced by iowaupdate().

Here is the call graph for this function:

static void drawclone hdlobject  h  )  [static]
 

Definition at line 1635 of file iowacore.c.

References drawobject(), getobjectrect(), h, nil, r, and resetclonerect().

Referenced by drawobject().

Here is the call graph for this function:

static void drawgrid void   )  [static]
 

Definition at line 1896 of file iowacore.c.

References colorenabled(), tycard::gridunits, iowadata, iscolorport(), minint(), popforecolor(), poppen(), pushgridcolor(), pushpen(), quickdrawglobal, and r.

Referenced by iowaupdate().

Here is the call graph for this function:

void drawobject hdlobject  h  ) 
 

Definition at line 1654 of file iowacore.c.

References callcantdrawinbitmap(), calldrawobject(), callframewhenediting(), callgetinvalrect(), checkrectoperation(), clonetype, drawclone(), drawobjectlist(), drawselectionframe(), dropshadowrect(), editupdate(), geteditrect(), getobjectrect(), grouptype, h, inselection(), iowaclosebitmap(), iowadata, iowaopenbitmap(), popbackcolor(), popforecolor(), popobjectstyle(), pushbackcolor(), pushforecolor(), pushobjectstyle(), and specialflag1.

Referenced by drawclone(), drawobjectlist(), and drawobjectnow().

Here is the call graph for this function:

void drawobjectlist hdlobject  x  ) 
 

Definition at line 1826 of file iowacore.c.

References drawobject(), and nil.

Referenced by drawobject(), iowasetpictrect(), and iowaupdate().

Here is the call graph for this function:

void drawobjectnow hdlobject  h  ) 
 

Definition at line 1811 of file iowacore.c.

References drawobject(), getobjectrect(), h, and r.

Here is the call graph for this function:

void editclickbottleneck Point  pt,
boolean  flshiftkey,
hdleditrecord  hbuffer
 

Definition at line 122 of file iowacore.c.

References apppostcallback(), appprecallback(), disposehandle(), editclick(), editgetselectedtexthandle(), tykeystrokerecord::flcmdkey, gethandlesize(), keyboardstatus, and pt.

Referenced by initIOAcallbacks().

Here is the call graph for this function:

static boolean evalscript hdlobject  hself,
Handle  hscript,
Handle hvalue,
OSType  idlanguage,
bigstring  errorstring
[static]
 

Definition at line 2533 of file iowacore.c.

References nil, preparseScript(), and runcardscript().

Referenced by initIOAcallbacks().

Here is the call graph for this function:

boolean findobject Point  pt,
hdlobject  hlist,
hdlobject h
 

Definition at line 478 of file iowacore.c.

References geteditrect(), getnthobject(), getobjectrect(), h, i, pt, and r.

Referenced by findrunmodeobject(), and findterminalobject().

Here is the call graph for this function:

boolean findterminalobject Point  pt,
hdlobject  listhead,
hdlobject hparent,
hdlobject hobject
 

Definition at line 524 of file iowacore.c.

References findobject(), getchildobjectlist(), grouptype, and pt.

Here is the call graph for this function:

static short framevertinset void   )  [static]
 

Definition at line 399 of file iowacore.c.

References tyFontInfo::ascent, tyFontInfo::descent, globalfontinfo, and textvertinset.

Referenced by getgrouprect().

hdleditrecord getactiveeditrecord void   ) 
 

Definition at line 2238 of file iowacore.c.

References h, iowadata, and nil.

Referenced by initIOAcallbacks().

boolean getCardFlag bigstring  name,
boolean fl
 

Definition at line 3206 of file iowacore.c.

References h, and lookupname().

Here is the call graph for this function:

boolean getCardValue bigstring  name,
Handle hvalue
 

Definition at line 3159 of file iowacore.c.

References getobjectvalue(), h, and lookupname().

Referenced by getCardValueCopy(), and getObjectValue().

Here is the call graph for this function:

boolean getCardValueCopy bigstring  name,
Handle hcopy
 

Definition at line 3172 of file iowacore.c.

References copyhandle(), getCardValue(), and releasetemphandles().

Here is the call graph for this function:

void getchildobjectlist hdlobject  h,
hdlobject childobjectlist
 

Definition at line 518 of file iowacore.c.

References tyobject::childobjectlist.

Referenced by findrunmodeobject(), findterminalobject(), and movegroupto().

boolean geteditrect hdlobject  h,
Rect redit
 

Definition at line 1471 of file iowacore.c.

References callgeteditrect(), clonetype, fl, getobjectrect(), grouptype, h, nil, popobjectstyle(), pushobjectstyle(), and r.

Referenced by drawobject(), findobject(), and setactivetextobject().

Here is the call graph for this function:

void geteventwindow EventRecord ev,
WindowPtr eventwindow
 

Definition at line 3256 of file iowacore.c.

References activateEvt, autoKey, keyDown, mouseDown, mouseUp, nil, and updateEvt.

Referenced by isModelessCardEvent(), and runModalCard().

void getgrouprect hdlobject  h,
Rect r
 

Definition at line 883 of file iowacore.c.

References tyobject::childobjectlist, framevertinset(), getobjectrect(), h, nil, popobjectstyle(), and pushobjectstyle().

Referenced by getobjectrect().

Here is the call graph for this function:

void getlastinlist hdlobject  h,
hdlobject hlast
 

Definition at line 411 of file iowacore.c.

References h, tyobject::nextobject, and nil.

Referenced by iowaunpack().

boolean getnthobject hdlobject  hlist,
short  n,
hdlobject h
 

Definition at line 456 of file iowacore.c.

References countobjects(), ct, h, i, tyobject::nextobject, and return().

Referenced by findobject().

Here is the call graph for this function:

static boolean getnthstring hdlobject  h,
short  n,
bigstring  bs
[static]
 

Definition at line 3219 of file iowacore.c.

References GetHandleSize, i, and setstringlength.

Referenced by initIOAcallbacks().

void getobjectframe hdlobject  h,
Rect r
 

Definition at line 1513 of file iowacore.c.

References getobjectrect(), and h.

Here is the call graph for this function:

void getobjectinvalrect hdlobject  h,
Rect r
 

Definition at line 1216 of file iowacore.c.

References callgetinvalrect(), clonetype, derefclone(), getobjectinvalrect(), grouptype, h, tyobject::nextobject, nil, and zerorect().

Referenced by getobjectinvalrect(), invaldeferred(), invalobject(), and validobject().

Here is the call graph for this function:

void getobjectname hdlobject  h,
Handle hname
 

Definition at line 1023 of file iowacore.c.

Referenced by returnNamedValueVisit().

void getobjectnamestring hdlobject  h,
bigstring  bs
 

Definition at line 962 of file iowacore.c.

References texthandletostring().

Referenced by askfilter(), getvalueforscript(), lookupvisit(), replaceexistingfilter(), threewayfilter(), and twowayfilter().

Here is the call graph for this function:

void getobjectrecalcscript hdlobject  h,
Handle hscript
 

Definition at line 1035 of file iowacore.c.

Referenced by recalcobjectvalue().

boolean getobjectrect hdlobject  h,
Rect robject
 

Definition at line 942 of file iowacore.c.

References getgrouprect(), grouptype, h, and r.

Referenced by callgeteditrect(), callgetinvalrect(), drawclone(), drawobject(), drawobjectnow(), findobject(), geteditrect(), getgrouprect(), getobjectframe(), movegroupto(), resetclonerect(), runmodetracker(), showinvisiblesvisit(), and sortobjectlist().

Here is the call graph for this function:

void getobjectscript hdlobject  h,
Handle hscript
 

Definition at line 1029 of file iowacore.c.

Referenced by runbuttonscript().

void getobjectsize hdlobject  h,
short height,
short width
 

Definition at line 986 of file iowacore.c.

References disposehandle(), editgetsize(), getobjectvalue(), h, newclearhandle(), nil, popobjectstyle(), and pushobjectstyle().

Referenced by initIOAcallbacks().

Here is the call graph for this function:

void getobjectvalue hdlobject  h,
Handle hvalue
 

Definition at line 974 of file iowacore.c.

References editgettexthandle(), h, newemptyhandle(), and nil.

Referenced by getCardValue(), getobjectsize(), groupvaluevisit(), IACgetobjectattributes(), iowagetstringvalue(), recalcclone(), returnNamedValueVisit(), and setactivetextobject().

Here is the call graph for this function:

boolean initexclusiveobjectsvisit hdlobject  h  ) 
 

Definition at line 722 of file iowacore.c.

References derefclone(), grouptype, h, and turnonfirstexclusiveobject().

Referenced by cardcheckinit().

Here is the call graph for this function:

void initIOAcallbacks void   ) 
 

Definition at line 3429 of file iowacore.c.

References clearactivetextobject(), editclickbottleneck(), editdrawtexthandle(), editidle(), editkeystroke(), editselectall(), evalscript(), getactiveeditrecord(), getnthstring(), getobjectsize(), invalobject(), tycard::IOAgetobjectsizeCallback, iowadata, iowagetbooleanvalue(), iowagetstringvalue(), iowasetbooleanvalue(), popbackcolor(), popforecolor(), pushbackcolor(), pushforecolor(), recalcobjectvalue(), runbuttonscript(), setactivetextobject(), and setobjectvalue().

Referenced by iowaunpack().

Here is the call graph for this function:

boolean inselection hdlobject  x  ) 
 

Definition at line 424 of file iowacore.c.

References tyobject::nextselectedobject, and nil.

void invalobject hdlobject  h  ) 
 

Definition at line 1264 of file iowacore.c.

References clonetype, getobjectinvalrect(), h, invalobject(), iowainvalrect(), nil, and r.

Referenced by clearactivetextobject(), hotobject(), IACsetobjectattributes(), initIOAcallbacks(), invalobject(), preupdatevisit(), recalcclone(), setactivetextobject(), turnoffallexclusiveobjects(), and turnonfirstexclusiveobject().

Here is the call graph for this function:

boolean iowaclosebitmap void   ) 
 

Definition at line 1548 of file iowacore.c.

References closebitmap().

Referenced by drawobject(), and iowaupdate().

Here is the call graph for this function:

boolean iowadisposerecord void   ) 
 

Definition at line 1447 of file iowacore.c.

References disposehandle(), disposeobjectlist(), findlangcomponent(), frontDeleteCardTable(), idfrontier, iowadata, and releasetemphandles().

Referenced by closeCardWindow(), and newCardWindow().

Here is the call graph for this function:

boolean iowagetbooleanvalue hdlobject  hobj,
Handle hvalue
 

Definition at line 2295 of file iowacore.c.

References bigstring, copystring(), newtexthandle(), and pushtemphandle().

Referenced by initIOAcallbacks().

Here is the call graph for this function:

boolean iowagetstring short  ix,
bigstring  bs
 

Definition at line 1177 of file iowacore.c.

References uistringlist.

Referenced by autonameobject().

boolean iowagetstringvalue hdlobject  hobj,
Handle hvalue
 

Definition at line 2337 of file iowacore.c.

References getobjectvalue(), h, newtexthandle(), pushhandleonhandle(), pushtemphandle(), and pushtexthandle().

Referenced by initIOAcallbacks().

Here is the call graph for this function:

void iowainvalrect Rect rinval  ) 
 

Definition at line 1185 of file iowacore.c.

References debugrect(), emptyrect(), nil, and r.

Referenced by IACsetobjectattributes(), invalobject(), and setnubonborder().

Here is the call graph for this function:

boolean iowaopenbitmap Rect  r  ) 
 

Definition at line 1530 of file iowacore.c.

References displaydebug, fl, and openbitmap().

Referenced by drawobject(), and iowaupdate().

Here is the call graph for this function:

boolean iowapreupdate void   ) 
 

Definition at line 1395 of file iowacore.c.

References iowadata, nil, preupdatevisit(), and visitobjects().

Referenced by cardcheckinit(), and runmodecheckupdate().

Here is the call graph for this function:

static void iowareadclock void   )  [static]
 

Definition at line 116 of file iowacore.c.

References now.

Referenced by checkrecalc(), and recalcbottleneck().

boolean iowasetbooleanvalue hdlobject  h,
Handle  hvalue
 

Definition at line 2313 of file iowacore.c.

References bigstring, disposehandle(), nil, texthandletostring(), and unicaseequalstrings().

Referenced by initIOAcallbacks().

Here is the call graph for this function:

boolean iowasetpictrect void   ) 
 

Definition at line 2365 of file iowacore.c.

References drawobjectlist(), equalrects(), intinfinity, intminusinfinity, iowadata, r, and zerorect().

Here is the call graph for this function:

boolean iowaunpack Handle  hpacked  ) 
 

Definition at line 2949 of file iowacore.c.

References tydiskheader::backcolor, tyRGBColor::blue, tydiskheader::bottomborder, checkobjectnames(), clearalltmpbits(), tydiskheader::defaultfillcolor, tydiskheader::defaultframecolor, tydiskheader::defaulttextcolor, error, tydiskheader::flgrid, tydiskheader::flinvisiblegrid, tydiskheader::floater, tydiskheader::flselection, GetHandleSize, getlastinlist(), tyRGBColor::green, tydiskheader::gridunits, tydiskheader::idwindow, initIOAcallbacks(), iowadata, tyunpackglobals::lastp, laythread(), tydiskheader::lenembeddedtable, tydiskheader::lenwindowtitle, lockhandle(), longsizeof, moveleft(), nil, oldclutconverter(), tyunpackglobals::p, tyRGBColor::red, tydiskheader::rightborder, sortobjectlist(), unlockhandle(), unpack, unpackhandle(), unpacklist(), tydiskheader::v2backcolor, and tydiskheader::versionnumber.

Referenced by moveIntoCardWindow(), and newCardWindow().

Here is the call graph for this function:

boolean iowaupdate void   ) 
 

Definition at line 2056 of file iowacore.c.

References drawbackground(), drawborder(), drawgrid(), drawobjectlist(), editupdate(), iowaclosebitmap(), iowadata, iowaopenbitmap(), nil, r, and specialflag1.

Referenced by runmodeupdate().

Here is the call graph for this function:

void iowaupdatenow void   ) 
 

Definition at line 2473 of file iowacore.c.

References iowadata.

Referenced by checkrecalc(), hotobject(), and IACsetobjectattributes().

static boolean iscolorport GrafPtr  pport  )  [static]
 

Definition at line 1838 of file iowacore.c.

void laythread void   ) 
 

Definition at line 2455 of file iowacore.c.

References tythread::h, iowadata, laythreadvisit(), nil, thread, and visitobjects().

Referenced by iowaunpack(), moveIntoCardWindow(), and newCardWindow().

Here is the call graph for this function:

static boolean laythreadvisit hdlobject  h  )  [static]
 

Definition at line 2444 of file iowacore.c.

References h, tythread::h, nil, and thread.

Referenced by laythread().

boolean lookupname bigstring  bsname,
hdlobject h
 

Definition at line 2277 of file iowacore.c.

References allupper(), copystring(), h, tylookup::h, iowadata, lookup, lookupvisit(), tylookup::name, nil, and visitobjects().

Referenced by getCardFlag(), getCardValue(), getObjectHandle(), getvalueforscript(), namedobjecterror(), setCardFlag(), and setCardValue().

Here is the call graph for this function:

static boolean lookupvisit hdlobject  h  )  [static]
 

Definition at line 2260 of file iowacore.c.

References allupper(), bigstring, equalstrings(), getobjectnamestring(), tylookup::h, h, lookup, and tylookup::name.

Referenced by lookupname().

Here is the call graph for this function:

boolean majorrecalcvisit hdlobject  h  ) 
 

Definition at line 784 of file iowacore.c.

References clonetype, h, initrecalc, recalcbottleneck(), and recalcclone().

Referenced by cardcheckinit(), recalcCardWindow(), recalcclone(), and recalcobject().

Here is the call graph for this function:

short makemultiple short  val,
short  factor
 

Definition at line 227 of file iowacore.c.

boolean minorrecalcvisit hdlobject  h  ) 
 

Definition at line 768 of file iowacore.c.

References changerecalc, derefclone(), h, and recalcbottleneck().

Referenced by checkrecalc(), objectclick(), and recalcCardWindow().

Here is the call graph for this function:

void movegroupto hdlobject  x,
short  h,
short  v
 

Definition at line 1333 of file iowacore.c.

References getchildobjectlist(), getobjectrect(), nil, putobjectrect(), and r.

Referenced by putobjectrect().

Here is the call graph for this function:

void popobjectstyle void   ) 
 

Definition at line 338 of file iowacore.c.

References popcolors(), and popstyle().

Referenced by drawobject(), geteditrect(), getgrouprect(), getobjectsize(), and setactivetextobject().

Here is the call graph for this function:

static void postunpackfilter hdlobject  h  )  [static]
 

Definition at line 2709 of file iowacore.c.

References callunpackdata(), clonetype, disposehandle(), h, tyunpackglobals::hoffset, nil, unpack, and tyunpackglobals::voffset.

Referenced by unpackobject().

Here is the call graph for this function:

static boolean preupdatevisit hdlobject  h  )  [static]
 

Definition at line 1380 of file iowacore.c.

References debugrect(), h, and invalobject().

Referenced by iowapreupdate().

Here is the call graph for this function:

void pushobjectstyle hdlobject  h  ) 
 

Definition at line 323 of file iowacore.c.

References graycolor, pushcolors(), and pushstyle().

Referenced by drawobject(), geteditrect(), getgrouprect(), getobjectsize(), and setactivetextobject().

Here is the call graph for this function:

void pushtemphandle Handle  h  ) 
 

Definition at line 268 of file iowacore.c.

References cttemphandles, i, iowadata, and nil.

Referenced by getgroupvalue(), getvalueforscript(), iowagetbooleanvalue(), and iowagetstringvalue().

boolean putobjectrect hdlobject  h,
Rect  r
 

Definition at line 1363 of file iowacore.c.

References grouptype, h, and movegroupto().

Referenced by movegroupto(), and resetclonerect().

Here is the call graph for this function:

boolean recalcbottleneck hdlobject  h,
boolean  flmajorrecalc
 

Definition at line 738 of file iowacore.c.

References callrecalcobject(), h, iowadata, iowareadclock(), nil, now, and uisRecalcObject().

Referenced by checkagentvisit(), majorrecalcvisit(), minorrecalcvisit(), and recalcObject().

Here is the call graph for this function:

boolean recalcclone hdlobject  h  ) 
 

Definition at line 2594 of file iowacore.c.

References alertdialog(), bigstring, binarytype, clonetype, copyhandle(), disposeobject(), error, errorstring, FrontierGetObject(), getobjectvalue(), h, invalobject(), majorrecalcvisit(), recalcobjectvalue(), resetclonerect(), and unpacksingleobject().

Referenced by majorrecalcvisit().

Here is the call graph for this function:

void recalcobject hdlobject  h  ) 
 

Definition at line 875 of file iowacore.c.

References h, majorrecalcvisit(), and schedulerecalc().

Referenced by setobjectrecalcscript(), and setobjectscript().

Here is the call graph for this function:

boolean recalcobjectvalue hdlobject  h  ) 
 

Definition at line 2486 of file iowacore.c.

References bigstring, disposehandle(), errorstring, getobjectrecalcscript(), h, newtexthandle(), nil, preparseScript(), runcardscript(), setobjecterrormessage(), and setobjectvalue().

Referenced by initIOAcallbacks(), and recalcclone().

Here is the call graph for this function:

void releasetemphandles void   ) 
 

Definition at line 287 of file iowacore.c.

References cttemphandles, disposehandle(), i, iowadata, and nil.

Referenced by getCardValueCopy(), handleCardEvent(), and iowadisposerecord().

Here is the call graph for this function:

static void resetclonerect hdlobject  h  )  [static]
 

Definition at line 1606 of file iowacore.c.

References centerjustified, centerrect(), clonetype, getobjectrect(), h, nil, putobjectrect(), and r.

Referenced by drawclone(), and recalcclone().

Here is the call graph for this function:

boolean runbuttonscript hdlobject  h  ) 
 

Definition at line 2553 of file iowacore.c.

References alertdialog(), bigstring, errorstring, frontSetRuntimeCard(), getobjectscript(), h, nil, preparseScript(), and runcardscript().

Referenced by initIOAcallbacks().

Here is the call graph for this function:

boolean runcardscript Handle  hscript,
long  idlanguage,
boolean  flgetreturn,
bigstring  errorstring,
Handle hreturns
 

Definition at line 160 of file iowacore.c.

References fl, iowadata, and runlangscript().

Referenced by cardcheckinit(), cardFastScript(), evalscript(), recalcobjectvalue(), and runbuttonscript().

Here is the call graph for this function:

static void runmodedrawbackground Rect  rdraw  )  [static]
 

Definition at line 1991 of file iowacore.c.

References iowadata, popbackcolor(), and pushbackcolor().

Referenced by drawbackground().

Here is the call graph for this function:

void schedulerecalc hdlobject  h,
short  ctticks
 

Definition at line 853 of file iowacore.c.

References h.

Referenced by objectclick(), recalcobject(), runmodekeystroke(), setobjectname(), setobjectrecalcscript(), setobjectscript(), and setobjectvalue().

boolean setactivetextobject hdlobject  h  ) 
 

Definition at line 2164 of file iowacore.c.

References debugrect(), editnewbufferfromhandle(), editsetjustification(), fl, geteditrect(), getobjectvalue(), h, invalobject(), iowadata, popobjectstyle(), pushobjectstyle(), r, and setnubonborder().

Referenced by initIOAcallbacks(), and setcardenable().

Here is the call graph for this function:

boolean setCardFlag bigstring  name,
boolean  fl
 

Definition at line 3188 of file iowacore.c.

References h, iowadata, and lookupname().

Here is the call graph for this function:

boolean setCardString bigstring  name,
bigstring  value
 

Definition at line 3141 of file iowacore.c.

References disposehandle(), newtexthandle(), and setCardValue().

Here is the call graph for this function:

boolean setCardValue bigstring  name,
Handle  hvalue
 

Definition at line 3112 of file iowacore.c.

References callsetvalue(), h, iowadata, and lookupname().

Referenced by setCardString(), setCardValueCopy(), and setObjectValue().

Here is the call graph for this function:

boolean setCardValueCopy bigstring  name,
Handle  hvalue
 

Definition at line 3130 of file iowacore.c.

References copyhandle(), and setCardValue().

Here is the call graph for this function:

void setnubonborder void   ) 
 

Definition at line 1847 of file iowacore.c.

References assert, iowadata, iowainvalrect(), nil, nubsize, r, and tycard::rightborder.

Referenced by clearactivetextobject(), and setactivetextobject().

Here is the call graph for this function:

void setobjecterrormessage hdlobject  h,
Handle  herrorstring
 

Definition at line 1126 of file iowacore.c.

References disposehandle().

Referenced by IACsetobjectattributes(), and recalcobjectvalue().

Here is the call graph for this function:

void setobjectname hdlobject  h,
Handle  hname
 

Definition at line 1116 of file iowacore.c.

References disposehandle(), h, and schedulerecalc().

Referenced by autonameobject(), and IACsetobjectattributes().

Here is the call graph for this function:

void setobjectrecalcscript hdlobject  h,
Handle  hscript
 

Definition at line 1094 of file iowacore.c.

References disposehandle(), GetHandleSize, h, nil, recalcobject(), and schedulerecalc().

Referenced by IACsetobjectattributes().

Here is the call graph for this function:

void setobjectscript hdlobject  h,
Handle  hscript
 

Definition at line 1072 of file iowacore.c.

References disposehandle(), GetHandleSize, h, nil, recalcobject(), and schedulerecalc().

Referenced by IACsetobjectattributes().

Here is the call graph for this function:

void setobjectvalue hdlobject  h,
Handle  hvalue
 

Definition at line 1041 of file iowacore.c.

References disposehandle(), editsettexthandle(), h, and schedulerecalc().

Referenced by clearactivetextobject(), IACsetobjectattributes(), initIOAcallbacks(), and recalcobjectvalue().

Here is the call graph for this function:

boolean showinvisiblesloop void   ) 
 

Definition at line 2143 of file iowacore.c.

References cmdkeydown(), iowadata, nil, optionkeydown(), showinvisiblesvisit(), and visitobjects().

Here is the call graph for this function:

static boolean showinvisiblesvisit hdlobject  h  )  [static]
 

Definition at line 2102 of file iowacore.c.

References derefclone(), getobjectrect(), h, nil, poppen(), pushpen(), quickdrawglobal, and r.

Referenced by checkinvisibles(), and showinvisiblesloop().

Here is the call graph for this function:

void sortobjectlist void   ) 
 

Definition at line 2389 of file iowacore.c.

References ct, getobjectrect(), i, infinity, iowadata, tyobject::nextobject, nil, tycard::objectlist, and rectlessthan().

Referenced by iowaunpack(), moveIntoCardWindow(), and newCardWindow().

Here is the call graph for this function:

void toggleobjectflag hdlobject  h  ) 
 

Definition at line 405 of file iowacore.c.

void turnoffallexclusiveobjects hdlobject  firstobject  ) 
 

Definition at line 643 of file iowacore.c.

References callmutallyexclusive(), derefclone(), invalobject(), and nil.

Here is the call graph for this function:

void turnonfirstexclusiveobject hdlobject  firstobject  ) 
 

Definition at line 663 of file iowacore.c.

References callmutallyexclusive(), derefclone(), invalobject(), nil, tyobject::objectflag, r, and rectlessthan().

Referenced by cardcheckinit(), and initexclusiveobjectsvisit().

Here is the call graph for this function:

static boolean uniqueobjectname hdlobject  h  )  [static]
 

Definition at line 2689 of file iowacore.c.

References autonameobject(), checkobjectnamevisit(), h, hcheck, nil, and visitobjects().

Referenced by checkobjectnames().

Here is the call graph for this function:

boolean unlinkobject hdlobject  x  ) 
 

Definition at line 1301 of file iowacore.c.

References nil, and return().

Here is the call graph for this function:

static boolean unpackhandle long  ctbytes,
Handle h
[static]
 

Definition at line 2645 of file iowacore.c.

References tyunpackglobals::lastp, newfilledhandle(), nil, tyunpackglobals::p, and unpack.

Referenced by iowaunpack(), and unpackobject().

Here is the call graph for this function:

boolean unpacklist hdlobject  ) 
 

Definition at line 2902 of file iowacore.c.

References h, tyunpackglobals::lastp, tyobject::nextobject, nil, tyunpackglobals::p, unpack, and unpackobject().

Referenced by iowaunpack(), and unpackobject().

Here is the call graph for this function:

boolean unpackobject hdlobject ,
boolean
 

Definition at line 2730 of file iowacore.c.

References clearbytes(), disposehandle(), error, grouptype, h, idUserTalk, info, iowadata, long, longsizeof, moveleft(), neverrecalc, newfilledhandle(), oldclutconverter(), tyunpackglobals::p, postunpackfilter(), timerecalc, unpack, unpackhandle(), and unpacklist().

Referenced by unpacklist(), and unpacksingleobject().

Here is the call graph for this function:

boolean unpacksingleobject Handle  ,
hdlobject
 

Definition at line 2931 of file iowacore.c.

References fl, GetHandleSize, tyunpackglobals::lastp, lockhandle(), tyunpackglobals::p, unlockhandle(), unpack, and unpackobject().

Referenced by recalcclone().

Here is the call graph for this function:

void validobject hdlobject  h  ) 
 

Definition at line 1280 of file iowacore.c.

References getobjectinvalrect(), h, nil, and r.

Referenced by initeditabletext(), and movetextboxcursor().

Here is the call graph for this function:

boolean visitobjects hdlobject  listhead,
tyobjectvisitroutine  visit
 

Definition at line 547 of file iowacore.c.

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

Referenced by appleEventHandler(), autonameobject(), cardcheckinit(), checkinvisibles(), checkobjectname(), checkobjectnames(), checkrecalc(), clearalltmpbits(), enableallcardobjects(), getgroupvalue(), handleCardEvent(), iowapreupdate(), laythread(), lookupname(), objectclick(), recalcCardWindow(), runmodeidle(), runmodekeystroke(), showinvisiblesloop(), uniqueobjectname(), and visitobjects().

Here is the call graph for this function:

boolean visittoplevelobjects hdlobject  listhead,
tyobjectvisitroutine  visit
 

Definition at line 577 of file iowacore.c.

References tyobject::nextobject, and nil.

static void voidrect Rect rvoid  )  [static]
 

Definition at line 1882 of file iowacore.c.

References popbackcolor(), popforecolor(), pushbackcolor(), pushforecolor(), quickdrawglobal, and whitecolor.

Referenced by drawbackground().

Here is the call graph for this function:

void waitfornexttick void   ) 
 

Definition at line 1140 of file iowacore.c.

Referenced by debugrect(), mapkeyvisit(), and returnkeyvisit().


Variable Documentation

tyautoname autoname [static]
 

Definition at line 95 of file iowacore.c.

Referenced by autonameobject(), and autonamevisit().

boolean displaydebug = false
 

Definition at line 71 of file iowacore.c.

Referenced by debugrect(), and iowaopenbitmap().

boolean flalertdialogrunning = false
 

Definition at line 98 of file iowacore.c.

Referenced by cardFastScript().

boolean flsomethingrecalcd = false [static]
 

Definition at line 804 of file iowacore.c.

Referenced by checkagentvisit(), and checkrecalc().

hdlobject hcheck [static]
 

Definition at line 2666 of file iowacore.c.

Referenced by checkobjectname(), checkobjectnamevisit(), langpoplocalchain(), opbumpflatdown(), opgetnextexpanded(), and uniqueobjectname().

hdlcard iowadata = nil
 

Definition at line 73 of file iowacore.c.

Referenced by checkinvisibles(), clearactivetextobject(), closeCardWindow(), disposetemphandle(), drawbackground(), drawborder(), drawgrid(), drawobject(), filterevent(), frontStartCard(), getactiveeditrecord(), getcardrecordwindow(), getfirsttextobject(), getnexttextobject(), getObjectHandle(), getObjectValue(), getprevtextobject(), handleCardEvent(), hotobject(), IACgetcardattributes(), IACsetcardattributes(), initIOAcallbacks(), iowadisposerecord(), iowapreupdate(), iowasetpictrect(), iowaunpack(), iowaupdate(), iowaupdatenow(), iowavalidate(), isModelessCardEvent(), laythread(), lookupname(), mapkeyvisit(), moveIntoCardWindow(), movetextboxcursor(), newCardWindow(), nocarderror(), nullsforall(), objectclick(), pregluecall(), pushtemphandle(), recalcbottleneck(), recalcCardWindow(), recalcObject(), releasetemphandles(), returnkeyvisit(), runcardscript(), runHostedCard(), runModalCard(), runmodecheckupdate(), runmodedrawbackground(), runmodeidle(), runmodekeystroke(), runModelessCard(), runmodetracker(), runmodeupdate(), sendclosemessage(), sendinitmessage(), setactivetextobject(), setcardenable(), setCardFlag(), setCardValue(), setnubonborder(), setObjectValue(), showinvisiblesloop(), sortobjectlist(), unpackobject(), updateCard(), validateeditedcard(), validateobjectlist(), and visitCardWindows().

tylookup lookup
 

Definition at line 82 of file iowacore.c.

Referenced by lookupname(), and lookupvisit().

unsigned long now [static]
 

Definition at line 100 of file iowacore.c.

Referenced by checkagentvisit(), filetouchallparentfolders(), getcurrenttimestring(), iowareadclock(), processagentsleep(), pushtimeonstring(), recalcbottleneck(), and timenow().

boolean specialflag1 = false [static]
 

Definition at line 102 of file iowacore.c.

Referenced by drawobject(), and iowaupdate().

tythread thread
 

Definition at line 2441 of file iowacore.c.

Referenced by laythread(), and laythreadvisit().

tyunpackglobals unpack = {nil, nil}
 

Definition at line 85 of file iowacore.c.

Referenced by iowaunpack(), langunpackvalue(), postunpackfilter(), unpackhandle(), unpacklist(), unpackobject(), and unpacksingleobject().


Generated on Fri Jun 2 04:25:30 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6