applet.h File Reference

#include "appletdefs.h"
#include "appletops.h"
#include "appletcursor.h"
#include "appletmouse.h"
#include "appletkb.h"
#include "appletmemory.h"
#include "appletfiles.h"
#include "appletquickdraw.h"
#include "appletstrings.h"
#include "appletfont.h"
#include "appletundo.h"
#include "appletfrontier.h"
#include "appletpalette.h"
#include "appletwires.h"
#include <iac.h>
#include "appletcard.h"
#include "appletscrollbar.h"

Include dependency graph for applet.h:

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

Go to the source code of this file.

Data Structures

struct  tyselectioninfo
struct  tyappwindow
struct  typrintinfo
struct  tyappletrecord

Defines

#define appletinclude
#define app1class   'app1'

Typedefs

typedef boolean(* tysystemidlecallback )(long)
typedef boolean(* tyappcallback )(void)
typedef tyappwindowptrappwindow
typedef tyappwindow ** hdlappwindow
typedef boolean(* tyapphandleptrcallback )(Handle *)
typedef boolean(* tyapphandlecallback )(Handle)
typedef void(* tyapprectcallback )(Rect)
typedef boolean(* tyappbooleancallback )(boolean)
typedef boolean(* tyappshortcallback )(short)
typedef boolean(* tyappsscrollcallback )(tydirection, boolean, short)
typedef boolean(* tymenucallback )(short, short)
typedef boolean(* tystringcallback )(bigstring)
typedef boolean(* tyfilespeccallback )(ptrfilespec)
typedef boolean(* tyappgetundoglobalscallback )(long *)
typedef boolean(* tyappsetundoglobalscallback )(long, boolean)
typedef tyappletrecordptrappletrecord
typedef tyappletrecord ** hdlappletrecord

Functions

void appgetdesktoprect (hdlappwindow, Rect *)
boolean apppushwindow (hdlappwindow)
boolean apppopwindow (void)
boolean apppushorigin (void)
boolean apppoporigin (void)
boolean appopenbitmap (Rect, hdlappwindow)
boolean appclosebitmap (hdlappwindow)
boolean apppushclip (Rect r)
boolean apppopclip (void)
void appprecallback (void)
void apppostcallback (void)
boolean newappwindow (bigstring, boolean)
void invalappwindow (hdlappwindow, boolean)
void updateappwindow (hdlappwindow)
void moveappwindow (hdlappwindow, Rect)
boolean findbywindowtitle (bigstring, hdlappwindow *)
boolean findnthwindow (short, hdlappwindow *)
short countwindows (void)
boolean appletinitmanagers (void)
void runapplet (void)
boolean exitmainloop (void)
boolean closefrontwindow (void)
boolean initprint (void)
boolean pagesetup (void)
boolean printappwindow (hdlappwindow, boolean)
boolean getprintinfo (void)
pascal Boolean appscriptcomplete (void)
boolean visitappwindows (boolean(*)())
boolean invalallwindows (void)
boolean eraseallwindows (void)
void setappwindow (hdlappwindow)
void apperaserect (Rect)
boolean apprectneedsupdate (Rect)
void appinvalstatusseparator (void)
void drawappgrowicon (hdlappwindow)
void setappwindowmadechanges (hdlappwindow)

Variables

EventRecord appletevent
tyappletrecord app


Define Documentation

#define app1class   'app1'
 

Definition at line 275 of file applet.h.

Referenced by initappletwires().

#define appletinclude
 

Definition at line 8 of file applet.h.


Typedef Documentation

typedef struct tyappletrecord ** hdlappletrecord
 

typedef struct tyappwindow ** hdlappwindow
 

typedef struct tyappletrecord * ptrappletrecord
 

typedef struct tyappwindow * ptrappwindow
 

typedef boolean(* tyappbooleancallback)(boolean)
 

Definition at line 283 of file applet.h.

typedef boolean(* tyappcallback)(void)
 

Definition at line 178 of file applet.h.

typedef boolean(* tyappgetundoglobalscallback)(long *)
 

Definition at line 295 of file applet.h.

typedef boolean(* tyapphandlecallback)(Handle)
 

Definition at line 279 of file applet.h.

typedef boolean(* tyapphandleptrcallback)(Handle *)
 

Definition at line 277 of file applet.h.

typedef void(* tyapprectcallback)(Rect)
 

Definition at line 281 of file applet.h.

typedef boolean(* tyappsetundoglobalscallback)(long, boolean)
 

Definition at line 297 of file applet.h.

typedef boolean(* tyappshortcallback)(short)
 

Definition at line 285 of file applet.h.

typedef boolean(* tyappsscrollcallback)(tydirection, boolean, short)
 

Definition at line 287 of file applet.h.

