iowaruntime.c File Reference

#include "frontier.h"
#include "standard.h"
#include "byteorder.h"
#include "shelltypes.h"
#include <appletdefs.h>
#include <iac.h>
#include <SetUpA5.h>
#include <appletquickdraw.h>
#include <appletmouse.h>
#include <appletfrontier.h>
#include <appletcursor.h>
#include <appletops.h>
#include <appletfiles.h>
#include <appletcardops.h>
#include <appletzoom.h>
#include <appletcard.h>
#include <appletkb.h>
#include "iowaparser.h"
#include "iowafrontier.h"
#include "iowaattributes.h"
#include "iowascript.h"
#include "quickdraw.h"

Include dependency graph for iowaruntime.c:

Go to the source code of this file.

Data Structures

struct  cardwindow

Defines

#define cutCmd   3
#define copyCmd   4
#define pasteCmd   5
#define clearCmd   6
#define selectAllCmd   8
#define cmdPeriodKillsCard
#define textticksrecalc   30
#define appleEventHandlerUPP   (&appleEventHandler)

Typedefs

typedef cardwindow tycardwindow

Functions

static short sizewindowarray (void)
static hdlruntimerecord getwindowdata (WindowPtr w)
static hdlcard getwindowcardrecord (WindowPtr w)
static boolean getcardrecordwindowvisit (WindowPtr w)
WindowPtr getcardrecordwindow (hdlcard card)
short countCardWindows (void)
static boolean addtowindowarray (WindowPtr w, hdlruntimerecord hw)
static boolean inwindowarray (WindowPtr w)
static void removefromwindowarray (WindowPtr w)
boolean isCardWindow (WindowPtr w)
boolean cardToFront (bigstring windowtitle)
static void runmodeactivate (boolean flactivating)
static void runmodeupdate (void)
static boolean runtimeeditableobject (hdlobject h)
static boolean getfirsttextobject (hdlobject *hfirst)
static void getnexttextobject (hdlobject h, hdlobject *hnext)
static void getprevtextobject (hdlobject h, hdlobject *hnext)
static boolean movetextboxcursor (boolean flbackward)
static void hotobject (boolean flpressed)
boolean recalcCardWindow (WindowPtr w, boolean flmajorrecalc)
static boolean sameasbuttontype (tyobjecttype type)
static void filterevent (EventRecord *ev)
static void sendinitmessage (void)
static boolean sendbuttonhitmessage (hdlobject h)
static boolean sendclosemessage (void)
static void objectclick (hdlobject listhead, hdlobject h)
static boolean returnkeyvisit (hdlobject h)
static char upperchar (char ch)
static boolean mapkeyvisit (hdlobject h)
static boolean runmodekeystroke (void)
static void runmodetracker (hdlobject listhead, hdlobject x)
static boolean findrunmodeobject (Point pt, hdlobject listhead, hdlobject *hparent, hdlobject *hobject)
static void runmodecontentclick (WindowPtr w, Point pt)
static void runmodemouseup (long when, Point where)
static boolean runmodemousedown (long when, Point pt, boolean *flcloseallwindows)
static void runmodecheckupdate (void)
static boolean alwaysidlevisit (hdlobject h)
static void runmodeidle (void)
boolean closeCardWindow (WindowPtr w)
void closeAllCardWindows (void)
static void initeditabletext (void)
static boolean nilvaluesvisit (hdlobject h)
static void cardcheckinit (void)
static boolean objectVisit (hdlobject h)
static boolean cardContainsEditTextObject (hdlcard h)
static void frameedittextrect (Rect r, WindowPtr w)
WindowPtr newCardWindow (Point pt, boolean notscriptedcard, Handle hpackedcard)
boolean visitCardWindows (tycardwindowvisitroutine visit)
void getCardData (WindowPtr w, hdlruntimerecord *hcardwindow)
boolean cardEditCommand (short editcommand)
static boolean showinvisiblesvisit (hdlobject h)
static void checkinvisibles (void)
boolean handleCardEvent (WindowPtr w, EventRecord *ev, boolean *flcloseallwindows)
static boolean nullsforallvisit (WindowPtr w)
static boolean nullsforall (void)
boolean setObjectValue (hdlcard hcard, bigstring name, Handle hvalue)
boolean getObjectValue (hdlcard hcard, bigstring name, Handle *hvalue)
boolean getObjectHandle (hdlcard hcard, bigstring name, hdlobject *h)
boolean recalcObject (hdlobject h)
boolean updateCard (hdlcard hcard)
boolean cardIsModal (Handle hpackedcard)
static boolean returnNamedValueVisit (hdlobject h)
static void getCardAttributesVerb (void)
static void setCardAttributesVerb (void)
static void getObjectAttributesVerb (void)
static void setObjectAttributesVerb (void)
static pascal OSErr appleEventHandler (const AppleEvent *event, AppleEvent *reply, long refcon)
void installRuntimeEventHandlers (void)
static boolean passthruevent (short what)
boolean runModalCard (Handle hpackedcard, boolean flscriptedcard, short top, short pLeft, tycardeventcallback pCallback)
boolean isModelessCardEvent (EventRecord *ev, boolean *flcloseallwindows)
boolean runModelessCard (Handle hpackedcard, boolean flscriptedcard, short top, short pLeft, tycardeventcallback pCallback)
boolean runCard (Handle hpackedcard, boolean flscriptedcard, short top, short pleft, tycardeventcallback pcallback)
static WindowPtr moveIntoCardWindow (WindowPtr hostwindow, boolean notscriptedcard, Handle hpackedcard)
boolean runHostedCard (WindowPtr hostwindow, Handle hpackedcard, boolean flscriptedcard, tycardeventcallback pCallback)
boolean initIowaRuntime (void)

