shellprivate.h File Reference

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

Go to the source code of this file.

Data Structures

struct  tyglobalsstack

Defines

#define shellprivateinclude
#define jugglerEvt   15
#define tickstoupdatemenus   20
#define tickstoidle   6
#define ctglobals   32
#define cteditors   12

Enumerations

enum  tymenustate { dirtymenus, normalmenus, optionmenus, modaldialogmenus }

Functions

boolean shellfindcallbacks (short, short *)
void shellpatchnilroutines (void)
void shellinithandlers (void)
void shellloadbuttonlists (void)
void shellclearwindowdata (void)
boolean shellautoopen (bigstring, short)
void killownedundo (WindowPtr)
void shellhandlejugglerevent (void)
void shelladjustmenus (void)
boolean shellgetgrowiconrect (hdlwindowinfo, Rect *)
void shelldrawgrowicon (hdlwindowinfo)
void shellerasegrowicon (hdlwindowinfo)
boolean isshellwindow (WindowPtr)
boolean frontshellwindow (WindowPtr *)
boolean shellsavewindowresource (WindowPtr, ptrfilespec, short)
boolean shellsavewindowposition (WindowPtr)
boolean loadwindowposition (ptrfilespec, short, tywindowposition *)
boolean shellsavefontresource (WindowPtr, ptrfilespec, short)
boolean shellsavedefaultfont (WindowPtr)
boolean loaddefaultfont (WindowPtr)
void getdefaultwindowrect (Rect *)
void shellresetwindowrects (hdlwindowinfo)
void windowresetrects (hdlwindowinfo)
boolean emptywindowlist (void)
short countwindowlist (void)
boolean indexwindowlist (short, hdlwindowinfo *)
short counttypedwindows (short)
boolean shellfirstchildwindow (hdlwindowinfo, hdlwindowinfo *)
void grayownedwindows (WindowPtr)
boolean defaultselectioninfo (hdlwindowinfo)
boolean newshellwindowinfo (WindowPtr w, hdlwindowinfo *hinfo)
void disposeshellwindowinfo (hdlwindowinfo hinfo)
boolean newshellwindow (WindowPtr *, hdlwindowinfo *, tywindowposition *)
boolean windowinit (WindowPtr)
boolean zoomfilewindow (WindowPtr)
boolean getwindowmessage (WindowPtr, bigstring)
boolean drawwindowmessage (WindowPtr)
boolean setwindowmessage (WindowPtr, bigstring)
boolean lockwindowmessage (WindowPtr, boolean)
void shellerasemessagearea (hdlwindowinfo)
boolean windowmadechanges (WindowPtr)
boolean windowgetcontentrect (WindowPtr, Rect *)
void disposeshellwindow (WindowPtr)
boolean shellhidewindow (hdlwindowinfo)
boolean shellunhidewindow (hdlwindowinfo)
void closewindowfile (WindowPtr)
boolean shellfrontrootwindowmessage (bigstring)
boolean shellrunwindowconfirmationscript (WindowPtr, short)
boolean shellpushtargetglobals (void)
boolean shellinitverbs (void)

Variables

tyshellglobals globalsarray [cteditors]
short topglobalsarray
tyglobalsstack globalsstack
boolean flexitmainloop
unsigned long timelastkeystroke


Define Documentation

#define cteditors   12
 

Definition at line 69 of file shellprivate.h.

Referenced by shellnewcallbacks().

#define ctglobals   32
 

Definition at line 44 of file shellprivate.h.

Referenced by shellpushglobals().

#define jugglerEvt   15
 

Definition at line 37 of file shellprivate.h.

#define shellprivateinclude
 

Definition at line 28 of file shellprivate.h.

#define tickstoidle   6
 

Definition at line 41 of file shellprivate.h.

Referenced by shellhandlenullevent().

#define tickstoupdatemenus   20
 

Definition at line 39 of file shellprivate.h.

Referenced by shellhandlenullevent().


Enumeration Type Documentation

enum tymenustate
 

