appletmain.h File Reference

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

Go to the source code of this file.

Functions

void installmenu (short, MenuHandle *)
void initmenus (void)
void getappdata (WindowPtr, Handle *)
boolean getappwindow (WindowPtr, hdlappwindow *)
boolean findappwindow (Point, hdlappwindow *)
void getappwindowtitle (hdlappwindow, bigstring)
void setappwindowtitle (hdlappwindow, bigstring)
void hideappwindow (hdlappwindow)
void getappwindowfilespec (hdlappwindow, ptrfilespec)
void showappwindow (hdlappwindow)
void selectappwindow (hdlappwindow)
boolean frontappwindow (hdlappwindow)
void updateappwindow (hdlappwindow)
void zoomappwindow (hdlappwindow)
void computewindowinfo (WindowPtr, hdlappwindow)
void disposeappwindow (hdlappwindow)
boolean visitappwindows (boolean(*)())
boolean selectvisit (hdlappwindow)
boolean selectwindowbytitle (bigstring)
boolean findbytitlevisit (hdlappwindow)
boolean findnthvisit (hdlappwindow)
boolean countwindowsvisit (hdlappwindow)
boolean resetdirtyscrollbarsvisit (hdlappwindow)
boolean resetdirtyscrollbars (void)
boolean getuntitledtitle (bigstring)
boolean setfrontglobalsvisit (hdlappwindow)
boolean setfrontglobals (void)
boolean newuntitledappwindow (boolean)
boolean openappwindow (ptrfilespec)
boolean editappwindow (Handle, OSType, AEDesc *, bigstring)
boolean saveappwindow (ptrfilespec)
boolean closeappwindow (hdlappwindow, boolean)
boolean closewindowvisit (hdlappwindow)
boolean closeallwindows (void)
boolean saveaswindow (ptrfilespec)
boolean saveasfrontwindow (void)
boolean savefrontwindow (void)
boolean openfrontwindow (void)
boolean revertfrontwindow (void)
boolean exitmainloop (void)
void adjustmenus (void)
void maineventloop (void)
boolean appserviceeventqueue (void)
boolean mousedoubleclick (Point)
void setselectionstyleinfo (tyselectioninfo *, boolean)
boolean selectallcommand (void)
void appsetfont (bigstring)
void appsetfontsize (short)
void adjustaftergrow (WindowPtr, Rect)
boolean findbyfile (ptrfilespec, hdlappwindow *)
void appleteventhandler (EventRecord *)
void appleteventdispatcher (EventRecord *)
boolean appuseractive (void)


Function Documentation

void adjustaftergrow WindowPtr  ,
Rect 
 

Definition at line 2248 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, computewindowinfo(), getgrowiconrect(), getscrollbarwidth(), invalforgrow(), invalscrollbar(), r, resetappscrollbars(), resizeappscrollbars(), setappwindowfrommacwindow(), setappwindowmadechanges(), and tyappletrecord::windowresizecallback.

Referenced by handlegrow(), movewindowverb(), and zoomappwindow().

Here is the call graph for this function:

void adjustmenus void   ) 
 

Definition at line 346 of file appletmenu.c.

Referenced by appleteventhandler().

void appleteventdispatcher EventRecord  ) 
 

Definition at line 3045 of file appletmain.c.

References appleteventhandler(), appwaitroutine(), closeallwindows(), handledialogevent(), IACglobals, isModelessCardEvent(), tymouserecord::localpt, mousestatus, setfrontglobals(), and tyIACglobals::waitroutine.

Referenced by aboutcommand(), appserviceeventqueue(), appwaitroutine(), maineventloop(), and pascaleventfilter().

Here is the call graph for this function:

void appleteventhandler EventRecord  ) 
 

Definition at line 2947 of file appletmain.c.