Variables

hdlruntimerecord runtimedata = nil
boolean flexitcardloop = false
static tycardwindow ** hwindowarray = nil
boolean flquickrecalc = true
static hdlcard cardtofind
static WindowPtr windowtofind = nil
Rect edittextrect


Define Documentation

#define appleEventHandlerUPP   (&appleEventHandler)
 

Definition at line 2254 of file iowaruntime.c.

Referenced by installRuntimeEventHandlers().

#define clearCmd   6
 

Definition at line 60 of file iowaruntime.c.

Referenced by cardEditCommand(), and clearcommand().

#define cmdPeriodKillsCard
 

Definition at line 67 of file iowaruntime.c.

#define copyCmd   4
 

Definition at line 58 of file iowaruntime.c.

Referenced by appcopycommand(), and cardEditCommand().

#define cutCmd   3
 

Definition at line 57 of file iowaruntime.c.

Referenced by cardEditCommand(), and cutcommand().

#define pasteCmd   5
 

Definition at line 59 of file iowaruntime.c.

Referenced by cardEditCommand(), and pastecommand().

#define selectAllCmd   8
 

Definition at line 61 of file iowaruntime.c.

Referenced by cardEditCommand().

#define textticksrecalc   30
 

Definition at line 85 of file iowaruntime.c.

Referenced by runmodekeystroke().


Typedef Documentation

typedef struct cardwindow tycardwindow
 


Function Documentation

static boolean addtowindowarray WindowPtr  w,
hdlruntimerecord  hw
[static]
 

Definition at line 181 of file iowaruntime.c.

References assert, ct, cardwindow::hw, hwindowarray, i, nil, sizewindowarray(), and cardwindow::w.

Referenced by moveIntoCardWindow(), and newCardWindow().

Here is the call graph for this function:

static boolean alwaysidlevisit hdlobject  h  )  [static]
 

Definition at line 1203 of file iowaruntime.c.

References callalwaysidle(), callidleobject(), and h.

Referenced by runmodeidle().

Here is the call graph for this function:

static pascal OSErr appleEventHandler const AppleEvent event,
AppleEvent reply,
long  refcon
[static]
 

Definition at line 2180 of file iowaruntime.c.

References tyIACglobals::event, FreeMem(), getCardAttributesVerb(), getObjectAttributesVerb(), IACgetverbtoken(), IACglobals, IACreturnlong(), nil, noErr, tyIACglobals::refcon, tyIACglobals::reply, RestoreA5, returnNamedValueVisit(), runtimedata, setCardAttributesVerb(), setObjectAttributesVerb(), SetUpAppA5, and visitobjects().

Referenced by installRuntimeEventHandlers().

Here is the call graph for this function:

static void cardcheckinit void   )  [static]
 

Definition at line 1352 of file iowaruntime.c.