Enumerator:
dirtymenus 
normalmenus 
optionmenus 
modaldialogmenus 

Definition at line 55 of file shellprivate.h.


Function Documentation

void closewindowfile WindowPtr   ) 
 

Definition at line 2964 of file shellwindow.c.

References closefile(), closeresourcefile(), deletefile(), flushvolumechanges(), getwindowinfo(), h, and windowgetfspec().

Referenced by shellclose(), shelldatabasesaveas(), and shellrevert().

Here is the call graph for this function:

short counttypedwindows short   ) 
 

Definition at line 1229 of file shellwindow.c.

References counttypedvisit(), and shellvisittypedwindows().

Referenced by shellpushmajortype(), and shellpushminortype().

Here is the call graph for this function:

short countwindowlist void   ) 
 

Definition at line 891 of file shellwindow.c.

References ct, hfirstwindow, tywindowinfo::nextwindow, and nil.

boolean defaultselectioninfo hdlwindowinfo   ) 
 

Definition at line 1641 of file shellwindow.c.

References clearbytes().

Referenced by newshellwindow(), and shelldefaultselectioninfo().

Here is the call graph for this function:

void disposeshellwindow WindowPtr   ) 
 

Definition at line 2796 of file shellwindow.c.

References disposeshellwindowinfo(), disposewindow(), getwindowinfo(), nil, setwindowrefcon(), and unlinkwindowlist().

Referenced by mezoomscriptwindow(), shellclose(), shellclosechildwindows(), shellclosewindow(), shelldatabasesaveas(), shellnewfile(), shellopenfile(), shellpopglobals(), and shellrevert().

Here is the call graph for this function:

void disposeshellwindowinfo hdlwindowinfo  hinfo  ) 
 

Definition at line 1606 of file shellwindow.c.

References disposehandle(), disposescrollbar(), disposeundostack(), h, nil, and unlinkwindowlist().

Referenced by disposeshellwindow(), newshellwindow(), and newshellwindowinfo().

Here is the call graph for this function:

boolean drawwindowmessage WindowPtr   ) 
 

Definition at line 2572 of file shellwindow.c.

References bigstring, centerstring, closebitmap(), config, eraserect(), tyconfigrecord::flmessagearea, framerect(), geneva, getwindowinfo(), getwindowmessage(), h, insetrect(), openbitmap(), popclip(), popport(), popstyle(), pushclip(), pushport(), pushstyle(), and r.

Referenced by shellactivatewindow(), shelldefaultmsgroutine(), shelldrawwindowmessage(), and shellupdatewindow().

Here is the call graph for this function:

boolean emptywindowlist void   ) 
 

Definition at line 885 of file shellwindow.c.

References hfirstwindow, and nil.

Referenced by shellsetglobals().

boolean frontshellwindow WindowPtr  ) 
 

Definition at line 273 of file shellwindow.c.

References getfrontwindow(), getnextwindow(), isshellwindow(), and nil.

Referenced by frontrootwindow(), getfrontwindowinfo(), pushwindowmenuvisit(), shellhandlemouse(), and shellpushfrontglobals().

Here is the call graph for this function:

void getdefaultwindowrect Rect  ) 
 

Definition at line 677 of file shellwindow.c.

References getfrontwindowinfo(), getglobalwindowrect(), h, issubrect(), offsetrect(), r, shellframewindow, shellgetglobalwindowrect(), and v.

Here is the call graph for this function:

boolean getwindowmessage WindowPtr  ,
bigstring 
 

Definition at line 2553 of file shellwindow.c.

References copyheapstring(), getwindowinfo(), nil, and setstringlength.

Referenced by drawwindowmessage().

Here is the call graph for this function:

void grayownedwindows WindowPtr   ) 
 

Definition at line 1463 of file shellwindow.c.

References graywindow(), graywindowvisit(), nil, and visitownedwindows().

Referenced by aboutsave(), and prepuserforwait().

Here is the call graph for this function:

boolean indexwindowlist short  ,
hdlwindowinfo
 

