appletmain.c File Reference

#include <GestaltEqu.h>
#include <iac.h>
#include <iowacore.h>
#include "appletinternal.h"
#include "appletmsg.h"
#include "appletmain.h"
#include "appletmenu.h"
#include "appletscrollbar.h"
#include "appletmenuops.h"
#include "appletresource.h"
#include "appletidle.h"
#include "appletwires.h"
#include "appletfilemodified.h"
#include "appletsyserror.h"

Include dependency graph for appletmain.c:

Go to the source code of this file.

Data Structures

struct  tydiskwindowinfo
struct  tyjugglermessage

Defines

#define fldoublestatusline   false
#define saveasprompt   "\pSave AsÉ"
#define openprompt   "\pOpenÉ"
#define nowindowerror   7
#define windowopenerror   8
#define nopictcallbackerror   9
#define notextcallbackerror   10
#define noputtextcallbackerror   11
#define noputpictcallbackerror   12
#define jugglerEvt   15

Typedefs

typedef boolean(* tyvisitapproutine )(hdlappwindow)

Enumerations

enum  {
  clearkey = 0x47, helpkey = 0x72, homekey = 0x73, endkey = 0x77,
  pgupkey = 0x74, pgdnkey = 0x79
}

Functions

static boolean filterfunctionkey (long *codeword)
void apperaserect (Rect r)
void setselectionstyleinfo (tyselectioninfo *pselinfo, boolean flpack)
static void getgrowiconrect (hdlappwindow appwindow, Rect *rgrowicon)
void drawappgrowicon (hdlappwindow appwindow)
boolean apppushwindow (hdlappwindow appwindow)
boolean apppopwindow (void)
boolean apppushclip (Rect r)
boolean apppopclip (void)
void appprecallback (void)
void apppostcallback (void)
boolean appopenbitmap (Rect r, hdlappwindow appwindow)
boolean appclosebitmap (hdlappwindow appwindow)
boolean getappwindow (WindowPtr w, hdlappwindow *appwindow)
boolean findappwindow (Point pt, hdlappwindow *appwindow)
void getappdata (WindowPtr w, Handle *appdata)
void getappwindowtitle (hdlappwindow appwindow, bigstring bs)
void setappwindowtitle (hdlappwindow appwindow, bigstring bs)
void hideappwindow (hdlappwindow appwindow)
void setappwindowmadechanges (hdlappwindow appwindow)
boolean frontappwindow (hdlappwindow appwindow)
static void getappfilename (hdlappwindow appwindow, bigstring bs)
void getappwindowfilespec (hdlappwindow appwindow, ptrfilespec pfs)
void showappwindow (hdlappwindow appwindow)
void selectappwindow (hdlappwindow appwindow)
void invalappwindow (hdlappwindow appwindow, boolean flerase)
void setappwindow (hdlappwindow appwindow)
boolean apprectneedsupdate (Rect r)
void appinvalstatusseparator (void)
void updateappwindow (hdlappwindow appwindow)
void computewindowinfo (WindowPtr macwindow, hdlappwindow appwindow)
void appgetdesktoprect (hdlappwindow appwindow, Rect *rwindow)
void disposeappwindow (hdlappwindow appwindow)
boolean visitappwindows (tyvisitapproutine visitproc)
boolean selectvisit (hdlappwindow appwindow)
boolean selectwindowbytitle (bigstring bs)
boolean findbytitlevisit (hdlappwindow appwindow)
boolean findbywindowtitle (bigstring bstitle, hdlappwindow *appwindow)
boolean findnthvisit (hdlappwindow appwindow)
boolean findnthwindow (short n, hdlappwindow *appwindow)
boolean countwindowsvisit (hdlappwindow appwindow)
short countwindows (void)
boolean resetdirtyscrollbarsvisit (hdlappwindow appwindow)
boolean resetdirtyscrollbars (void)
boolean getuntitledtitle (bigstring bs)
static boolean findbyfilevisit (hdlappwindow appwindow)
boolean findbyfile (ptrfilespec pfs, hdlappwindow *appwindow)
static boolean findbyrefconvisit (hdlappwindow appwindow)
static boolean findbyrefcon (AEDesc *refon, hdlappwindow *appwindow)
boolean setfrontglobalsvisit (hdlappwindow appwindow)
boolean setfrontglobals (void)
void moveappwindow (hdlappwindow appwindow, Rect r)
static void saveappwindowinfo (hdlappwindow appwindow, tydiskwindowinfo *appwindowinfo)
static void loadappwindowinfo (hdlappwindow appwindow, tydiskwindowinfo appwindowinfo)
boolean saveappwindow (ptrfilespec pfs)
static void checkzoombeforeopen (hdlappwindow appwindow)
static void appinitfontdefaults (hdlappwindow ha)
boolean newappwindow (bigstring bstitle, boolean flshowwindow)
static void prepareandshowwindow (hdlappwindow ha)
boolean newuntitledappwindow (boolean flshowwindow)
boolean openappwindow (ptrfilespec pfs)
boolean editappwindow (Handle hpackeddata, OSType sender, AEDesc *refcon, bigstring bstitle)
static short savedialog (bigstring fname)
boolean closeappwindow (hdlappwindow appwindow, boolean fldialog)
boolean closewindowvisit (hdlappwindow appwindow)
boolean closeallwindows (void)
static boolean invalallwindowsvisit (hdlappwindow appwindow)
boolean invalallwindows (void)
static boolean eraseallwindowsvisit (hdlappwindow appwindow)
boolean eraseallwindows (void)
boolean saveaswindow (ptrfilespec pfs)
boolean saveasfrontwindow (void)
static boolean saveiacdata (void)
boolean savefrontwindow (void)
boolean closefrontwindow (void)
boolean openfrontwindow (void)
boolean revertfrontwindow (void)
boolean exitmainloop (void)
static void handleupdate (EventRecord *ev)
static void handlediskinserted (EventRecord *ev)
static void handleactivate (EventRecord *ev)
static void handledrag (EventRecord *ev, WindowPtr w)
static void setappwindowfrommacwindow (WindowPtr macwindow)
static void invalforgrow (Rect r)
void adjustaftergrow (WindowPtr w, Rect oldportrect)
static void erasewindow (WindowPtr w)
static void handlegrow (Point pt, WindowPtr w)
void zoomappwindow (hdlappwindow appwindow)
boolean selectallcommand (void)
void appsetfont (bigstring fontname)
void appsetfontsize (short size)
static void handlekeystroke (EventRecord *ev)
static void handlecontent (EventRecord *ev, WindowPtr w)
static void handlemouseup (EventRecord *ev)
static void handlemousedown (EventRecord *ev)
static boolean jugglervisit (hdlappwindow appwindow)
static void handlejuggler (EventRecord *ev)
static boolean handledialogevent (EventRecord *ev)
static void appidle (void)
static boolean appletmainvalidatevisit (hdlappwindow appwindow)
static void appletmainvalidate (void)
static boolean nulleventvisit (hdlappwindow appwindow)
void appleteventhandler (EventRecord *ev)
void appleteventdispatcher (EventRecord *ev)
static boolean idleclosevisit (hdlappwindow appwindow)
static void checkcloseonidle (void)
static long getwaitticks (void)
void maineventloop (void)
boolean appserviceeventqueue (void)
static void initscrap (void)
static boolean noopcallback (void)
static void checkcallback (tyappcallback *cb)
static void normaleraserectcallback (Rect r)
static boolean normalsetfontcallback (void)
static void checknilcallbacks (void)
static pascal void pascalalertdialog (Str255 s)
static pascal void pascaleventfilter (EventRecord *ev)
boolean appletinitmanagers (void)
void runapplet (void)