References alertdialog(), bigstring, errorstring, frontSetRuntimeCard(), idfrontier, initeditabletext(), initexclusiveobjectsvisit(), iowapreupdate(), majorrecalcvisit(), newtexthandle(), nil, nilvaluesvisit(), runcardscript(), runmodeupdate(), turnonfirstexclusiveobject(), and visitobjects().

Referenced by handleCardEvent(), runModalCard(), and runModelessCard().

Here is the call graph for this function:

static boolean cardContainsEditTextObject hdlcard  h  )  [static]
 

Definition at line 1421 of file iowaruntime.c.

References IOAvisitobjects(), and objectVisit().

Referenced by newCardWindow().

Here is the call graph for this function:

boolean cardEditCommand short  editcommand  ) 
 

Definition at line 1683 of file iowaruntime.c.

References clearCmd, copyCmd, cutCmd, editcopy(), editcut(), editpaste(), editreplace(), editselectall(), getwindowcardrecord(), hcard, inwindowarray(), nil, pasteCmd, and selectAllCmd.

Referenced by appcopycommand(), clearcommand(), cutcommand(), and pastecommand().

Here is the call graph for this function:

boolean cardIsModal Handle  hpackedcard  ) 
 

Definition at line 2056 of file iowaruntime.c.

References DebugStr(), longsizeof, and moveleft().

Referenced by appruncard(), and runCard().

Here is the call graph for this function:

boolean cardToFront bigstring  windowtitle  ) 
 

Definition at line 252 of file iowaruntime.c.

References bigstring, ct, equalstrings(), i, nil, and sizewindowarray().

Here is the call graph for this function:

static void checkinvisibles void   )  [static]
 

Definition at line 1777 of file iowaruntime.c.

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

Referenced by handleCardEvent().

Here is the call graph for this function:

void closeAllCardWindows void   ) 
 

Definition at line 1297 of file iowaruntime.c.

References closeCardWindow(), ct, i, and sizewindowarray().

Referenced by closeallwindows(), and runmodemousedown().

Here is the call graph for this function:

boolean closeCardWindow WindowPtr  w  ) 
 

Definition at line 1239 of file iowaruntime.c.

References clearactivetextobject(), disposehandle(), flexitcardloop, getwindowcardrecord(), getwindowdata(), iowadata, iowadisposerecord(), isCardWindow(), nil, popmacport(), pushmacport(), removefromwindowarray(), runtimedata, and sendclosemessage().

Referenced by closeAllCardWindows(), closefrontwindow(), runModalCard(), runmodekeystroke(), runmodemousedown(), and sendbuttonhitmessage().

Here is the call graph for this function:

short countCardWindows void   ) 
 

Definition at line 165 of file iowaruntime.c.

References ct, hwindowarray, i, nil, and sizewindowarray().

Here is the call graph for this function:

static void filterevent EventRecord ev  )  [static]
 

Definition at line 618 of file iowaruntime.c.

References clearbytes(), iowadata, iowaSetHandleEvent, long, longsizeof, nil, popmacport(), and pushmacport().

Referenced by handleCardEvent().

Here is the call graph for this function:

static boolean findrunmodeobject Point  pt,
hdlobject  listhead,
hdlobject hparent,
hdlobject hobject
[static]
 

Definition at line 996 of file iowaruntime.c.

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

Referenced by runmodecontentclick(), and runmodeidle().

Here is the call graph for this function:

static void frameedittextrect Rect  r,
WindowPtr  w
[static]
 

Definition at line 1435 of file iowaruntime.c.

References movepento(), paintrect(), pendrawline(), poppen(), pushpen(), and setthemepen().

Referenced by newCardWindow().

Here is the call graph for this function:

static void getCardAttributesVerb void   )  [static]
 

Definition at line 2132 of file iowaruntime.c.

References IACgetcardattributes(), and IACreturnboolean().

Here is the call graph for this function:

void getCardData WindowPtr  w,
hdlruntimerecord hcardwindow
 

Definition at line 1672 of file iowaruntime.c.

References getwindowdata().

Here is the call graph for this function:

WindowPtr getcardrecordwindow hdlcard  card  ) 
 

Definition at line 142 of file iowaruntime.c.

References cardtofind, getcardrecordwindowvisit(), iowadata, runtimedata, visitCardWindows(), and windowtofind.

Here is the call graph for this function:

static boolean getcardrecordwindowvisit WindowPtr  w  )  [static]
 