Definition at line 923 of file shellwindow.c.

References ct, hfirstwindow, i, tywindowinfo::nextwindow, and nil.

boolean isshellwindow WindowPtr   ) 
 

Definition at line 211 of file shellwindow.c.

References hfirstwindow, tywindowinfo::nextwindow, and nil.

Referenced by frontshellwindow(), handlewindoweventcommand(), shellactivatewindow(), shelladjustcursor(), shellclose(), shellhandlemouse(), shellhandleupdate(), shellnextwindow(), shellupdatewindowmenu(), shellvisitwindowlayer(), windoweditcommand(), and windowiscardcommand().

void killownedundo WindowPtr   ) 
 

Definition at line 381 of file shellfile.c.

References killundo(), killundovisit(), nil, and visitownedwindows().

Referenced by shellclose(), shellrevert(), and shellsavefile().

Here is the call graph for this function:

boolean loaddefaultfont WindowPtr   ) 
 

Definition at line 629 of file shellwindow.c.

References config, tyconfigrecord::defaultfont, tyconfigrecord::defaultsize, tyconfigrecord::defaultstyle, fontgetnumber(), tysavedfont::fontname, tysavedfont::fontsize, tysavedfont::fontstyle, getwindowinfo(), h, loadresource(), nil, resourcefork, and windowgetfspec().

Referenced by newfilewindow().

Here is the call graph for this function:

boolean loadwindowposition ptrfilespec  ,
short  ,
tywindowposition
 

Definition at line 623 of file shellwindow.c.

References loadresource(), nil, and resourcefork.

Referenced by newfilewindow().

Here is the call graph for this function:

boolean lockwindowmessage WindowPtr  ,
boolean 
 

Definition at line 2680 of file shellwindow.c.

References bitboolean, tywindowinfo::flmessagelocked, and getwindowinfo().

Here is the call graph for this function:

boolean newshellwindow WindowPtr ,
hdlwindowinfo ,
tywindowposition
 

Definition at line 1716 of file shellwindow.c.

References config, tywindowinfo::defaultfont, tyconfigrecord::defaultfont, defaultselectioninfo(), tyconfigrecord::defaultsize, tyconfigrecord::defaultstyle, disposeshellwindowinfo(), disposewindow(), error, tyconfigrecord::fldialog, tyconfigrecord::flhorizscroll, tyconfigrecord::flvertscroll, getcurrentprocessid(), getnewwindow(), getport(), newscrollbar(), newshellwindowinfo(), nil, setport(), shellglobals, and tyconfigrecord::templateresnum.

Referenced by newchildwindow(), and newfilewindow().

Here is the call graph for this function:

boolean newshellwindowinfo WindowPtr  w,
hdlwindowinfo hinfo
 

Definition at line 1670 of file shellwindow.c.

References disposeshellwindowinfo(), error, h, insertwindowlist(), newclearhandle(), newheapstring(), newundostack(), setwindowrefcon(), and zerostring.

Referenced by newshellwindow().

Here is the call graph for this function:

boolean setwindowmessage WindowPtr  ,
bigstring 
 

Definition at line 2634 of file shellwindow.c.

References bigstring, copyheapstring(), disposehandle(), equalstrings(), getwindowinfo(), newheapstring(), nil, and stringlength.

Referenced by postthreadsmessage(), and shellsetwindowmessage().

Here is the call graph for this function:

void shelladjustmenus void   ) 
 

Definition at line 1038 of file shellmenu.c.