Variables

tyappletrecord app
ptrfilespec pfsvisit
AEDescprefconvisit
bigstring bsvisit
short x1
short x2
hdlappwindow lastwindowvisited
boolean flcmdperiod = false
static THz appletheapzone
EventRecord appletevent
boolean flexitmainloop = false
static boolean flcurrentlyactive = true
boolean flappopenfileonidle
tyfilespec fsidleopen
static boolean managersinited = false


Define Documentation

#define fldoublestatusline   false
 

Definition at line 25 of file appletmain.c.

Referenced by appinvalstatusseparator(), and updateappwindow().

#define jugglerEvt   15
 

Definition at line 100 of file appletmain.c.

#define nopictcallbackerror   9
 

Definition at line 91 of file appletmain.c.

#define noputpictcallbackerror   12
 

Definition at line 94 of file appletmain.c.

#define noputtextcallbackerror   11
 

Definition at line 93 of file appletmain.c.

#define notextcallbackerror   10
 

Definition at line 92 of file appletmain.c.

#define nowindowerror   7
 

Definition at line 89 of file appletmain.c.

#define openprompt   "\pOpenÉ"
 

Definition at line 29 of file appletmain.c.

Referenced by openfrontwindow().

#define saveasprompt   "\pSave AsÉ"
 

Definition at line 27 of file appletmain.c.

Referenced by saveasfrontwindow().

#define windowopenerror   8
 

Definition at line 90 of file appletmain.c.


Typedef Documentation

typedef boolean(* tyvisitapproutine)(hdlappwindow)
 

Definition at line 905 of file appletmain.c.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
clearkey 
helpkey 
homekey 
endkey 
pgupkey 
pgdnkey 

Definition at line 114 of file appletmain.c.


Function Documentation

void adjustaftergrow WindowPtr  w,
Rect  oldportrect
 

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:

boolean appclosebitmap hdlappwindow  appwindow  ) 
 

Definition at line 462 of file appletmain.c.

References closebitmap().

Here is the call graph for this function:

void apperaserect Rect  r  ) 
 

Definition at line 209 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::eraserectcallback, popclip(), and pushclip().

Referenced by erasewindow(), invalappwindow(), updateappwindow(), and zoomappwindow().

Here is the call graph for this function:

void appgetdesktoprect hdlappwindow  appwindow,
Rect rwindow
 

Definition at line 854 of file appletmain.c.

References localtoglobalrect(), popmacport(), and pushmacport().

Referenced by newappwindow(), saveappwindowinfo(), and zoomappwindow().

Here is the call graph for this function:

static void appidle void   )  [static]
 

Definition at line 2891 of file appletmain.c.

References app, apppostcallback(), appprecallback(), fsidleopen, tyappletrecord::idlecallback, openappwindow(), and tyappletrecord::preupdatecallback.

Referenced by appleteventhandler(), and nulleventvisit().