Definition at line 131 of file iowaruntime.c.

References cardtofind, getwindowcardrecord(), and windowtofind.

Referenced by getcardrecordwindow().

Here is the call graph for this function:

static boolean getfirsttextobject hdlobject hfirst  )  [static]
 

Definition at line 403 of file iowaruntime.c.

References infinity, iowadata, tyobject::nextinthread, nil, tycard::objectlist, and runtimeeditableobject().

Referenced by initeditabletext().

Here is the call graph for this function:

static void getnexttextobject hdlobject  h,
hdlobject hnext
[static]
 

Definition at line 434 of file iowaruntime.c.

References infinity, iowadata, tyobject::nextinthread, nil, tycard::objectlist, runtimeeditableobject(), and tyobject::sorttag.

Referenced by movetextboxcursor().

Here is the call graph for this function:

static void getObjectAttributesVerb void   )  [static]
 

Definition at line 2152 of file iowaruntime.c.

References IACgetobjectattributes(), IACgettextparam(), and IACreturnboolean().

Here is the call graph for this function:

boolean getObjectHandle hdlcard  hcard,
bigstring  name,
hdlobject h
 

Definition at line 1994 of file iowaruntime.c.

References fl, h, hcard, iowadata, and lookupname().

Referenced by cardobjectexists(), emptycardpassword(), getcardbit(), getcardcolorpopup(), getcardflag(), getcardpassword(), getcardpopup(), getcardpopupstring(), invalcardobject(), setcardappbit(), setcardcolorpopup(), setcardenable(), setcardflag(), setcardicon(), setcardpassword(), setcardpopup(), setcardpopupcheckeditem(), setcardtextcolor(), setcardtmpbit(), and setradiotext().

Here is the call graph for this function:

boolean getObjectValue hdlcard  hcard,
bigstring  name,
Handle hvalue
 

Definition at line 1979 of file iowaruntime.c.

References fl, getCardValue(), hcard, and iowadata.

Referenced by askfilter(), getcardstring(), getcardtexthandle(), and replacecardtexthandle().

Here is the call graph for this function:

static void getprevtextobject hdlobject  h,
hdlobject hnext
[static]
 

Definition at line 482 of file iowaruntime.c.

References iowadata, tyobject::nextinthread, nil, tycard::objectlist, runtimeeditableobject(), and tyobject::sorttag.

Referenced by movetextboxcursor().

Here is the call graph for this function:

static hdlcard getwindowcardrecord WindowPtr  w  )  [static]
 

Definition at line 120 of file iowaruntime.c.

References getwindowdata().

Referenced by cardEditCommand(), closeCardWindow(), getcardrecordwindowvisit(), handleCardEvent(), recalcCardWindow(), and visitCardWindows().

Here is the call graph for this function:

static hdlruntimerecord getwindowdata WindowPtr  w  )  [static]
 

Definition at line 99 of file iowaruntime.c.

References ct, hwindowarray, i, nil, and sizewindowarray().

Referenced by closeCardWindow(), getCardData(), getwindowcardrecord(), handleCardEvent(), inwindowarray(), nullsforallvisit(), recalcCardWindow(), updateCard(), and visitCardWindows().

Here is the call graph for this function:

boolean handleCardEvent WindowPtr  w,
EventRecord ev,
boolean flcloseallwindows
 

Definition at line 1799 of file iowaruntime.c.

References activateEvt, activeFlag, autoKey, cardcheckinit(), checkinvisibles(), chescape, tykeystrokerecord::chkb, filterevent(), getwindowcardrecord(), getwindowdata(), inwindowarray(), iowadata, iowaOkeyDokeyEvent, keyboardstatus, keyDown, mouseDown, mouseUp, nil, popmacport(), pushmacport(), releasetemphandles(), resumeFlag, returnkeyvisit(), runmodeactivate(), runmodecheckupdate(), runmodeidle(), runmodekeystroke(), runmodemousedown(), runmodemouseup(), runmodeupdate(), runtimedata, setkeyboardstatus(), updateEvt, and visitobjects().

Referenced by isModelessCardEvent(), nullsforallvisit(), and runModalCard().

Here is the call graph for this function:

static void hotobject boolean  flpressed  )  [static]
 

Definition at line 558 of file iowaruntime.c.

References invalobject(), iowadata, iowaupdatenow(), and tycard::trackerpressed.

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