References bigstring, ccfindrootwindow(), ccinexpertmode(), clearbytes(), clearitem, closeitem, commonstylesitem, copyitem, cutitem, editmenu, enableallmenuitems(), enablemenuitem(), filemenu, findandreplaceitem, tyselectioninfo::flcansetfont, tyselectioninfo::flcansetjust, tyselectioninfo::flcansetleading, tyselectioninfo::flcansetsize, tyselectioninfo::flcansetstyle, tywindowinfo::flmadechanges, fontitem, getcommonstylesmenuitemtext(), getfrontwindow(), getrootwindow(), idcancoonconfig, iddefaultconfig, idscriptprocessor, insertdatetimeitem, justifyitem, leadingitem, menudisablevisit(), menustate, modaldialogmenus, newitem, nil, NULL, openitem, openrecentitem, pagesetupitem, pasteitem, printitem, quititem, revertitem, saveasitem, savedatabaseitemstring, saveitem, saveitemstring, saverunnableitem, selectallitem, setemptystring, setmenuitem(), setmenuitemenable(), shellcheckfontsizestyle(), shellgetexternaldata(), shellmenuhandle(), shellsetmenuitemstring(), shellwindow, shellwindowinfo, shellwindowmenudirty(), sizeitem, styleitem, undoitem, and visitmenuitems().

Referenced by shellmodaldialogmenuadjust(), shellstart(), and shellupdatemenus().

Here is the call graph for this function:

boolean shellautoopen bigstring  ,
short 
 

void shellclearwindowdata void   ) 
 

Definition at line 884 of file shellcallbacks.c.

References nil.

Referenced by ccchildclose(), ccdisposefilerecord(), meunloadscript(), shellclose(), shelldatabasesaveas(), and shellrevert().

void shelldrawgrowicon hdlwindowinfo   ) 
 

Definition at line 123 of file shellwindow.c.

References eraserect(), framerect(), idaboutconfig, insetrect(), popclip(), popport(), pushclip(), pushport(), r, shellgetgrowiconrect(), and validrect().

Referenced by aboutupdate(), shellactivatewindow(), shellupdatewindow(), and zoomfilewindow().

Here is the call graph for this function:

void shellerasegrowicon hdlwindowinfo   ) 
 

Definition at line 187 of file shellwindow.c.

References eraserect(), r, and shellgetgrowiconrect().

Referenced by shelladjustaftergrow().

Here is the call graph for this function:

void shellerasemessagearea hdlwindowinfo   ) 
 

Definition at line 2693 of file shellwindow.c.

References smashrect().

Referenced by shelladjustaftergrow().

Here is the call graph for this function:

boolean shellfindcallbacks short  ,
short
 

Definition at line 78 of file shellcallbacks.c.

References globalsarray, i, and topglobalsarray.

Referenced by aboutsetconfigminimum(), ccwindowstart(), newaboutwindow(), newchildwindow(), shellgetconfig(), shellpushcancoonglobals(), shellpushconfigglobals(), shellsetconfig(), shellsetglobals(), and updateconfigsettings().

boolean shellfirstchildwindow hdlwindowinfo  ,
hdlwindowinfo
 

Definition at line 1423 of file shellwindow.c.

References hfirstwindow, tywindowinfo::nextwindow, and nil.

Referenced by shellclosechildwindows().

boolean shellfrontrootwindowmessage bigstring   ) 
 

Definition at line 3027 of file shellwindow.c.

References shellpopglobals(), shellpushfrontrootglobals(), and shellwindowmessage().

Referenced by postmemorymessage(), and processscheduler().

Here is the call graph for this function:

boolean shellgetgrowiconrect hdlwindowinfo  ,
Rect
 

Definition at line 110 of file shellwindow.c.

References config, and tyconfigrecord::flgrowable.

Referenced by shelldrawgrowicon(), and shellerasegrowicon().

void shellhandlejugglerevent void   ) 
 

Definition at line 109 of file shelljuggler.c.

References anyscraptype, cursorisdirty, fl, flshellactive, message, tyEventRecord::message, nil, resumeFlag, scriptrunresumescripts(), scriptrunsuspendscripts(), setcursortype(), shellactivatewindow(), shellevent, shellforcecursoradjust(), shelljugglervisit(), shellpopglobals(), shellpushfrontglobals(), shellvisittypedwindows(), shellwindow, shellwritescrap(), and suspendResumeMessage.

Referenced by shellhandleevent().

Here is the call graph for this function:

boolean shellhidewindow hdlwindowinfo   ) 
 

Definition at line 2848 of file shellwindow.c.

References hidewindow(), nil, and shellwindowmenudirty().

Referenced by ccwindowpreclose(), shellclosewindow(), shellwindowmenuselect(), and showhideverb().

Here is the call graph for this function:

void shellinithandlers void   ) 
 

Definition at line 450 of file shellcallbacks.c.

References config, globalsarray, i, tyshellglobals::initroutine, and topglobalsarray.

Referenced by shellstart().

boolean shellinitverbs void   ) 
 

Definition at line 1579 of file shellverbs.c.

References shellinitbuiltins(), and sysinitverbs().

Referenced by shellinit().

Here is the call graph for this function:

void shellloadbuttonlists void   ) 
 

Definition at line 467 of file shellcallbacks.c.

References config, globalsarray, i, idbuttonlistmissing, tyconfigrecord::idbuttonstringlist, oploadstringlist(), shellinternalerror, STR_failed_to_load_a_button_list, and topglobalsarray.

Referenced by shellstart().

Here is the call graph for this function:

void shellpatchnilroutines void   ) 
 

Definition at line 298 of file shellcallbacks.c.

References globalsarray, i, shellchecknilroutine(), shelldefaultadjustcursor(), shelldefaultbuttonstatusroutine(), shelldefaultfontroutine(), shelldefaultgettargetdata(), shelldefaultmsgroutine(), shelldefaultresetrectsroutine(), shelldefaultselectioninfo(), shelldefaultsetundostatus(), shelldefaultsizeroutine(), shelldefaultundo(), shellfalsedefault(), shelltruedefault(), shellzoomwindow(), and topglobalsarray.

Referenced by openabout(), and shellstart().

Here is the call graph for this function:

boolean shellpushtargetglobals void   ) 
 

Definition at line 595 of file shellverbs.c.

References langfindtargetwindow(), shellpushfrontrootglobals(), and shellpushglobals().

Referenced by editmenufunctionvalue(), filemenufunctionvalue(), searchfunctionvalue(), and windowfunctionvalue().

Here is the call graph for this function:

void shellresetwindowrects hdlwindowinfo   ) 
 

Definition at line 752 of file shellwindow.c.

References tyshellglobals::buttonlist, clearbytes(), config, tyconfigrecord::flgrowable, tyconfigrecord::flhorizscroll, tyconfigrecord::flinsetcontentrect, tyconfigrecord::flmessagearea, tyconfigrecord::flvertscroll, getscrollbarwidth(), h, insetrect(), tyconfigrecord::messageareafraction, nil, r, scrollbarflushbottom(), scrollbarflushright(), shellcalcgrowiconrect(), shellgetbuttonsrect(), and shellglobals.

Referenced by scriptresetrects(), and shelldefaultresetrectsroutine().

Here is the call graph for this function:

boolean shellrunwindowconfirmationscript WindowPtr  ,
short 
 

Definition at line 2034 of file shellwindow.c.

References bigstring, BIGSTRING, bsfalse, cancoonglobals, coercetostring(), disposevaluerecord(), equalstrings(), fl, flscriptrunning, getsystemtablescript(), langrunstringnoerror(), nil, parsedialogstring(), pullstringvalue(), and setwinvalue().

Referenced by ccverifywindowclose(), windowzoom(), and zoomfilewindow().

Here is the call graph for this function:

boolean shellsavedefaultfont WindowPtr   ) 
 

Referenced by shellsave().

boolean shellsavefontresource WindowPtr  ,
ptrfilespec  ,
short 
 

Definition at line 584 of file shellwindow.c.

References bigstring, fontgetname(), tysavedfont::fontname, tysavedfont::fontsize, tysavedfont::fontstyle, getwindowinfo(), h, nil, saveresource(), and stringlength.

Referenced by shelldatabasesaveas(), and shellsavedefaultfont().

Here is the call graph for this function:

boolean shellsavewindowposition WindowPtr   ) 
 