Here is the call graph for this function:

static void appinitfontdefaults hdlappwindow  ha  )  [static]
 

Definition at line 1338 of file appletmain.c.

References app, tyappletrecord::defaultfont, tyappletrecord::defaultsize, tyappletrecord::defaultstyle, and leftjustified.

Referenced by newappwindow().

void appinvalstatusseparator void   ) 
 

Definition at line 638 of file appletmain.c.

References app, tyappletrecord::appwindow, fldoublestatusline, and r.

void appleteventdispatcher EventRecord ev  ) 
 

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

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 appletinitmanagers void   ) 
 

Definition at line 3358 of file appletmain.c.

References app, appletheapzone, checknilcallbacks(), clearbytes(), tyappletrecord::dontpostcallback, IACinit(), initappletwires(), initIowaRuntime(), initmacintosh(), tyappletrecord::initmacintoshcallback, initmenus(), initscrap(), initsyserror(), longsizeof, tyappletrecord::minwindowheight, tyappletrecord::minwindowwidth, mousestatus, pascalalertdialog(), and pascaleventfilter().

Referenced by main(), and runapplet().

Here is the call graph for this function:

static void appletmainvalidate void   )  [static]
 

Definition at line 2931 of file appletmain.c.

References appletmainvalidatevisit(), and visitappwindows().

Referenced by appleteventhandler().

Here is the call graph for this function:

static boolean appletmainvalidatevisit hdlappwindow  appwindow  )  [static]
 

Definition at line 2910 of file appletmain.c.

Referenced by appletmainvalidate().

boolean appopenbitmap Rect  r,
hdlappwindow  appwindow
 

Definition at line 456 of file appletmain.c.

References openbitmap().

Here is the call graph for this function:

boolean apppopclip void   ) 
 

Definition at line 376 of file appletmain.c.

References app, tyappletrecord::appwindow, and popclip().

Here is the call graph for this function:

boolean apppopwindow void   ) 
 

Definition at line 351 of file appletmain.c.

References popmacport().

Here is the call graph for this function:

void apppostcallback void   ) 
 

Definition at line 421 of file appletmain.c.

References app, tyappletrecord::appwindow, tyappletrecord::dontpostcallback, nil, popclip(), popmacport(), and pushmacport().

Referenced by adjustaftergrow(), appcopycommand(), appdefaultresetscroll(), apperaserect(), appidle(), appopencardresource(), appsetfont(), appsetfontsize(), checkfontsizestyle(), clearcommand(), closeappwindow(), disposeappwindow(), editappwindow(), editclickbottleneck(), exitmainloop(), handleactivate(), handlecontent(), handlecustomverb(), handlediskinserted(), handlefastverb(), handlejuggler(), handlekeystroke(), handlemenu(), jugglervisit(), newuntitledappwindow(), openaboutwindow(), openappwindow(), pastecommand(), prepareandshowwindow(), resetappscrollbars(), saveappwindow(), saveiacdata(), scrollappwindow(), scrolltoappwindow(), selectallcommand(), systemidlevisit(), undocommand(), updateappwindow(), and zoomappwindow().

Here is the call graph for this function:

void appprecallback void   ) 
 

Definition at line 395 of file appletmain.c.

References app, tyappletrecord::appwindow, nil, pushclip(), pushmacport(), and tyappletrecord::setglobalscallback.

Referenced by adjustaftergrow(), appcopycommand(), appdefaultresetscroll(), apperaserect(), appidle(), appopencardresource(), appsetfont(), appsetfontsize(), checkfontsizestyle(), clearcommand(), closeappwindow(), disposeappwindow(), editappwindow(), editclickbottleneck(), exitmainloop(), handleactivate(), handlecontent(), handlecustomverb(), handlediskinserted(), handlefastverb(), handlejuggler(), handlekeystroke(), handlemenu(), jugglervisit(), newuntitledappwindow(), openaboutwindow(), openappwindow(), pastecommand(), prepareandshowwindow(), resetappscrollbars(), saveappwindow(), saveiacdata(), scrollappwindow(), scrolltoappwindow(), selectallcommand(), systemidlevisit(), undocommand(), updateappwindow(), and zoomappwindow().

Here is the call graph for this function:

boolean apppushclip Rect  r  ) 
 

Definition at line 357 of file appletmain.c.

References app, tyappletrecord::appwindow, and pushclip().

Here is the call graph for this function:

boolean apppushwindow hdlappwindow  appwindow  ) 
 

Definition at line 345 of file appletmain.c.

References pushmacport().

Here is the call graph for this function:

boolean apprectneedsupdate Rect  r  ) 
 

Definition at line 630 of file appletmain.c.

References app, and tyappletrecord::appwindow.

Referenced by oprectneedsupdate(), and updateappwindow().

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

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

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:

static void checkcallback tyappcallback cb  )  [static]
 

Definition at line 3188 of file appletmain.c.

References nil, and noopcallback().

Referenced by checknilcallbacks().

Here is the call graph for this function:

static void checkcloseonidle void   )  [static]
 

Definition at line 3090 of file appletmain.c.

References idleclosevisit(), and visitappwindows().

Referenced by maineventloop().

Here is the call graph for this function:

static void checknilcallbacks void   )  [static]
 

Definition at line 3218 of file appletmain.c.