References activateEvt, adjustmenus(), app, appidle(), appletmainvalidate(), appresetsystemidle(), appsystemidle(), tyappletrecord::appwindow, autoKey, tyappletrecord::commanderror, countwindows(), cursorisarrow, disableeditmenuitems(), firstsharedmenu, flcurrentlyactive, flipcustommenu(), handleactivate(), handlediskinserted(), handlejuggler(), handlekeystroke(), handlemousedown(), handlemouseup(), handleupdate(), keyDown, mouseDown, mouseUp, nil, nulleventvisit(), resetdirtyscrollbars(), setcursortype(), setfrontglobals(), updateEvt, and visitappwindows().

Referenced by appcarddefaulteventhandler(), and appleteventdispatcher().

Here is the call graph for this function:

boolean appserviceeventqueue void   ) 
 

Definition at line 3134 of file appletmain.c.

References appleteventdispatcher(), everyEvent, flcmdperiod, flexitmainloop, getwaitticks(), nil, and tyEventRecord::what.

Referenced by copyfork(), and printappwindow().

Here is the call graph for this function:

void appsetfont bigstring   ) 
 

Definition at line 2556 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, and tyappletrecord::setfontcallback.

Referenced by handlemenu(), and setfontverb().

Here is the call graph for this function:

void appsetfontsize short   ) 
 

Definition at line 2577 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, tyselectioninfo::fontsize, tyappwindow::selectioninfo, and tyappletrecord::setsizecallback.

Referenced by handlemenu(), and setfontsizeverb().

Here is the call graph for this function:

boolean appuseractive void   ) 
 

Definition at line 125 of file appletidle.c.

References app, tyappletrecord::appwindow, EventAvail(), everyEvent, flinterruptedbyuser, and getidletime().

Here is the call graph for this function:

boolean closeallwindows void   ) 
 

Definition at line 1862 of file appletmain.c.

References closeAllCardWindows(), closewindowvisit(), and visitappwindows().

Referenced by appleteventdispatcher(), exitmainloop(), handlemenu(), and handlemousedown().

Here is the call graph for this function:

boolean closeappwindow hdlappwindow  ,
boolean 
 

Definition at line 1802 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, tyappletrecord::beforeclosewindowcallback, bigstring, disposeappwindow(), fileclose(), fl, getappwindowtitle(), savedialog(), savefrontwindow(), and setappwindow().

Referenced by closefrontwindow(), closewindowverb(), closewindowvisit(), idleclosevisit(), and revertfrontwindow().

Here is the call graph for this function:

boolean closewindowvisit hdlappwindow   ) 
 

Definition at line 1856 of file appletmain.c.

References closeappwindow().

Referenced by closeallwindows().

Here is the call graph for this function:

void computewindowinfo WindowPtr  ,
hdlappwindow 
 

Definition at line 782 of file appletmain.c.

References app, getscrollbarwidth(), tyappletrecord::horizscroll, tyappwindow::hpalette, r, and tyappletrecord::vertscroll.

Referenced by adjustaftergrow(), moveappwindow(), newappwindow(), and printappwindow().

Here is the call graph for this function:

boolean countwindowsvisit hdlappwindow   ) 
 

Definition at line 1033 of file appletmain.c.

References x1.

Referenced by countwindows().

void disposeappwindow hdlappwindow   ) 
 

Definition at line 868 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, disposehandle(), disposepalette(), tyappletrecord::disposerecordcallback, disposescrollbar(), disposeundostack(), tyappletrecord::haspalette, nil, and setfrontglobals().

Referenced by closeappwindow(), editappwindow(), and openappwindow().

Here is the call graph for this function:

boolean editappwindow Handle  ,
OSType  ,
AEDesc ,
bigstring 
 

Definition at line 1712 of file appletmain.c.

References app, tyappletrecord::appdata, apppostcallback(), appprecallback(), tyappletrecord::appwindow, disposeappwindow(), disposehandle(), error, findbyrefcon(), fl, getuntitledtitle(), h, newappwindow(), tyappletrecord::openingfile, prepareandshowwindow(), selectappwindow(), stringlength, and tyappletrecord::unpackcallback.