Definition at line 565 of file shellwindow.c.

References shellsavewindowresource(), windowgetfnum(), windowgetfspec(), and windowgetrnum().

Referenced by shellsave().

Here is the call graph for this function:

boolean shellsavewindowresource WindowPtr  ,
ptrfilespec  ,
short 
 

Definition at line 530 of file shellwindow.c.

References tywindowposition::configresnum, tywindowposition::flhidden, getglobalwindowrect(), getscrollbarinfo(), getwindowinfo(), h, tywindowposition::horizcurrent, tywindowposition::horizmax, tywindowposition::horizmin, nil, saveresource(), tywindowposition::vertcurrent, tywindowposition::vertmax, tywindowposition::vertmin, and tywindowposition::windowrect.

Referenced by shelldatabasesaveas(), and shellsavewindowposition().

Here is the call graph for this function:

boolean shellunhidewindow hdlwindowinfo   ) 
 

Definition at line 2876 of file shellwindow.c.

References nil, shellwindowmenudirty(), and showwindow().

Referenced by shellbringtofront(), and showhideverb().

Here is the call graph for this function:

boolean windowgetcontentrect WindowPtr  ,
Rect
 

Definition at line 2783 of file shellwindow.c.

References tywindowinfo::contentrect, and getwindowinfo().

Here is the call graph for this function:

boolean windowinit WindowPtr   ) 
 

Definition at line 2018 of file shellwindow.c.

References tyshellglobals::dataholder, tyshellglobals::newrecordroutine, shellglobals, shellpopglobals(), and shellpushglobals().

Here is the call graph for this function:

boolean windowmadechanges WindowPtr   ) 
 

Definition at line 2772 of file shellwindow.c.

References getwindowinfo().

Here is the call graph for this function:

void windowresetrects hdlwindowinfo   ) 
 

Definition at line 860 of file shellwindow.c.

References getlocalwindowrect(), h, tyshellglobals::resetrectsroutine, shellglobals, and zerorect().

Referenced by newchildwindow(), newfilewindow(), shelladjustaftergrow(), and tableresetformatsrects().

Here is the call graph for this function:

boolean zoomfilewindow WindowPtr   ) 
 

Definition at line 2130 of file shellwindow.c.

References tywindowinfo::flhidden, getnextwindow(), getwindowinfo(), idopenwindowscript, shelldrawgrowicon(), shellrunwindowconfirmationscript(), showscrollbar(), windowbringtofront(), and zoomfromorigin().

Referenced by shellnewfile(), and shellopenfile().

Here is the call graph for this function:


Variable Documentation

boolean flexitmainloop
 

Definition at line 86 of file appletmain.c.

Referenced by aboutcommand(), appserviceeventqueue(), exitmainloop(), and maineventloop().

tyshellglobals globalsarray[cteditors]
 

Definition at line 52 of file shellcallbacks.c.

Referenced by aboutsetconfigminimum(), ccwindowstart(), newaboutwindow(), newchildwindow(), shellfindcallbacks(), shellgetconfig(), shellinit(), shellinithandlers(), shellloadbuttonlists(), shellnewcallbacks(), shellpatchnilroutines(), shellpushcancoonglobals(), shellpushconfigglobals(), shellsetconfig(), shellsetglobals(), and updateconfigsettings().

tyglobalsstack globalsstack
 

Definition at line 57 of file shellcallbacks.c.

Referenced by copythreadglobals(), initprocessthread(), shellpopglobals(), shellpushglobals(), and swapinthreadglobals().

unsigned long timelastkeystroke
 

Definition at line 41 of file shellkb.c.

Referenced by shellbackgroundtask(), and shellhandlekeystroke().

short topglobalsarray
 

Definition at line 54 of file shellcallbacks.c.

Referenced by shellfindcallbacks(), shellinithandlers(), shellloadbuttonlists(), shellnewcallbacks(), and shellpatchnilroutines().


Generated on Tue Jun 13 04:44:43 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6