References tyappletrecord::activatecallback, tyappletrecord::afteropenwindowcallback, tyappletrecord::aftersavewindowcallback, tyappletrecord::alertcallback, alertdialog(), app, tyappletrecord::beforeclosewindowcallback, tyappletrecord::beforequitcallback, checkcallback(), tyappletrecord::clearcallback, tyappletrecord::closeprintcallback, tyappletrecord::copycallback, tyappletrecord::diskinsertedcallback, tyappletrecord::disposerecordcallback, tyappletrecord::eraserectcallback, tyappletrecord::getcontentsizecallback, tyappletrecord::getoptionscallback, tyappletrecord::getpictcallback, tyappletrecord::gettextcallback, tyappletrecord::getundoglobalscallback, tyappletrecord::haveselectioncallback, tyappletrecord::iacfastmessagecallback, tyappletrecord::iacmessagecallback, tyappletrecord::idlecallback, tyappletrecord::initmacintoshcallback, tyappletrecord::insertmenucallback, installscroll(), tyappletrecord::interpretfilecallback, tyappletrecord::keystrokecallback, tyappletrecord::menucallback, tyappletrecord::mousecallback, tyappletrecord::mouseinstatuscallback, tyappletrecord::newrecordcallback, nil, normaleraserectcallback(), normalsetfontcallback(), tyappletrecord::openappcallback, tyappletrecord::opendoccallback, tyappletrecord::openprintcallback, tyappletrecord::packcallback, tyappletrecord::pagesetupcallback, tyappletrecord::pastecallback, tyappletrecord::preupdatecallback, tyappletrecord::printpagecallback, tyappletrecord::putoptionscallback, tyappletrecord::putpictcallback, tyappletrecord::puttextcallback, tyappletrecord::resetscrollcallback, tyappletrecord::resumecallback, tyappletrecord::scrollcallback, tyappletrecord::scrolltocallback, tyappletrecord::selectallcallback, tyappletrecord::setfontcallback, tyappletrecord::setglobalscallback, tyappletrecord::setjustifycallback, tyappletrecord::setselectioninfocallback, tyappletrecord::setsizecallback, tyappletrecord::setstylecallback, tyappletrecord::setundoglobalscallback, tyappletrecord::switchcallback, tyappletrecord::unpackcallback, tyappletrecord::updatecallback, tyappletrecord::updatestatuscallback, and tyappletrecord::windowresizecallback.

Referenced by appletinitmanagers().

Here is the call graph for this function:

static void checkzoombeforeopen hdlappwindow  appwindow  )  [static]
 

Definition at line 1327 of file appletmain.c.

References zoomappwindow().

Referenced by newappwindow(), and prepareandshowwindow().

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  appwindow,
boolean  fldialog
 

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 closefrontwindow void   ) 
 

Definition at line 2036 of file appletmain.c.

References closeappwindow(), closeCardWindow(), and getappwindow().

Referenced by handlemenu(), and handlemousedown().

Here is the call graph for this function:

boolean closewindowvisit hdlappwindow  appwindow  ) 
 

Definition at line 1856 of file appletmain.c.

References closeappwindow().

Referenced by closeallwindows().

Here is the call graph for this function:

void computewindowinfo WindowPtr  macwindow,
hdlappwindow  appwindow
 

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:

short countwindows void   ) 
 

Definition at line 1041 of file appletmain.c.

References countwindowsvisit(), visitappwindows(), and x1.

Referenced by appleteventhandler(), and countwindowsverb().

Here is the call graph for this function:

boolean countwindowsvisit hdlappwindow  appwindow  ) 
 

Definition at line 1033 of file appletmain.c.

References x1.

Referenced by countwindows().

void disposeappwindow hdlappwindow  appwindow  ) 
 

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:

void drawappgrowicon hdlappwindow  appwindow  ) 
 

Definition at line 320 of file appletmain.c.

References getgrowiconrect(), popclip(), and pushclip().

Referenced by handleactivate(), jugglervisit(), and updateappwindow().

Here is the call graph for this function:

boolean editappwindow Handle  hpackeddata,
OSType  sender,
AEDesc refcon,
bigstring  bstitle
 

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 eraseallwindows void   ) 
 

Definition at line 1896 of file appletmain.c.

References eraseallwindowsvisit(), and visitappwindows().

Here is the call graph for this function:

static boolean eraseallwindowsvisit hdlappwindow  appwindow  )  [static]
 

Definition at line 1888 of file appletmain.c.

References invalappwindow().

Referenced by eraseallwindows().

Here is the call graph for this function:

static void erasewindow WindowPtr  w  )  [static]
 

Definition at line 2331 of file appletmain.c.

References apperaserect(), popclip(), popmacport(), pushclip(), pushmacport(), and r.

Referenced by handlegrow(), and zoomappwindow().

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:

static boolean filterfunctionkey long codeword  )  [static]
 

Definition at line 132 of file appletmain.c.

References clearitem, clearkey, copyitem, cutitem, editmenu, enditem, endkey, extendedmenu, helpitem, helpkey, homeitem, homekey, keyboardstatus, tykeystrokerecord::keycode, long, pagedownitem, pageupitem, pasteitem, pgdnkey, pgupkey, and undoitem.

Referenced by handlekeystroke().

boolean findappwindow Point  pt,
hdlappwindow appwindow
 