Here is the call graph for this function:

static void initeditabletext void   )  [static]
 

Definition at line 1308 of file iowaruntime.c.

References calleditobject(), derefclone(), getfirsttextobject(), h, and validobject().

Referenced by cardcheckinit().

Here is the call graph for this function:

boolean initIowaRuntime void   ) 
 

Definition at line 2738 of file iowaruntime.c.

References RememberA5.

Referenced by appletinitmanagers(), and iowaInit().

void installRuntimeEventHandlers void   ) 
 

Definition at line 2275 of file iowaruntime.c.

References appleEventHandler(), appleEventHandlerUPP, nil, and typeWildCard.

Referenced by frontStartCard(), runHostedCard(), runModalCard(), and runModelessCard().

Here is the call graph for this function:

static boolean inwindowarray WindowPtr  w  )  [static]
 

Definition at line 222 of file iowaruntime.c.

References getwindowdata(), and nil.

Referenced by cardEditCommand(), handleCardEvent(), and isCardWindow().

Here is the call graph for this function:

boolean isCardWindow WindowPtr  w  ) 
 

Definition at line 246 of file iowaruntime.c.

References inwindowarray().

Referenced by closeCardWindow(), getappwindow(), and isModelessCardEvent().

Here is the call graph for this function:

boolean isModelessCardEvent EventRecord ev,
boolean flcloseallwindows
 

Definition at line 2461 of file iowaruntime.c.

References flreturn, geteventwindow(), handleCardEvent(), iowadata, isCardWindow(), nullsforall(), quickdrawglobal, and runtimedata.

Referenced by appleteventdispatcher().

Here is the call graph for this function:

static boolean mapkeyvisit hdlobject  h  )  [static]
 

Definition at line 816 of file iowaruntime.c.

References bigstring, buttontype, chescape, tykeystrokerecord::chkb, equalstrings(), h, hotobject(), iowadata, keyboardstatus, objectclick(), stringlength, texthandletostring(), upperchar(), and waitfornexttick().

Referenced by runmodekeystroke().

Here is the call graph for this function:

static WindowPtr moveIntoCardWindow WindowPtr  hostwindow,
boolean  notscriptedcard,
Handle  hpackedcard
[static]
 

Definition at line 2609 of file iowaruntime.c.

References addtowindowarray(), disposehandle(), error, IACglobals, iowadata, iowaunpack(), laythread(), longsizeof, newclearhandle(), nil, tycard::runmode, runmodeupdate(), runtimedata, sortobjectlist(), and tyIACglobals::waitroutine.

Referenced by runHostedCard().

Here is the call graph for this function:

static boolean movetextboxcursor boolean  flbackward  )  [static]
 

Definition at line 530 of file iowaruntime.c.

References calleditobject(), derefclone(), getnexttextobject(), getprevtextobject(), h, iowadata, nil, and validobject().

Referenced by runmodekeystroke().

Here is the call graph for this function:

WindowPtr newCardWindow Point  pt,
boolean  notscriptedcard,
Handle  hpackedcard
 

Definition at line 1507 of file iowaruntime.c.

References addtowindowarray(), bigstring, bounds, cardContainsEditTextObject(), centerwindow(), disposehandle(), error, frameedittextrect(), IACglobals, iowadata, iowadisposerecord(), iowaunpack(), laythread(), longsizeof, newclearhandle(), nil, pt, quickdrawglobal, tycard::runmode, runmodeupdate(), runtimedata, sortobjectlist(), systemhascolor(), texthandletostring(), and tyIACglobals::waitroutine.

Referenced by runModalCard(), and runModelessCard().

Here is the call graph for this function:

static boolean nilvaluesvisit hdlobject  h  )  [static]
 

Definition at line 1327 of file iowaruntime.c.

References calleditableinrunmode(), disposehandle(), h, neverrecalc, and nil.

Referenced by cardcheckinit().

Here is the call graph for this function:

static boolean nullsforall void   )  [static]
 

Definition at line 1942 of file iowaruntime.c.

References iowadata, nullsforallvisit(), runtimedata, and visitCardWindows().

Referenced by isModelessCardEvent(), and runModalCard().

Here is the call graph for this function:

static boolean nullsforallvisit WindowPtr  w  )  [static]
 

Definition at line 1923 of file iowaruntime.c.