Referenced by editverb().

Here is the call graph for this function:

boolean exitmainloop void   ) 
 

Definition at line 2098 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::beforequitcallback, closeallwindows(), flexitmainloop, and setfrontglobals().

Here is the call graph for this function:

boolean findappwindow Point  ,
hdlappwindow
 

Definition at line 492 of file appletmain.c.

References getappwindow(), nil, and pt.

Here is the call graph for this function:

boolean findbyfile ptrfilespec  ,
hdlappwindow
 

Definition at line 1099 of file appletmain.c.

References findbyfilevisit(), lastwindowvisited, nil, pfsvisit, and visitappwindows().

Referenced by openappwindow(), and printfilespec().

Here is the call graph for this function:

boolean findbytitlevisit hdlappwindow   ) 
 

Definition at line 985 of file appletmain.c.

References bigstring, bsvisit, equalstrings(), and getappwindowtitle().

Referenced by findbywindowtitle().

Here is the call graph for this function:

boolean findnthvisit hdlappwindow   ) 
 

Definition at line 1013 of file appletmain.c.

References x1, and x2.

Referenced by findnthwindow().

boolean frontappwindow hdlappwindow   ) 
 

Definition at line 548 of file appletmain.c.

References assert, and nil.

void getappdata WindowPtr  ,
Handle
 

Definition at line 508 of file appletmain.c.

References getappwindow(), and nil.

Here is the call graph for this function:

boolean getappwindow WindowPtr  ,
hdlappwindow
 

Definition at line 470 of file appletmain.c.

References isCardWindow(), and nil.

Referenced by appresetsystemidle(), closefrontwindow(), findappwindow(), getappdata(), handleactivate(), handlegrow(), handleupdate(), setappwindowfrommacwindow(), and visitappwindows().

Here is the call graph for this function:

void getappwindowfilespec hdlappwindow  ,
ptrfilespec 
 

Definition at line 562 of file appletmain.c.

References clearbytes(), and longsizeof.

Referenced by saveasfrontwindow().

Here is the call graph for this function:

void getappwindowtitle hdlappwindow  ,
bigstring 
 

Definition at line 519 of file appletmain.c.

References nil, and setstringlength.

Referenced by closeappwindow(), findbytitlevisit(), gettargetverb(), nthwindowverb(), revertfrontwindow(), saveaswindow(), selectvisit(), settargetverb(), settargetvisit(), and zoomappwindow().

boolean getuntitledtitle bigstring   ) 
 

Definition at line 1076 of file appletmain.c.

References copystring(), ct, findbywindowtitle(), and pushlong().

Referenced by editappwindow(), newuntitledappwindow(), and newwindowverb().

Here is the call graph for this function:

void hideappwindow hdlappwindow   ) 
 

Definition at line 534 of file appletmain.c.

void initmenus void   ) 
 

Definition at line 1235 of file appletmenu.c.

Referenced by appletinitmanagers(), and testmenus().

void installmenu short  ,
MenuHandle
 

Definition at line 199 of file appletmenuops.c.

void maineventloop void   ) 
 

Definition at line 3115 of file appletmain.c.

References appletevent, appleteventdispatcher(), checkcloseonidle(), everyEvent, flexitmainloop, getwaitticks(), keyboardclearescape(), and nil.

Referenced by runapplet().

Here is the call graph for this function:

boolean mousedoubleclick Point   ) 
 

Definition at line 77 of file appletmouse.c.

boolean newuntitledappwindow boolean   ) 
 

Definition at line 1557 of file appletmain.c.

References tyappletrecord::afteropenwindowcallback, app, apppostcallback(), appprecallback(), bigstring, getuntitledtitle(), and newappwindow().

Referenced by handlemenu().

Here is the call graph for this function:

boolean openappwindow ptrfilespec   ) 
 

Definition at line 1580 of file appletmain.c.