typedef boolean(* tyfilespeccallback)(ptrfilespec)
 

Definition at line 293 of file applet.h.

typedef boolean(* tymenucallback)(short, short)
 

Definition at line 289 of file applet.h.

typedef boolean(* tystringcallback)(bigstring)
 

Definition at line 291 of file applet.h.

typedef boolean(* tysystemidlecallback)(long)
 

Definition at line 176 of file applet.h.


Function Documentation

boolean appclosebitmap hdlappwindow   ) 
 

Definition at line 462 of file appletmain.c.

References closebitmap().

Here is the call graph for this function:

void apperaserect Rect   ) 
 

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  ,
Rect
 

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:

void appinvalstatusseparator void   ) 
 

Definition at line 638 of file appletmain.c.

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

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:

boolean appopenbitmap Rect  ,
hdlappwindow 
 

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

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

boolean apppushwindow hdlappwindow   ) 
 

Definition at line 345 of file appletmain.c.

References pushmacport().

Here is the call graph for this function:

boolean apprectneedsupdate Rect   ) 
 

Definition at line 630 of file appletmain.c.

References app, and tyappletrecord::appwindow.

Referenced by oprectneedsupdate(), and updateappwindow().

pascal Boolean appscriptcomplete void   ) 
 

Definition at line 1259 of file appletwires.c.

References alertdialog(), bigstring, copystring(), IACgetstringparam(), pushstring(), and resetdirtyscrollbars().

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:

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:

void drawappgrowicon hdlappwindow   ) 
 

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

Definition at line 1896 of file appletmain.c.

References eraseallwindowsvisit(), and visitappwindows().

Here is the call graph for this function:

boolean exitmainloop void   ) 
 

Definition at line 2098 of file appletmain.c.

Referenced by handlemenu(), handlequit(), and quitverb().

boolean findbywindowtitle bigstring  ,
hdlappwindow
 

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 findnthwindow short  ,
hdlappwindow
 

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

Definition at line 129 of file appletprinting.c.

References initprint().

Referenced by getpagerectverb().

Here is the call graph for this function:

boolean initprint void   ) 
 

Definition at line 79 of file appletprinting.c.

References app, checkprinterror(), clearbytes(), copyprintinfo(), disposeprintinfo(), error, flprintinit, h, longsizeof, newclearhandle(), typrintinfo::paperrect, typrintinfo::printhandle, and tyappletrecord::printinfo.

Referenced by getprintinfo(), main(), pagesetup(), and printappwindow().

Here is the call graph for this function:

boolean invalallwindows void   ) 
 

Definition at line 1882 of file appletmain.c.

References invalallwindowsvisit(), and visitappwindows().

Here is the call graph for this function:

void invalappwindow hdlappwindow  ,
boolean 
 

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:

void moveappwindow hdlappwindow  ,
Rect 
 

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

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, tyappwindow::filetype, tyappletrecord::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 pagesetup void   ) 
 

Definition at line 153 of file appletprinting.c.

References app, checkprinterror(), copyprintinfo(), initprint(), pagesetupvisit(), typrintinfo::printhandle, tyappletrecord::printinfo, and visitappwindows().

Referenced by handlemenu().

Here is the call graph for this function:

boolean printappwindow hdlappwindow  ,
boolean 
 

Definition at line 180 of file appletprinting.c.

References app, appserviceeventqueue(), tyappletrecord::appwindow, checkprinterror(), computewindowinfo(), copyprintinfo(), typrintinfo::ctpages, fl, i, initprint(), nil, noErr, tyappletrecord::openprintcallback, printcomputewindowinfo(), typrintinfo::printhandle, tyappletrecord::printinfo, tyappletrecord::printpagecallback, pushmacport(), setappwindow(), and watchcursor().

Referenced by handlemenu(), printfilespec(), and printwindowverb().

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:

void setappwindow hdlappwindow   ) 
 

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

void setappwindowmadechanges hdlappwindow   ) 
 

Definition at line 540 of file appletmain.c.

References assert, and nil.

Referenced by adjustaftergrow().

void updateappwindow hdlappwindow   ) 
 

Definition at line 653 of file appletmain.c.

Referenced by handleactivate(), handleupdate(), opupdatenow(), and zoomappwindow().

boolean visitappwindows boolean(*)()   ) 
 

Referenced by appleteventhandler(), appletmainvalidate(), appresetsystemidle(), appsystemidle(), checkcloseonidle(), closeallwindows(), countwindows(), eraseallwindows(), findbyfile(), findbyrefcon(), findbywindowtitle(), findnthwindow(), handlejuggler(), invalallwindows(), pagesetup(), resetdirtyscrollbars(), selectwindowbytitle(), setapptarget(), and setfrontglobals().


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


Generated on Wed May 31 18:47:27 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6