References clearbytes(), getwindowdata(), handleCardEvent(), and longsizeof.

Referenced by nullsforall().

Here is the call graph for this function:

static void objectclick hdlobject  listhead,
hdlobject  h
[static]
 

Definition at line 729 of file iowaruntime.c.

References callclick(), derefclone(), tymouserecord::fldoubleclick, flquickrecalc, tykeystrokerecord::flshiftkey, frontSetRuntimeCard(), h, iowadata, keyboardstatus, tymouserecord::localpt, minorrecalcvisit(), mousestatus, nil, runmodeupdate(), sameasbuttontype(), schedulerecalc(), sendbuttonhitmessage(), and visitobjects().

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

Here is the call graph for this function:

static boolean objectVisit hdlobject  h  )  [static]
 

Definition at line 1404 of file iowaruntime.c.

References edittexttype.

Referenced by cardContainsEditTextObject().

static boolean passthruevent short  what  )  [static]
 

Definition at line 2304 of file iowaruntime.c.

References activateEvt, and updateEvt.

Referenced by runModalCard().

boolean recalcCardWindow WindowPtr  w,
boolean  flmajorrecalc
 

Definition at line 574 of file iowaruntime.c.

References frontSetRuntimeCard(), getwindowcardrecord(), getwindowdata(), iowadata, majorrecalcvisit(), minorrecalcvisit(), nil, popmacport(), pushmacport(), runmodeupdate(), runtimedata, and visitobjects().

Here is the call graph for this function:

boolean recalcObject hdlobject  h  ) 
 

Definition at line 2009 of file iowaruntime.c.

References fl, h, iowadata, and recalcbottleneck().

Here is the call graph for this function:

static void removefromwindowarray WindowPtr  w  )  [static]
 

Definition at line 228 of file iowaruntime.c.

References ct, i, nil, and sizewindowarray().

Referenced by closeCardWindow().

Here is the call graph for this function:

static boolean returnkeyvisit hdlobject  h  )  [static]
 

Definition at line 777 of file iowaruntime.c.

References callcatchreturn(), h, hotobject(), iowadata, objectclick(), returnkeydown(), tycard::tracking, and waitfornexttick().

Referenced by handleCardEvent(), and runmodekeystroke().

Here is the call graph for this function:

static boolean returnNamedValueVisit hdlobject  h  )  [static]
 

Definition at line 2084 of file iowaruntime.c.

References bigstring, checkboxtype, copyhandle(), edittexttype, getobjectname(), getobjectvalue(), h, IACpushbooleanparam(), IACpushtextparam(), key, nil, radiobuttontype, stringlength, and texthandletostring().

Referenced by appleEventHandler().

Here is the call graph for this function:

boolean runCard Handle  hpackedcard,
boolean  flscriptedcard,
short  top,
short  pleft,
tycardeventcallback  pcallback
 

Definition at line 2594 of file iowaruntime.c.

References cardIsModal(), fl, runModalCard(), and runModelessCard().

Referenced by appruncard().

Here is the call graph for this function:

boolean runHostedCard WindowPtr  hostwindow,
Handle  hpackedcard,
boolean  flscriptedcard,
tycardeventcallback  pCallback
 

Definition at line 2680 of file iowaruntime.c.

References flreturn, frontStartCard(), installRuntimeEventHandlers(), iowadata, moveIntoCardWindow(), nil, runtimedata, and sendinitmessage().

Here is the call graph for this function:

boolean runModalCard Handle  hpackedcard,
boolean  flscriptedcard,
short  top,
short  pLeft,
tycardeventcallback  pCallback
 

Definition at line 2310 of file iowaruntime.c.

References cardcheckinit(), closeCardWindow(), everyEvent, flexitcardloop, flreturn, frontStartCard(), geteventwindow(), tyPoint::h, handleCardEvent(), installRuntimeEventHandlers(), iowadata, newCardWindow(), nil, nullsforall(), passthruevent(), runtimedata, sendinitmessage(), tyPoint::v, and tyEventRecord::what.

Referenced by apprunmodalresource(), and runCard().

Here is the call graph for this function:

static void runmodeactivate boolean  flactivating  )  [static]
 

Definition at line 281 of file iowaruntime.c.

References editactivate(), frontSetRuntimeCard(), and nil.

Referenced by handleCardEvent().

Here is the call graph for this function:

static void runmodecheckupdate void   )  [static]
 