References alertdialog(), app, tyappletrecord::appdata, apppostcallback(), appprecallback(), tyappletrecord::appwindow, bigstring, bsalertstring, closeresourcefile(), tyappletrecord::creator, disposeappwindow(), disposehandle(), error, fileclose(), filegetfilename(), filegetinfo(), fileopen(), filereadwholefile(), tyappletrecord::filetype, findbyfile(), fl, fnum, getresource(), getresourcehandle(), h, info, tyappletrecord::interpretfilecallback, loadappwindowinfo(), longsizeof, newappwindow(), nil, tyappletrecord::openingfile, openresourcefile(), prepareandshowwindow(), tyappletrecord::putoptionscallback, selectappwindow(), setstringlength, and tyappletrecord::unpackcallback.

Referenced by appidle(), openfilespec(), openfrontwindow(), openverb(), printfilespec(), and revertfrontwindow().

Here is the call graph for this function:

boolean openfrontwindow void   ) 
 

Definition at line 2054 of file appletmain.c.

References app, tyappletrecord::filefiltercallback, tyappletrecord::filetype, openappwindow(), openprompt, and sfdialog().

Referenced by handlemenu().

Here is the call graph for this function:

boolean resetdirtyscrollbars void   ) 
 

Definition at line 1068 of file appletmain.c.

References resetdirtyscrollbarsvisit(), and visitappwindows().

Referenced by appleteventhandler(), and appscriptcomplete().

Here is the call graph for this function:

boolean resetdirtyscrollbarsvisit hdlappwindow   ) 
 

Definition at line 1051 of file appletmain.c.

References resetappscrollbars(), and setappwindow().

Referenced by resetdirtyscrollbars().

Here is the call graph for this function:

boolean revertfrontwindow void   ) 
 

Definition at line 2065 of file appletmain.c.

References app, tyappletrecord::appwindow, bigstring, closeappwindow(), copystring(), tyappwindow::filespec, fldialogsenabled, getappwindowtitle(), openappwindow(), pushstring(), setfrontglobals(), sysbeep, and yesnodialog().

Referenced by handlemenu(), and revertverb().

Here is the call graph for this function:

boolean saveappwindow ptrfilespec   ) 
 

Definition at line 1227 of file appletmain.c.

References tyappletrecord::aftersavewindowcallback, alertdialog(), app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, bsalertstring, closeresourcefile(), disposehandle(), error, filenew(), fileseteof(), filetouchallparentfolders(), filewritehandle(), fl, fnum, tyappletrecord::getoptionscallback, h, longsizeof, nil, openresourcefile(), tyappletrecord::packcallback, putresource(), putresourcehandle(), saveappwindowinfo(), setstringlength, and watchcursor().

Referenced by saveaswindow(), and savefrontwindow().

Here is the call graph for this function:

boolean saveasfrontwindow void   ) 
 

Definition at line 1934 of file appletmain.c.

References app, tyappletrecord::appwindow, tyappletrecord::filefiltercallback, tyappletrecord::filetype, getappwindowfilespec(), saveasprompt, saveaswindow(), and sfdialog().

Referenced by handlemenu(), and savefrontwindow().

Here is the call graph for this function:

boolean saveaswindow ptrfilespec   ) 
 

Definition at line 1902 of file appletmain.c.

References app, tyappletrecord::appwindow, bigstring, bstargetwindowname, copystring(), fileclose(), filegetfilename(), getappwindowtitle(), saveappwindow(), and setappwindowtitle().

Referenced by saveasfrontwindow(), and saveasverb().

Here is the call graph for this function:

boolean savefrontwindow void   ) 
 

Definition at line 2016 of file appletmain.c.

References app, tyappletrecord::appwindow, nil, saveappwindow(), saveasfrontwindow(), and saveiacdata().

Referenced by closeappwindow(), handlemenu(), and saveasverb().

Here is the call graph for this function:

boolean selectallcommand void   ) 
 

Definition at line 2542 of file appletmain.c.

References app, apppostcallback(), appprecallback(), fl, and tyappletrecord::selectallcallback.