Definition at line 492 of file appletmain.c.

References getappwindow(), nil, and pt.

Here is the call graph for this function:

boolean findbyfile ptrfilespec  pfs,
hdlappwindow appwindow
 

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:

static boolean findbyfilevisit hdlappwindow  appwindow  )  [static]
 

Definition at line 1093 of file appletmain.c.

References equalfilespecs(), and pfsvisit.

Referenced by findbyfile().

Here is the call graph for this function:

static boolean findbyrefcon AEDesc refon,
hdlappwindow appwindow
[static]
 

Definition at line 1123 of file appletmain.c.

References findbyrefconvisit(), lastwindowvisited, nil, prefconvisit, and visitappwindows().

Referenced by editappwindow().

Here is the call graph for this function:

static boolean findbyrefconvisit hdlappwindow  appwindow  )  [static]
 

Definition at line 1114 of file appletmain.c.

References equalhandles().

Referenced by findbyrefcon().

Here is the call graph for this function:

boolean findbytitlevisit hdlappwindow  appwindow  ) 
 

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 findbywindowtitle bigstring  bstitle,
hdlappwindow appwindow
 

Definition at line 998 of file appletmain.c.

References bsvisit, copystring(), findbytitlevisit(), lastwindowvisited, nil, and visitappwindows().

Referenced by getuntitledtitle(), and newwindowverb().

Here is the call graph for this function:

boolean findnthvisit hdlappwindow  appwindow  ) 
 

Definition at line 1013 of file appletmain.c.

References x1, and x2.

Referenced by findnthwindow().

boolean findnthwindow short  n,
hdlappwindow appwindow
 

Definition at line 1019 of file appletmain.c.

References findnthvisit(), lastwindowvisited, nil, visitappwindows(), x1, and x2.

Referenced by nthwindowverb().

Here is the call graph for this function:

boolean frontappwindow hdlappwindow  appwindow  ) 
 

Definition at line 548 of file appletmain.c.

References assert, and nil.

void getappdata WindowPtr  w,
Handle appdata
 

Definition at line 508 of file appletmain.c.

References getappwindow(), and nil.

Here is the call graph for this function:

static void getappfilename hdlappwindow  appwindow,
bigstring  bs
[static]
 

Definition at line 556 of file appletmain.c.

References filegetfilename().

Here is the call graph for this function:

boolean getappwindow WindowPtr  w,
hdlappwindow appwindow
 

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  appwindow,
ptrfilespec  pfs
 

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  appwindow,
bigstring  bs
 

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().

static void getgrowiconrect hdlappwindow  appwindow,
Rect rgrowicon
[static]
 

Definition at line 305 of file appletmain.c.

References r.

Referenced by adjustaftergrow(), drawappgrowicon(), handlegrow(), and updateappwindow().

boolean getuntitledtitle bigstring  bs  ) 
 

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:

static long getwaitticks void   )  [static]
 

Definition at line 3104 of file appletmain.c.

References flcurrentlyactive.

Referenced by appserviceeventqueue(), and maineventloop().

static void handleactivate EventRecord ev  )  [static]
 

Definition at line 2160 of file appletmain.c.

References activateappscrollbars(), tyappletrecord::activatecallback, activeFlag, app, apppostcallback(), appprecallback(), drawappgrowicon(), flipcustommenu(), getappwindow(), setappwindow(), and updateappwindow().

Referenced by appleteventhandler().

Here is the call graph for this function:

static void handlecontent EventRecord ev,
WindowPtr  w
[static]
 

Definition at line 2653 of file appletmain.c.

References app, appmessageclick(), apppostcallback(), appprecallback(), tyappletrecord::appwindow, findscrollbar(), tymouserecord::fldoubleclick, globaltolocalpoint(), tyPoint::h, handlescrollbar(), tyappletrecord::haspalette, tymouserecord::localpt, tyappletrecord::mousecallback, mousedoubleclick(), tyappletrecord::mouseinstatuscallback, mousestatus, palettemousedown(), popclip(), pt, pushclip(), setkeyboardstatus(), and tyPoint::v.

Referenced by handlemousedown().

Here is the call graph for this function:

static boolean handledialogevent EventRecord ev  )  [static]
 

Definition at line 2866 of file appletmain.c.

Referenced by appleteventdispatcher().

static void handlediskinserted EventRecord ev  )  [static]
 

Definition at line 2131 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::diskinsertedcallback, message, noErr, and pt.

Referenced by appleteventhandler().

Here is the call graph for this function:

static void handledrag EventRecord ev,
WindowPtr  w
[static]
 

Definition at line 2194 of file appletmain.c.

References dragscreenmargin, getmenubarheight(), quickdrawglobal, and r.

Referenced by handlemousedown().

Here is the call graph for this function:

static void handlegrow Point  pt,
WindowPtr  w
[static]
 

Definition at line 2351 of file appletmain.c.

References adjustaftergrow(), app, tyappletrecord::eraseonresize, erasewindow(), getappwindow(), getgrowiconrect(), HiWord, LoWord, tyappletrecord::minwindowheight, tyappletrecord::minwindowwidth, pt, quickdrawglobal, and r.

Referenced by handlemousedown().

Here is the call graph for this function:

static void handlejuggler EventRecord ev  )  [static]
 