Definition at line 1157 of file iowaruntime.c.

References iowadata, iowapreupdate(), popclip(), popmacport(), pushclip(), pushmacport(), and runmodeupdate().

Referenced by handleCardEvent(), runmodeidle(), and updateCard().

Here is the call graph for this function:

static void runmodecontentclick WindowPtr  w,
Point  pt
[static]
 

Definition at line 1034 of file iowaruntime.c.

References findrunmodeobject(), globaltolocalpoint(), tymouserecord::localpt, mousestatus, pt, and runmodetracker().

Referenced by runmodemousedown().

Here is the call graph for this function:

static void runmodeidle void   )  [static]
 

Definition at line 1212 of file iowaruntime.c.

References alwaysidlevisit(), callidleobject(), callsetcursor(), checkrecalc(), cursorisarrow, findrunmodeobject(), h, iowadata, tymouserecord::localpt, mousestatus, runmodecheckupdate(), setcursortype(), and visitobjects().

Referenced by handleCardEvent().

Here is the call graph for this function:

static boolean runmodekeystroke void   )  [static]
 

Definition at line 865 of file iowaruntime.c.

References callkeyobject(), chenter, chescape, tykeystrokerecord::chkb, chreturn, chtab, closeCardWindow(), tykeystrokerecord::flcmdkey, flexitcardloop, tykeystrokerecord::floptionkey, tykeystrokerecord::flshiftkey, iowadata, keyboardstatus, mapkeyvisit(), movetextboxcursor(), nil, returnkeyvisit(), schedulerecalc(), textticksrecalc, and visitobjects().

Referenced by handleCardEvent().

Here is the call graph for this function:

boolean runModelessCard Handle  hpackedcard,
boolean  flscriptedcard,
short  top,
short  pLeft,
tycardeventcallback  pCallback
 

Definition at line 2502 of file iowaruntime.c.

References cardcheckinit(), flreturn, frontStartCard(), tyPoint::h, installRuntimeEventHandlers(), iowadata, newCardWindow(), nil, quickdrawglobal, runtimedata, sendinitmessage(), and tyPoint::v.

Referenced by appopencardresource(), and runCard().

Here is the call graph for this function:

static boolean runmodemousedown long  when,
Point  pt,
boolean flcloseallwindows
[static]
 

Definition at line 1088 of file iowaruntime.c.

References closeAllCardWindows(), closeCardWindow(), tykeystrokerecord::floptionkey, keyboardstatus, tymouserecord::mousedownpoint, tymouserecord::mousedowntime, mousestatus, pt, quickdrawglobal, r, and runmodecontentclick().

Referenced by handleCardEvent().

Here is the call graph for this function:

static void runmodemouseup long  when,
Point  where
[static]
 

Definition at line 1067 of file iowaruntime.c.

References tymouserecord::fldoubleclickdisabled, tymouserecord::mousedowntime, mousestatus, tymouserecord::mouseuppoint, and tymouserecord::mouseuptime.

Referenced by handleCardEvent().

static void runmodetracker hdlobject  listhead,
hdlobject  x
[static]
 

Definition at line 948 of file iowaruntime.c.

References callhandlesmousetrack(), derefclone(), getobjectrect(), hotobject(), iowadata, mousetrack(), objectclick(), and r.

Referenced by runmodecontentclick().

Here is the call graph for this function:

static void runmodeupdate void   )  [static]
 

Definition at line 305 of file iowaruntime.c.

References assert, DisposeRgn, iowadata, iowaupdate(), NewRgn, nil, popmacport(), pushmacport(), and runtimedata.

Referenced by cardcheckinit(), checkinvisibles(), handleCardEvent(), moveIntoCardWindow(), newCardWindow(), objectclick(), recalcCardWindow(), runmodecheckupdate(), and updateCard().

Here is the call graph for this function:

static boolean runtimeeditableobject hdlobject  h  )  [static]
 

Definition at line 392 of file iowaruntime.c.

References calleditableinrunmode(), derefclone(), and h.

Referenced by getfirsttextobject(), getnexttextobject(), and getprevtextobject().

Here is the call graph for this function:

static boolean sameasbuttontype tyobjecttype  type  )  [static]
 

Definition at line 612 of file iowaruntime.c.

References buttontype.

Referenced by objectclick().

static boolean sendbuttonhitmessage hdlobject  h  )  [static]
 