Here is the call graph for this function:

void selectappwindow hdlappwindow   ) 
 

Definition at line 579 of file appletmain.c.

Referenced by editappwindow(), openappwindow(), printfilespec(), and selectvisit().

boolean selectvisit hdlappwindow   ) 
 

Definition at line 952 of file appletmain.c.

References bigstring, bsvisit, equalstrings(), getappwindowtitle(), and selectappwindow().

Referenced by selectwindowbytitle().

Here is the call graph for this function:

boolean selectwindowbytitle bigstring   ) 
 

Definition at line 969 of file appletmain.c.

References bsvisit, copystring(), selectvisit(), and visitappwindows().

Referenced by selectwindowverb().

Here is the call graph for this function:

void setappwindowtitle hdlappwindow  ,
bigstring 
 

Definition at line 528 of file appletmain.c.

Referenced by newappwindow(), saveaswindow(), and setwindowtitleverb().

boolean setfrontglobals void   ) 
 

Definition at line 1146 of file appletmain.c.

References app, tyappletrecord::appwindow, nil, setappwindow(), setfrontglobalsvisit(), and visitappwindows().

Referenced by appleteventdispatcher(), appleteventhandler(), disposeappwindow(), exitmainloop(), handlemousedown(), printfilespec(), revertfrontwindow(), settargetglobals(), and settargetverb().

Here is the call graph for this function:

boolean setfrontglobalsvisit hdlappwindow   ) 
 

Definition at line 1138 of file appletmain.c.

References setappwindow().

Referenced by setfrontglobals().

Here is the call graph for this function:

void setselectionstyleinfo tyselectioninfo ,
boolean 
 

Definition at line 223 of file appletmain.c.

References bitboolean, flbold, tyselectioninfo::flbold, tyselectioninfo::flcondensed, tyselectioninfo::flextended, tyselectioninfo::flitalic, tyselectioninfo::floutline, tyselectioninfo::flshadow, tyselectioninfo::flsubscript, tyselectioninfo::flsuperscript, tyselectioninfo::flunderline, and tyselectioninfo::fontstyle.

Referenced by handlemenu().

void showappwindow hdlappwindow   ) 
 

Definition at line 573 of file appletmain.c.

Referenced by newappwindow(), and prepareandshowwindow().

void updateappwindow hdlappwindow   ) 
 

Definition at line 653 of file appletmain.c.

References app, appdrawmessage(), apperaserect(), apppostcallback(), appprecallback(), apprectneedsupdate(), drawappgrowicon(), fldoublestatusline, getgrowiconrect(), tyappletrecord::haspalette, paletteupdate(), popclip(), pushclip(), r, setappwindow(), tyappletrecord::setglobalscallback, updateappscrollbars(), tyappletrecord::updatecallback, and tyappletrecord::updatestatuscallback.

Here is the call graph for this function:

boolean visitappwindows boolean(*)()   ) 
 

void zoomappwindow hdlappwindow   ) 
 

Definition at line 2391 of file appletmain.c.

References adjustaftergrow(), app, apperaserect(), appgetdesktoprect(), apppostcallback(), appprecallback(), bigstring, constraintodesktop(), equalrects(), tyappletrecord::eraseonresize, erasewindow(), fl, getappwindowtitle(), tyappletrecord::getcontentsizecallback, getpalettesize(), getscrollbarinfo(), getscrollbarwidth(), tyappletrecord::haspalette, tyappletrecord::horizscroll, invalscrollbar(), tyappletrecord::minwindowheight, tyappletrecord::minwindowwidth, normal, optionkeydown(), popstyle(), pushstyle(), r, tyappletrecord::scrolltocallback, setscrollbarcurrent(), systemFont, updateappwindow(), and tyappletrecord::vertscroll.

Referenced by checkzoombeforeopen(), handlemousedown(), and zoomwindowverb().

Here is the call graph for this function:


Generated on Wed May 31 21:32:11 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6