Definition at line 2839 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyjugglermessage::eventtype, tyjugglermessage::flconvertclipboard, flcurrentlyactive, tyjugglermessage::flresume, jugglervisit(), longsizeof, moveleft(), tyappletrecord::resumecallback, and visitappwindows().

Referenced by appleteventhandler().

Here is the call graph for this function:

static void handlekeystroke EventRecord ev  )  [static]
 

Definition at line 2595 of file appletmain.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, arrowkey(), filterfunctionkey(), flcmdperiod, handlemenu(), HiWord, keyboardstatus, tykeystrokerecord::keydirection, tyappletrecord::keystrokecallback, nil, nodirection, and setkeyboardstatus().

Referenced by appleteventhandler().

Here is the call graph for this function:

static void handlemousedown EventRecord ev  )  [static]
 

Definition at line 2745 of file appletmain.c.

References app, tyappletrecord::appwindow, closeallwindows(), closefrontwindow(), tymouserecord::fldoubleclickdisabled, handlecontent(), handledrag(), handlegrow(), handlemenu(), tymouserecord::mousedownpoint, tymouserecord::mousedowntime, mousestatus, nil, optionkeydown(), setfrontglobals(), and zoomappwindow().

Referenced by appleteventhandler().

Here is the call graph for this function:

static void handlemouseup EventRecord ev  )  [static]
 

Definition at line 2724 of file appletmain.c.

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

Referenced by appleteventhandler().

static void handleupdate EventRecord ev  )  [static]
 

Definition at line 2119 of file appletmain.c.

References getappwindow(), and updateappwindow().

Referenced by appleteventhandler().

Here is the call graph for this function:

void hideappwindow hdlappwindow  appwindow  ) 
 

Definition at line 534 of file appletmain.c.

static boolean idleclosevisit hdlappwindow  appwindow  )  [static]
 

Definition at line 3081 of file appletmain.c.

References closeappwindow().

Referenced by checkcloseonidle().

Here is the call graph for this function:

static void initscrap void   )  [static]
 

Definition at line 3169 of file appletmain.c.

boolean invalallwindows void   ) 
 

Definition at line 1882 of file appletmain.c.

References invalallwindowsvisit(), and visitappwindows().

Here is the call graph for this function:

static boolean invalallwindowsvisit hdlappwindow  appwindow  )  [static]
 

Definition at line 1874 of file appletmain.c.

References invalappwindow().

Referenced by invalallwindows().

Here is the call graph for this function:

void invalappwindow hdlappwindow  appwindow,
boolean  flerase
 

Definition at line 585 of file appletmain.c.

References apperaserect(), invalrect(), popmacport(), pushmacport(), and r.

Referenced by eraseallwindowsvisit(), invalallwindowsvisit(), and normalsetfontcallback().

Here is the call graph for this function:

static void invalforgrow Rect  r  )  [static]
 

Definition at line 2223 of file appletmain.c.

References app, tyappletrecord::eraseonresize, eraserect(), invalrect(), popclip(), and pushclip().

Referenced by adjustaftergrow().

Here is the call graph for this function:

static boolean jugglervisit hdlappwindow  appwindow  )  [static]
 

Definition at line 2818 of file appletmain.c.

References activateappscrollbars(), app, apppostcallback(), appprecallback(), drawappgrowicon(), fl, flcurrentlyactive, setappwindow(), and tyappletrecord::switchcallback.

Referenced by handlejuggler().

Here is the call graph for this function:

static void loadappwindowinfo hdlappwindow  appwindow,
tydiskwindowinfo  appwindowinfo
[static]
 

Definition at line 1199 of file appletmain.c.

References tydiskwindowinfo::defaultfontstring, tydiskwindowinfo::defaultjustification, tydiskwindowinfo::defaultsize, diskgetfontnum(), tydiskwindowinfo::horizcurrent, tydiskwindowinfo::horizmax, tydiskwindowinfo::horizmin, moveappwindow(), setscrollbarinfo(), tydiskwindowinfo::vertcurrent, tydiskwindowinfo::vertmax, tydiskwindowinfo::vertmin, and tydiskwindowinfo::windowrect.

Referenced by openappwindow().

Here is the call graph for this function:

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:

void moveappwindow hdlappwindow  appwindow,
Rect  r
 

Definition at line 1156 of file appletmain.c.

References computewindowinfo(), constraintodesktop(), resetappscrollbars(), and resizeappscrollbars().

Referenced by loadappwindowinfo(), and movewindowverb().

Here is the call graph for this function:

boolean newappwindow bigstring  bstitle,
boolean  flshowwindow
 

Definition at line 1350 of file appletmain.c.

References app, tyappletrecord::appdata, appgetdesktoprect(), appinitfontdefaults(), tyappletrecord::appwindow, bigstring, blackcolor, bounds, centerwindow(), checkzoombeforeopen(), computewindowinfo(), tyappletrecord::creator, tyappletrecord::ctpaletteicons, disposehandle(), disposepalette(), disposescrollbar(), disposeundostack(), error, tyappletrecord::exactcolors, tyappletrecord::filetype, tyappwindow::filetype, fl, getcolorpalette(), tyappletrecord::haspalette, tyappletrecord::horizscroll, lastword(), longsizeof, typaletterecord::macwindow, newclearhandle(), newpalette(), tyappletrecord::newrecordcallback, newscrollbar(), newundostack(), nil, tyappletrecord::notsaveable, popmacport(), pushmacport(), quickdrawglobal, redostack, resetappscrollbars(), resizeappscrollbars(), setappwindow(), setappwindowtitle(), showappscrollbars(), showappwindow(), tyappletrecord::statuspixels, systemhascolor(), tyappletrecord::systemidleticks, typeNull, undostack, tyappletrecord::usecolor, tyappletrecord::vertscroll, and whitecolor.

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