Definition at line 675 of file iowaruntime.c.

References closeCardWindow(), h, iowaButtonHitEvent, iowaCloseEvent, iowaRunScriptEvent, long, tyEventRecord::message, nil, and tyEventRecord::what.

Referenced by objectclick().

Here is the call graph for this function:

static boolean sendclosemessage void   )  [static]
 

Definition at line 704 of file iowaruntime.c.

References iowaCancelEvent, iowaCloseEvent, iowadata, long, tyEventRecord::message, nil, and tyEventRecord::what.

Referenced by closeCardWindow().

static void sendinitmessage void   )  [static]
 

Definition at line 659 of file iowaruntime.c.

References iowadata, iowaInitEvent, long, tyEventRecord::message, nil, and tyEventRecord::what.

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

static void setCardAttributesVerb void   )  [static]
 

Definition at line 2142 of file iowaruntime.c.

References IACreturnboolean(), and IACsetcardattributes().

Here is the call graph for this function:

static void setObjectAttributesVerb void   )  [static]
 

Definition at line 2166 of file iowaruntime.c.

References IACgettextparam(), IACreturnboolean(), and IACsetobjectattributes().

Here is the call graph for this function:

boolean setObjectValue hdlcard  hcard,
bigstring  name,
Handle  hvalue
 

Definition at line 1964 of file iowaruntime.c.

References fl, hcard, iowadata, and setCardValue().

Referenced by alertfilter(), askfilter(), replaceexistingfilter(), setcardstring(), setcardtexthandle(), threewayfilter(), and twowayfilter().

Here is the call graph for this function:

static boolean showinvisiblesvisit hdlobject  h  )  [static]
 

Definition at line 1737 of file iowaruntime.c.

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

Here is the call graph for this function:

static short sizewindowarray void   )  [static]
 

Definition at line 90 of file iowaruntime.c.

References GetHandleSize, hwindowarray, longsizeof, and nil.

Referenced by addtowindowarray(), cardToFront(), closeAllCardWindows(), countCardWindows(), getwindowdata(), removefromwindowarray(), and visitCardWindows().

boolean updateCard hdlcard  hcard  ) 
 

Definition at line 2033 of file iowaruntime.c.

References getwindowdata(), hcard, iowadata, nil, runmodecheckupdate(), runmodeupdate(), and runtimedata.

Referenced by updatecard().

Here is the call graph for this function:

static char upperchar char  ch  )  [static]
 

Definition at line 807 of file iowaruntime.c.

Referenced by mapkeyvisit().

boolean visitCardWindows tycardwindowvisitroutine  visit  ) 
 

Definition at line 1647 of file iowaruntime.c.

References ct, getwindowcardrecord(), getwindowdata(), i, iowadata, nil, runtimedata, and sizewindowarray().

Referenced by getcardrecordwindow(), and nullsforall().

Here is the call graph for this function:


Variable Documentation

hdlcard cardtofind [static]
 

Definition at line 126 of file iowaruntime.c.

Referenced by getcardrecordwindow(), and getcardrecordwindowvisit().

Rect edittextrect
 

Definition at line 1402 of file iowaruntime.c.

boolean flexitcardloop = false
 

Definition at line 73 of file iowaruntime.c.

Referenced by closeCardWindow(), runModalCard(), and runmodekeystroke().

boolean flquickrecalc = true
 

Definition at line 87 of file iowaruntime.c.

Referenced by objectclick().

tycardwindow** hwindowarray = nil [static]
 

Definition at line 83 of file iowaruntime.c.

Referenced by addtowindowarray(), countCardWindows(), getwindowdata(), and sizewindowarray().

hdlruntimerecord runtimedata = nil
 

Definition at line 71 of file iowaruntime.c.

Referenced by appleEventHandler(), closeCardWindow(), getcardrecordwindow(), handleCardEvent(), isModelessCardEvent(), moveIntoCardWindow(), newCardWindow(), nullsforall(), recalcCardWindow(), runHostedCard(), runModalCard(), runModelessCard(), runmodeupdate(), updateCard(), and visitCardWindows().

WindowPtr windowtofind = nil [static]
 

Definition at line 128 of file iowaruntime.c.

Referenced by getcardrecordwindow(), and getcardrecordwindowvisit().


Generated on Fri Jun 2 05:11:10 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6