Here is the call graph for this function:

boolean newuntitledappwindow boolean  flshowwindow  ) 
 

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:

static boolean noopcallback void   )  [static]
 

Definition at line 3180 of file appletmain.c.

Referenced by checkcallback().

static void normaleraserectcallback Rect  r  )  [static]
 

Definition at line 3195 of file appletmain.c.

Referenced by checknilcallbacks().

static boolean normalsetfontcallback void   )  [static]
 

Definition at line 3201 of file appletmain.c.

References app, tyappletrecord::appwindow, tyselectioninfo::fontnum, tyselectioninfo::fontsize, invalappwindow(), and tyappwindow::selectioninfo.

Referenced by checknilcallbacks().

Here is the call graph for this function:

static boolean nulleventvisit hdlappwindow  appwindow  )  [static]
 

Definition at line 2937 of file appletmain.c.

References appidle(), and setappwindow().

Referenced by appleteventhandler().

Here is the call graph for this function:

boolean openappwindow ptrfilespec  pfs  ) 
 

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:

static pascal void pascalalertdialog Str255  s  )  [static]
 

Definition at line 3342 of file appletmain.c.

References alertdialog(), and stringlength.

Referenced by appletinitmanagers().

Here is the call graph for this function:

static pascal void pascaleventfilter EventRecord ev  )  [static]
 

Definition at line 3349 of file appletmain.c.

References appleteventdispatcher().

Referenced by appletinitmanagers().

Here is the call graph for this function:

static void prepareandshowwindow hdlappwindow  ha  )  [static]
 

Definition at line 1533 of file appletmain.c.

References tyappletrecord::afteropenwindowcallback, app, apppostcallback(), appprecallback(), checkzoombeforeopen(), resetappscrollbars(), showappscrollbars(), and showappwindow().

Referenced by editappwindow(), and openappwindow().

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

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:

void runapplet void   ) 
 

Definition at line 3402 of file appletmain.c.

References appletinitmanagers(), IACremovesystemhandlers(), and maineventloop().

Referenced by main().

Here is the call graph for this function:

boolean saveappwindow ptrfilespec  pfs  ) 
 

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:

static void saveappwindowinfo hdlappwindow  appwindow,
tydiskwindowinfo appwindowinfo
[static]
 

Definition at line 1174 of file appletmain.c.

References appgetdesktoprect(), clearbytes(), diskgetfontname(), getscrollbarinfo(), longsizeof, and tyappwindow::windowrect.

Referenced by saveappwindow().

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

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:

static short savedialog bigstring  fname  )  [static]
 

Definition at line 1783 of file appletmain.c.

References bigstring, copystring(), fldialogsenabled, pushstring(), sysbeep, and threewaydialog().

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:

static boolean saveiacdata void   )  [static]
 

Definition at line 1948 of file appletmain.c.

References tyappletrecord::aftersavewindowcallback, alertdialog(), app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, tyAEDesc::dataHandle, tyAEDesc::descriptorType, disposehandle(), tyIACglobals::dontdisposenextparam, tyIACglobals::event, fl, h, IACglobals, IACnewverb(), IACpushbinaryparam(), IACsendverb(), nil, tyappletrecord::packcallback, and typeNull.

Referenced by savefrontwindow().

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

Definition at line 579 of file appletmain.c.

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

boolean selectvisit hdlappwindow  appwindow  ) 
 

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

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 setappwindow hdlappwindow  appwindow  ) 
 

Definition at line 602 of file appletmain.c.

References app, tyappletrecord::appdata, tyappletrecord::appwindow, nil, redostack, tyappletrecord::setglobalscallback, and undostack.

Referenced by closeappwindow(), handleactivate(), jugglervisit(), newappwindow(), nulleventvisit(), pagesetupvisit(), printappwindow(), resetappscrollbars(), resetdirtyscrollbarsvisit(), setapptarget(), setappwindowfrommacwindow(), setfrontglobals(), setfrontglobalsvisit(), settargetvisit(), systemidlevisit(), and updateappwindow().

static void setappwindowfrommacwindow WindowPtr  macwindow  )  [static]
 

Definition at line 2212 of file appletmain.c.

References getappwindow(), and setappwindow().

Referenced by adjustaftergrow().

Here is the call graph for this function:

void setappwindowmadechanges hdlappwindow  appwindow  ) 
 

Definition at line 540 of file appletmain.c.

References assert, and nil.

Referenced by adjustaftergrow().

void setappwindowtitle hdlappwindow  appwindow,
bigstring  bs
 

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

Definition at line 1138 of file appletmain.c.

References setappwindow().

Referenced by setfrontglobals().

Here is the call graph for this function:

void setselectionstyleinfo tyselectioninfo pselinfo,
boolean  flpack
 

Definition at line 223 of file appletmain.c.

References bitboolean, tyselectioninfo::flbold, 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  appwindow  ) 
 

Definition at line 573 of file appletmain.c.

Referenced by newappwindow(), and prepareandshowwindow().

void updateappwindow hdlappwindow  appwindow  ) 
 

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 tyvisitapproutine  visitproc  ) 
 

Definition at line 908 of file appletmain.c.

References getappwindow(), lastwindowvisited, and nil.

Here is the call graph for this function:

void zoomappwindow hdlappwindow  appwindow  ) 
 

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:


Variable Documentation

tyappletrecord app
 

Definition at line 40 of file appletmain.c.

Referenced by activate(), activateappscrollbars(), adjustaftergrow(), adjustmenus(), appcopycommand(), appdefaultresetscroll(), appdefaultscroll(), appdrawmessage(), apperaserect(), appidle(), appinitfontdefaults(), appinvalstatusseparator(), appleteventhandler(), appletinitmanagers(), apppopclip(), apppostcallback(), appprecallback(), apppushclip(), apprectneedsupdate(), appsetfont(), appsetfontsize(), appsetmessage(), appsetmessagerect(), appuseractive(), checkfontsizestyle(), checknilcallbacks(), clearcommand(), closeappwindow(), closewindowverb(), computewindowinfo(), copyprintinfo(), cutcommand(), disposeappwindow(), disposeprintinfo(), disposerecord(), editappwindow(), exitmainloop(), fontmenuchecker(), getbinaryverb(), getcontentsize(), getcurrentappfilespec(), getfilepathverb(), getfileverb(), getidletime(), getpagerectverb(), getpictverb(), gettargetverb(), gettextverb(), getundomenuitem(), getwindowposverb(), getwindowrectverb(), handleactivate(), handlecontent(), handlecustomverb(), handlediskinserted(), handlefastverb(), handlegrow(), handlejuggler(), handlekeystroke(), handlemenu(), handlemousedown(), handleopenapp(), haveselectionverb(), idle(), initappletwires(), initmenus(), initprint(), initwindowmenu(), installscroll(), invalforgrow(), jugglervisit(), justifymenuchecker(), killactions(), madechangesverb(), main(), movewindowverb(), newappwindow(), newrecord(), newuntitledappwindow(), normalsetfontcallback(), openappwindow(), openfilespec(), openfrontwindow(), opupdatenow(), pagesetup(), pagesetupvisit(), pastecommand(), popundoaction(), prepareandshowwindow(), printappwindow(), printfilespec(), printwindowverb(), pushundoaction(), putbinaryverb(), putpictverb(), puttextverb(), resetappscrollbars(), resizeappscrollbars(), revertfrontwindow(), saveappwindow(), saveasfrontwindow(), saveaswindow(), savefrontwindow(), saveiacdata(), scrollappwindow(), scrolltoappwindow(), selectallcommand(), setapptarget(), setappwindow(), setfrontglobals(), setglobals(), setscrollbars(), settargetverb(), setwindowtitleverb(), showappscrollbars(), sizemenuchecker(), stylemenuchecker(), swapundostacks(), systemidlevisit(), tryhandlefastverb(), tryhandleverb(), undolastaction(), unpackrecord(), updateappscrollbars(), updateappwindow(), validateeditedcard(), windowmessageverb(), windowresize(), zoomappwindow(), and zoomwindowverb().

EventRecord appletevent
 

Definition at line 84 of file appletmain.c.

Referenced by maineventloop(), and opnavigationkey().

THz appletheapzone [static]
 

Definition at line 62 of file appletmain.c.

Referenced by appletinitmanagers().

bigstring bsvisit
 

Definition at line 47 of file appletmain.c.

Referenced by findbytitlevisit(), findbywindowtitle(), selectvisit(), selectwindowbytitle(), setapptarget(), and settargetvisit().

boolean flappopenfileonidle
 

Definition at line 2886 of file appletmain.c.

boolean flcmdperiod = false
 

Definition at line 55 of file appletmain.c.

Referenced by appserviceeventqueue(), and handlekeystroke().

boolean flcurrentlyactive = true [static]
 

Definition at line 97 of file appletmain.c.

Referenced by appleteventhandler(), getwaitticks(), handlejuggler(), and jugglervisit().

boolean flexitmainloop = false
 

Definition at line 86 of file appletmain.c.

tyfilespec fsidleopen
 

Definition at line 2888 of file appletmain.c.

Referenced by appidle().

hdlappwindow lastwindowvisited
 

Definition at line 49 of file appletmain.c.

Referenced by findbyfile(), findbyrefcon(), findbywindowtitle(), findnthwindow(), and visitappwindows().

boolean managersinited = false [static]
 

Definition at line 3355 of file appletmain.c.

ptrfilespec pfsvisit
 

Definition at line 45 of file appletmain.c.

Referenced by findbyfile(), and findbyfilevisit().

AEDesc* prefconvisit
 

Definition at line 46 of file appletmain.c.

Referenced by findbyrefcon().

short x1
 

Definition at line 48 of file appletmain.c.

Referenced by countwindows(), countwindowsvisit(), evaluateforloop(), findnthvisit(), and findnthwindow().

short x2
 

Definition at line 48 of file appletmain.c.

Referenced by evaluateforloop(), findnthvisit(), and findnthwindow().


Generated on Wed May 31 21:19:27 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6