shellwindow.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "bitmaps.h"
#include "font.h"
#include "kb.h"
#include "launch.h"
#include "quickdraw.h"
#include "search.h"
#include "strings.h"
#include "frontierwindows.h"
#include "frontierconfig.h"
#include "scrollbar.h"
#include "zoom.h"
#include "file.h"
#include "resources.h"
#include "shell.h"
#include "shellbuttons.h"
#include "shellhooks.h"
#include "shellundo.h"
#include "shellprivate.h"
#include "lang.h"
#include "langinternal.h"
#include "tablestructure.h"
#include "cancoon.h"

Include dependency graph for shellwindow.c:

Go to the source code of this file.

Data Structures

struct  finddatainfo
struct  findfileinfo
struct  findtitleinfo
struct  findtargetinfo

Typedefs

typedef finddatainfo tyfinddatainfo
typedef findfileinfo tyfindfileinfo
typedef findtitleinfo tyfindtitleinfo
typedef findtargetinfo tyfindtargetinfo

Functions

void shellwindowinval (hdlwindowinfo hinfo)
void shellinvalcontent (hdlwindowinfo hinfo)
boolean shellrectneedsupdate (const Rect *r)
boolean shellgetgrowiconrect (hdlwindowinfo hinfo, Rect *r)
void shelldrawgrowicon (hdlwindowinfo hinfo)
void shellerasegrowicon (hdlwindowinfo hinfo)
boolean getwindowinfo (WindowPtr w, hdlwindowinfo *hinfo)
boolean isshellwindow (WindowPtr wptr)
boolean isfilewindow (WindowPtr w)
boolean frontshellwindow (WindowPtr *wptr)
boolean shellfindwindow (short id, WindowPtr *w, hdlwindowinfo *hinfo, Handle *hdata)
boolean getfrontwindowinfo (hdlwindowinfo *hinfo)
boolean shellgetglobalwindowrect (hdlwindowinfo hinfo, Rect *r)
boolean shellgetwindowrect (hdlwindowinfo hinfo, Rect *r)
boolean shellgetwindowcenter (hdlwindowinfo hinfo, Rect *rcenter)
hdlfilenum windowgetfnum (WindowPtr w)
void windowsetfnum (WindowPtr w, hdlfilenum fnum)
short windowgetrnum (WindowPtr w)
void windowsetrnum (WindowPtr w, short rnum)
short windowgetvnum (WindowPtr w)
boolean windowsetfspec (WindowPtr w, tyfilespec *fspec)
boolean windowgetfspec (WindowPtr w, tyfilespec *fspec)
boolean windowgetpath (WindowPtr w, bigstring bspath)
boolean shellsavewindowresource (WindowPtr wptr, ptrfilespec fspec, short rnum)
boolean shellsavewindowposition (WindowPtr wptr)
boolean shellsavefontresource (WindowPtr w, ptrfilespec fspec, short rnum)
boolean shellsavedefaultfont (register WindowPtr w)
boolean loadwindowposition (ptrfilespec fspec, short rnum, tywindowposition *wpos)
boolean loaddefaultfont (WindowPtr w)
void getdefaultwindowrect (Rect *rdefault)
void shellcalcgrowiconrect (Rect rwholewindow, hdlwindowinfo hinfo)
void shellresetwindowrects (hdlwindowinfo hinfo)
void windowresetrects (hdlwindowinfo hinfo)
boolean emptywindowlist (void)
short countwindowlist (void)
boolean indexwindowlist (short windownumber, hdlwindowinfo *hwindow)
boolean getrootwindow (WindowPtr w, hdlwindowinfo *hrootinfo)
boolean frontrootwindow (hdlwindowinfo *hrootinfo)
WindowPtr shellnextwindow (WindowPtr pwindow)
boolean shellvisitwindowlayer (shellwindowvisitcallback visit, ptrvoid refcon)
boolean visitownedwindows (WindowPtr w, short id, shellwindowvisitcallback visit, ptrvoid refcon)
boolean shellvisittypedwindows (short id, shellwindowvisitcallback visit, ptrvoid refcon)
static boolean counttypedvisit (WindowPtr w, ptrvoid refcon)
short counttypedwindows (short id)
static boolean shellfinddatavisit (WindowPtr w, ptrvoid refcon)
boolean shellfinddatawindow (Handle hdata, hdlwindowinfo *hinfo)
static boolean shellfindfilevisit (WindowPtr w, ptrvoid refcon)
WindowPtr shellfindfilewindow (ptrfilespec fs)
static boolean findpathvisit (WindowPtr w, ptrvoid refcon)
static boolean findtitlevisit (WindowPtr w, ptrvoid refcon)
boolean shellfindnamedwindow (const bigstring bsname, hdlwindowinfo *hinfo)
boolean shellfirstchildwindow (hdlwindowinfo hparent, hdlwindowinfo *hchild)
static boolean graywindowvisit (WindowPtr w, ptrvoid refcon)
void grayownedwindows (WindowPtr w)
static void insertwindowlist (hdlwindowinfo hwindow)
static void unlinkwindowlist (hdlwindowinfo hwindow)
static void enforceminimumsize (Rect *rwindow)
static void constrainwindowrect (WindowPtr w, Rect *rwindow)
void disposeshellwindowinfo (hdlwindowinfo hinfo)
boolean defaultselectioninfo (hdlwindowinfo hinfo)
boolean newshellwindowinfo (WindowPtr w, hdlwindowinfo *hinfo)
boolean newshellwindow (WindowPtr *wnew, hdlwindowinfo *hnew, tywindowposition *wpos)
boolean newfilewindow (ptrfilespec fspec, hdlfilenum fnum, short rnum, boolean flhidden, WindowPtr *wnew)
boolean newchildwindow (short idtype, hdlwindowinfo hparentinfo, Rect *rwindow, rectparam rzoom, bigstring bstitle, WindowPtr *wnew)
boolean windowinit (WindowPtr w)
boolean shellrunwindowconfirmationscript (WindowPtr pwindow, short idscript)
boolean windowzoom (WindowPtr w)
boolean zoomfilewindow (WindowPtr w)
void shelladjustaftergrow (WindowPtr wptr)
boolean shellmoveandsizewindow (hdlwindowinfo hinfo, Rect r)
boolean shellmovewindow (hdlwindowinfo hinfo, short h, short v)
boolean shellmovewindowhidden (hdlwindowinfo hinfo, short h, short v)
boolean shellsizewindow (hdlwindowinfo hinfo, short h, short v)
boolean shellsizewindowhidden (hdlwindowinfo hinfo, short h, short v)
boolean shellzoomwindow (hdlwindowinfo hinfo, boolean flzoomin)
boolean getwindowmessage (WindowPtr w, bigstring bs)
boolean drawwindowmessage (WindowPtr wptr)
boolean setwindowmessage (WindowPtr w, bigstring bs)
boolean shellsetwindowmessage (hdlwindowinfo hinfo, bigstring bs)
boolean shelldrawwindowmessage (hdlwindowinfo hinfo)
boolean lockwindowmessage (WindowPtr w, boolean fllocked)
void shellerasemessagearea (hdlwindowinfo hinfo)
boolean shellsetwindowchanges (hdlwindowinfo hinfo, boolean fldirty)
boolean windowsetchanges (WindowPtr w, boolean fldirty)
boolean windowmadechanges (WindowPtr w)
boolean windowgetcontentrect (WindowPtr w, Rect *rcontent)
void disposeshellwindow (WindowPtr wptr)
boolean shellhidewindow (hdlwindowinfo hinfo)
boolean shellunhidewindow (hdlwindowinfo hinfo)
boolean shellbringtofront (hdlwindowinfo hinfo)
boolean shellsetwindowtitle (hdlwindowinfo hinfo, bigstring bstitle)
void shellgetwindowtitle (hdlwindowinfo hinfo, bigstring bstitle)
void closewindowfile (WindowPtr wptr)
void shellwindowmessage (bigstring bs)
boolean shellfrontwindowmessage (bigstring bs)
boolean shellfrontrootwindowmessage (bigstring bs)
boolean shellgettargetdata (short id, WindowPtr w)
static boolean findtargetvisit (WindowPtr w, ptrvoid refcon)
boolean shellfindtargetwindow (short id, WindowPtr *targetwindow)
boolean shellgetexternaldata (hdlwindowinfo hinfo, void *hdata)
boolean shellgetdatabase (WindowPtr w, hdldatabaserecord *hdatabase)

Variables

static hdlwindowinfo hfirstwindow = nil


Typedef Documentation

typedef struct finddatainfo tyfinddatainfo
 

typedef struct findfileinfo tyfindfileinfo
 

typedef struct findtargetinfo tyfindtargetinfo
 

typedef struct findtitleinfo tyfindtitleinfo
 


Function Documentation

void closewindowfile WindowPtr  wptr  ) 
 

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:

static void constrainwindowrect WindowPtr  w,
Rect rwindow
[static]
 

Definition at line 1568 of file shellwindow.c.

References constraintodesktop(), constraintoscreenbounds(), enforceminimumsize(), r, and setrect().

Referenced by newchildwindow(), shellmoveandsizewindow(), shellmovewindow(), shellmovewindowhidden(), shellsizewindow(), and shellsizewindowhidden().

Here is the call graph for this function:

static boolean counttypedvisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 1220 of file shellwindow.c.

Referenced by counttypedwindows().

short counttypedwindows short  id  ) 
 

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

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

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

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

static void enforceminimumsize Rect rwindow  )  [static]
 

Definition at line 1549 of file shellwindow.c.

References config, max, r, and tyconfigrecord::rmin.

Referenced by constrainwindowrect(), and shellzoomwindow().

static boolean findpathvisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 1348 of file shellwindow.c.

References bigstring, equalidentifiers(), getwindowinfo(), and windowgetpath().

Referenced by shellfindnamedwindow().

Here is the call graph for this function:

static boolean findtargetvisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 3066 of file shellwindow.c.

References shellgettargetdata(), and windowvisible().

Referenced by shellfindtargetwindow().

Here is the call graph for this function:

static boolean findtitlevisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 1364 of file shellwindow.c.

References bigstring, equalidentifiers(), getwindowinfo(), and shellgetwindowtitle().

Referenced by shellfindnamedwindow().

Here is the call graph for this function:

boolean frontrootwindow hdlwindowinfo hrootinfo  ) 
 

Definition at line 1067 of file shellwindow.c.

References frontshellwindow(), getrootwindow(), hfirstwindow, and nil.

Referenced by browserfindwindow(), pushwindowmenuvisit(), shellcloseall(), and shellgetfrontrootinfo().

Here is the call graph for this function:

boolean frontshellwindow WindowPtr wptr  ) 
 

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

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 getfrontwindowinfo hdlwindowinfo hinfo  ) 
 

Definition at line 345 of file shellwindow.c.

References frontshellwindow(), and getwindowinfo().

Referenced by getdefaultwindowrect(), newchildwindow(), shellwindowmenuselect(), and tablefindvisit().

Here is the call graph for this function:

boolean getrootwindow WindowPtr  w,
hdlwindowinfo hrootinfo
 

Definition at line 1041 of file shellwindow.c.

References getwindowinfo(), nil, and tywindowinfo::parentwindow.

Referenced by frontrootwindow(), fullpathsearch(), shelladjustmenus(), shellcloseall(), shellgetfrontrootinfo(), shellpushrootglobals(), tablesurface(), and visitownedwindows().

Here is the call graph for this function:

boolean getwindowinfo WindowPtr  w,
hdlwindowinfo hinfo
 

Definition at line 196 of file shellwindow.c.

References getwindowrefcon(), h, and nil.

Referenced by browserfindvisit(), browsernewwindow(), ccfindrootwindow(), ccwindowgetdatabase(), closewindowfile(), disposeshellwindow(), drawwindowmessage(), finddialogvisit(), findfilevisit(), findpathvisit(), findrootvisit(), findtitlevisit(), GetFrontierWindowInfo(), getfrontwindowinfo(), getrootwindow(), getwindowmessage(), isfilewindow(), langdialognewwindow(), langerrornewwindow(), loaddefaultfont(), lockwindowmessage(), menuedit(), minifindvisit(), mininewwindow(), newaboutwindow(), opedit(), pictedit(), pushwindowmenuvisit(), scriptsetdata(), setwindowmessage(), shelladjustaftergrow(), shellclose(), shellcloseall(), shellclosefilewindowvisit(), shellclosewindow(), shelldatabasesaveas(), shellfinddatavisit(), shellpopglobals(), shellpushglobals(), shellpushparentglobals(), shellsavefontresource(), shellsavewindowresource(), shellsetglobals(), shellupdatewindow(), statsnewwindow(), tableedit(), tablefindrootwindow(), visitownedwindows(), windowgetcontentrect(), windowgetfnum(), windowgetfspec(), windowgetrnum(), windowgetvnum(), windowmadechanges(), windowsetchanges(), windowsetfnum(), windowsetfspec(), windowsetrnum(), windowzoom(), wpedit(), and zoomfilewindow().

Here is the call graph for this function:

boolean getwindowmessage WindowPtr  w,
bigstring  bs
 

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

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:

static boolean graywindowvisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 1454 of file shellwindow.c.

References graywindow().

Referenced by grayownedwindows().

Here is the call graph for this function:

boolean indexwindowlist short  windownumber,
hdlwindowinfo hwindow
 

Definition at line 923 of file shellwindow.c.

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

static void insertwindowlist hdlwindowinfo  hwindow  )  [static]
 

Definition at line 1471 of file shellwindow.c.

References hfirstwindow, tywindowinfo::nextwindow, nil, tywindowinfo::prevwindow, and shellwindowmenudirty().

Referenced by newshellwindowinfo().

Here is the call graph for this function:

boolean isfilewindow WindowPtr  w  ) 
 

Definition at line 257 of file shellwindow.c.

References getwindowinfo(), and nil.

Referenced by langexternalregisterwindow(), langexternalunregisterwindow(), opverbclose(), tablesurface(), and wpclose().

Here is the call graph for this function:

boolean isshellwindow WindowPtr  wptr  ) 
 

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

boolean loaddefaultfont WindowPtr  w  ) 
 

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  fspec,
short  rnum,
tywindowposition wpos
 

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

Definition at line 2680 of file shellwindow.c.

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

Here is the call graph for this function:

boolean newchildwindow short  idtype,
hdlwindowinfo  hparentinfo,
Rect rwindow,
rectparam  rzoom,
bigstring  bstitle,
WindowPtr wnew
 

Definition at line 1872 of file shellwindow.c.

References clearbytes(), tyshellglobals::config, config, tywindowinfo::configresnum, constrainwindowrect(), copystring(), tyconfigrecord::defaultfont, tyconfigrecord::defaultsize, tyconfigrecord::defaultstyle, tyconfigrecord::defaultwindowrect, doctitlebarheight, fl, fsname, getfrontwindowinfo(), getglobalwindowrect(), globalsarray, tyshellglobals::infoholder, newshellwindow(), nil, offsetrect(), popport(), pushport(), setfontsizestyle(), setscrollbarinfo(), shellfindcallbacks(), shellglobals, shellsetwindowtitle(), and windowresetrects().

Here is the call graph for this function:

boolean newfilewindow ptrfilespec  fspec,
hdlfilenum  fnum,
short  rnum,
boolean  flhidden,
WindowPtr wnew
 

Definition at line 1784 of file shellwindow.c.

References bigstring, clearbytes(), config, tywindowposition::configresnum, tywindowposition::ctopens, tyconfigrecord::defaultwindowrect, tywindowposition::flhidden, getfsfile(), tywindowposition::horizcurrent, tywindowposition::horizmax, tywindowposition::horizmin, iddefaultconfig, tyshellglobals::infoholder, loaddefaultfont(), loadwindowposition(), newshellwindow(), nil, popport(), pushport(), setscrollbarinfo(), shellglobals, shellsetwindowtitle(), tywindowposition::vertcurrent, tywindowposition::vertmax, tywindowposition::vertmin, and windowresetrects().

Referenced by shellnewfile(), and shellopenfile().

Here is the call graph for this function:

boolean newshellwindow WindowPtr wnew,
hdlwindowinfo hnew,
tywindowposition wpos
 

Definition at line 1716 of file shellwindow.c.

References config, tyconfigrecord::defaultfont, tywindowinfo::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  w,
bigstring  bs
 

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 shelladjustaftergrow WindowPtr  wptr  ) 
 

Definition at line 2172 of file shellwindow.c.

References config, tyconfigrecord::fleraseonresize, getwindowinfo(), h, NULL, tywindowinfo::oldcontentrect, r, tyshellglobals::resizeroutine, tyshellglobals::setscrollbarroutine, shellerasegrowicon(), shellerasemessagearea(), shellgetwindowrect(), shellglobals, shellupdatenow(), smashrect(), and windowresetrects().

Referenced by aboutresizeafterfontchange(), aboutzoom(), FrontierOPWndProc(), opedit(), openverb(), shellmoveandsizewindow(), shellsizewindow(), shellsizewindowhidden(), shellzoomwindow(), tableverbsetfont(), and tableverbsetsize().

Here is the call graph for this function:

boolean shellbringtofront hdlwindowinfo  hinfo  ) 
 

Definition at line 2904 of file shellwindow.c.

References activateapplicationwindow(), fl, iscurrentapplication(), shellunhidewindow(), and windowbringtofront().

Referenced by aboutcommand(), bringtofrontverb(), findfilevisit(), langerrorset(), langrunmodeless(), mecontinuesearch(), menuedit(), opedit(), pictedit(), scriptkeystroke(), scripttitleclick(), shellcloseall(), shellclosefilewindowvisit(), shellrevert(), shellwindowmenuselect(), startminidialog(), systemscripterrorroutine(), tableedit(), tablesurface(), tablesymbolzoomvisit(), tabletitlepopupselect(), and wpedit().

Here is the call graph for this function:

void shellcalcgrowiconrect Rect  rwholewindow,
hdlwindowinfo  hinfo
 

Definition at line 735 of file shellwindow.c.

References getscrollbarwidth(), offsetrect(), and r.

Referenced by aboutresetrects(), browserresetrects(), meresetwindowrects(), shellresetwindowrects(), tablesetextrainfo(), and tableverbresetrects().

Here is the call graph for this function:

void shelldrawgrowicon hdlwindowinfo  hinfo  ) 
 

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:

boolean shelldrawwindowmessage hdlwindowinfo  hinfo  ) 
 

Definition at line 2674 of file shellwindow.c.

References drawwindowmessage().

Referenced by meupdate(), and tableupdate().

Here is the call graph for this function:

void shellerasegrowicon hdlwindowinfo  hinfo  ) 
 

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

Definition at line 2693 of file shellwindow.c.

References smashrect().

Referenced by shelladjustaftergrow().

Here is the call graph for this function:

static boolean shellfinddatavisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 1247 of file shellwindow.c.

References getwindowinfo().

Referenced by shellfinddatawindow().

Here is the call graph for this function:

boolean shellfinddatawindow Handle  hdata,
hdlwindowinfo hinfo
 

Definition at line 1266 of file shellwindow.c.

References finddatainfo::hdata, finddatainfo::hinfo, nil, shellfinddatavisit(), and shellvisittypedwindows().

Referenced by addmenucommandverb(), deletemenucommandverb(), initializetableoutline(), menuedit(), menuwindowopen(), mezoommenubarwindow(), opedit(), openverb(), opverbcheckwindowrect(), opverblinkcode(), opwindowopen(), opxmlensureopenwindow(), opxmlsetwindowatts(), opxmltooutline(), pictedit(), pictverbcheckwindowrect(), pictwindowopen(), scriptdebugger(), scriptgetlevelname(), scriptpushsourcecode(), systemscripterrorroutine(), tablewindowopen(), wpedit(), wpverbcheckwindowrect(), and wpwindowopen().

Here is the call graph for this function:

static boolean shellfindfilevisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 1299 of file shellwindow.c.

References equalfilespecs(), and windowgetfspec().

Referenced by shellfindfilewindow().

Here is the call graph for this function:

WindowPtr shellfindfilewindow ptrfilespec  fs  ) 
 

Definition at line 1322 of file shellwindow.c.

References findfileinfo::fsfind, idcancoonconfig, nil, shellfindfilevisit(), shellvisittypedwindows(), and findfileinfo::wfound.

Referenced by dbopenverb(), getipcaddressvalue(), and langipchandleverb().

Here is the call graph for this function:

boolean shellfindnamedwindow const bigstring  bsname,
hdlwindowinfo hinfo
 

Definition at line 1385 of file shellwindow.c.

References findpathvisit(), findtitlevisit(), findtitleinfo::hinfo, nil, findtitleinfo::pwindowtitle, and shellvisittypedwindows().

Referenced by getwinparam(), and stringtoaddress().

Here is the call graph for this function:

boolean shellfindtargetwindow short  id,
WindowPtr targetwindow
 

Definition at line 3084 of file shellwindow.c.

References findtargetvisit(), shellvisitwindowlayer(), findtargetinfo::targetdataid, and findtargetinfo::targetwindow.

Referenced by frontmostverb(), isfrontverb(), and langfindtargetwindow().

Here is the call graph for this function:

boolean shellfindwindow short  id,
WindowPtr w,
hdlwindowinfo hinfo,
Handle hdata
 

Definition at line 307 of file shellwindow.c.

References h, hfirstwindow, tywindowinfo::macwindow, and nil.

Referenced by ccfunctionvalue(), findaboutwindow(), langerrorfindwindow(), shellgetfrontrootinfo(), shellhandlemenu(), and statsfindwindow().

boolean shellfirstchildwindow hdlwindowinfo  hparent,
hdlwindowinfo hchild
 

Definition at line 1423 of file shellwindow.c.

References hfirstwindow, tywindowinfo::nextwindow, and nil.

Referenced by shellclosechildwindows().

boolean shellfrontrootwindowmessage bigstring  bs  ) 
 

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

Definition at line 3010 of file shellwindow.c.

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

Referenced by windowfunctionvalue().

Here is the call graph for this function:

boolean shellgetdatabase WindowPtr  w,
hdldatabaserecord hdatabase
 

Definition at line 3123 of file shellwindow.c.

References fl, tyshellglobals::getdatabaseroutine, nil, opsetoutline(), outlinedata, shellglobals, shellpopglobals(), and shellpushrootglobals().

Referenced by browsergetparentspec(), initializetableoutline(), and windowfunctionvalue().

Here is the call graph for this function:

boolean shellgetexternaldata hdlwindowinfo  hinfo,
void *  hdata
 

Definition at line 3107 of file shellwindow.c.

References fl, tyshellglobals::getvariableroutine, nil, shellglobals, shellpopglobals(), and shellpushglobals().

Referenced by closevalue(), langpackwindowverb(), shelladjustmenus(), and systemscripterrorroutine().

Here is the call graph for this function:

boolean shellgetglobalwindowrect hdlwindowinfo  hinfo,
Rect r
 

Definition at line 360 of file shellwindow.c.

References getglobalwindowrect().

Referenced by aboutresizeafterfontchange(), aboutzoom(), cccopywindowinfo(), getboundsverb(), getdefaultwindowrect(), menucheckwindowrect(), opverbcheckwindowrect(), opxmlbuildhead(), pictverbcheckwindowrect(), shellgetwindowcenter(), shellmovewindow(), shellmovewindowhidden(), shellsizewindow(), shellsizewindowhidden(), and wpverbcheckwindowrect().

Here is the call graph for this function:

boolean shellgetgrowiconrect hdlwindowinfo  hinfo,
Rect r
 

Definition at line 110 of file shellwindow.c.

References config, and tyconfigrecord::flgrowable.

Referenced by shelldrawgrowicon(), and shellerasegrowicon().

boolean shellgettargetdata short  id,
WindowPtr  w
 

Definition at line 3044 of file shellwindow.c.

References fl, tyshellglobals::gettargetdataroutine, shellglobals, shellpopglobals(), and shellpushglobals().

Referenced by findtargetvisit(), and langfindtargetwindow().

Here is the call graph for this function:

boolean shellgetwindowcenter hdlwindowinfo  hinfo,
Rect rcenter
 

Definition at line 395 of file shellwindow.c.

References centerrect(), r, shellgetglobalwindowrect(), and zerorect().

Referenced by langerrornewwindow(), and statsnewwindow().

Here is the call graph for this function:

boolean shellgetwindowrect hdlwindowinfo  hinfo,
Rect r
 

Definition at line 366 of file shellwindow.c.

References nil.

Referenced by frame3sides(), shelladjustaftergrow(), and shellgetbuttonsrect().

void shellgetwindowtitle hdlwindowinfo  hinfo,
bigstring  bstitle
 

Definition at line 2946 of file shellwindow.c.

References copyheapstring(), nil, and setemptystring.

Referenced by ccsavespecialfile(), findtitlevisit(), gettitleverb(), opxmlbuildhead(), pushwindowmenuvisit(), scriptgetlevelname(), setwinvalue(), shellclose(), shellrevert(), shellsetwindowchanges(), and shellzoomwindow().

Here is the call graph for this function:

boolean shellhidewindow hdlwindowinfo  hinfo  ) 
 

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 shellinvalcontent hdlwindowinfo  hinfo  ) 
 

Definition at line 76 of file shellwindow.c.

References popport(), pushport(), and smashrect().

Referenced by aboutzoom(), pictresetpicture(), and wppagesetup().

Here is the call graph for this function:

boolean shellmoveandsizewindow hdlwindowinfo  hinfo,
Rect  r
 

Definition at line 2216 of file shellwindow.c.

References constrainwindowrect(), moveandsizewindow(), shelladjustaftergrow(), shellpopglobals(), and shellpushglobals().

Referenced by ccwindowsetuptableview(), and shellzoomwindow().

Here is the call graph for this function:

boolean shellmovewindow hdlwindowinfo  hinfo,
short  h,
short  v
 

Definition at line 2234 of file shellwindow.c.

References constrainwindowrect(), movewindow(), offsetrect(), r, shellgetglobalwindowrect(), shellpopglobals(), and shellpushglobals().

Referenced by setboundsverb().

Here is the call graph for this function:

boolean shellmovewindowhidden hdlwindowinfo  hinfo,
short  h,
short  v
 

Definition at line 2255 of file shellwindow.c.

References constrainwindowrect(), movewindowhidden(), offsetrect(), r, shellgetglobalwindowrect(), shellpopglobals(), and shellpushglobals().

Referenced by opxmlsetwindowpositionandsize().

Here is the call graph for this function:

WindowPtr shellnextwindow WindowPtr  pwindow  ) 
 

Definition at line 1093 of file shellwindow.c.

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

Referenced by langdialogsearch(), nextverb(), and shellvisitwindowlayer().

Here is the call graph for this function:

boolean shellrectneedsupdate const Rect r  ) 
 

Definition at line 95 of file shellwindow.c.

References nil, rectinregion(), and rgn.

Referenced by oprectneedsupdate(), shellupdatewindow(), tableupdatecoltitles(), and tableupdategridlines().

Here is the call graph for this function:

void shellresetwindowrects hdlwindowinfo  hinfo  ) 
 

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  pwindow,
short  idscript
 

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 register WindowPtr  w  ) 
 

Definition at line 608 of file shellwindow.c.

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

Here is the call graph for this function:

boolean shellsavefontresource WindowPtr  w,
ptrfilespec  fspec,
short  rnum
 

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

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  wptr,
ptrfilespec  fspec,
short  rnum
 

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 shellsetwindowchanges hdlwindowinfo  hinfo,
boolean  fldirty
 

Definition at line 2699 of file shellwindow.c.

References bigstring, bitboolean, fl, nil, tywindowinfo::parentwindow, pushstring(), shellgetwindowtitle(), shellsetwindowchanges(), shellwindowmenudirty(), and windowsettitle().

Referenced by langexternalsetdirty(), menuedit(), menuverbpack(), mesmashscriptwindow(), opedit(), opverbpack(), pictedit(), pictverbpack(), setdirtyverb(), shellsetwindowchanges(), tabledrivesymbolchange(), tableedit(), tablesymbolchangedwindowvisit(), tableverbpack(), windowsetchanges(), wpedit(), and wpverbpack().

Here is the call graph for this function:

boolean shellsetwindowmessage hdlwindowinfo  hinfo,
bigstring  bs
 

Definition at line 2668 of file shellwindow.c.

References setwindowmessage().

Referenced by shelldefaultmsgroutine().

Here is the call graph for this function:

boolean shellsetwindowtitle hdlwindowinfo  hinfo,
bigstring  bstitle
 

Definition at line 2929 of file shellwindow.c.

References pushstring(), setheapstring(), shellwindowmenudirty(), and windowsettitle().

Referenced by newchildwindow(), newfilewindow(), opxmlsetwindowtitle(), scriptsetdata(), settitleverb(), tableupdatewindowtitles(), and windowsetfspec().

Here is the call graph for this function:

boolean shellsizewindow hdlwindowinfo  hinfo,
short  h,
short  v
 

Definition at line 2276 of file shellwindow.c.

References config, constrainwindowrect(), fl, tyconfigrecord::flgrowable, infinity, min, r, shelladjustaftergrow(), shellgetglobalwindowrect(), shellpopglobals(), shellpushglobals(), and sizewindow().

Referenced by setboundsverb().

Here is the call graph for this function:

boolean shellsizewindowhidden hdlwindowinfo  hinfo,
short  h,
short  v
 

Definition at line 2313 of file shellwindow.c.

References config, constrainwindowrect(), fl, tyconfigrecord::flgrowable, infinity, min, r, shelladjustaftergrow(), shellgetglobalwindowrect(), shellpopglobals(), shellpushglobals(), and sizewindowhidden().

Referenced by opxmlsetwindowpositionandsize().

Here is the call graph for this function:

boolean shellunhidewindow hdlwindowinfo  hinfo  ) 
 

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 shellvisittypedwindows short  id,
shellwindowvisitcallback  visit,
ptrvoid  refcon
 

Definition at line 1186 of file shellwindow.c.

References hfirstwindow, tywindowinfo::nextwindow, and nil.

Referenced by ccfindrootwindow(), counttypedwindows(), langdialogfindwindow(), mescripterrorroutine(), scriptinvalbuttons(), shellcloseall(), shellfinddatawindow(), shellfindfilewindow(), shellfindnamedwindow(), shellhandlejugglerevent(), shellopenfile(), shellpagesetup(), shellpushmajortype(), shellpushminortype(), shellupdateallnow(), tabledrivesymbolchange(), and tablefindrootwindow().

boolean shellvisitwindowlayer shellwindowvisitcallback  visit,
ptrvoid  refcon
 

Definition at line 1117 of file shellwindow.c.

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

Referenced by minisearch(), and shellfindtargetwindow().

Here is the call graph for this function:

void shellwindowinval hdlwindowinfo  hinfo  ) 
 

Definition at line 70 of file shellwindow.c.

References windowinval().

Referenced by claysetlinelayout(), opsettypeverb(), and updateverb().

Here is the call graph for this function:

void shellwindowmessage bigstring  bs  ) 
 

Definition at line 3003 of file shellwindow.c.

References tyshellglobals::msgroutine, and shellglobals.

Referenced by minisetwindowmessage(), scriptwindowmessage(), shellfrontrootwindowmessage(), and shellfrontwindowmessage().

boolean shellzoomwindow hdlwindowinfo  hinfo,
boolean  flzoomin
 

Definition at line 2350 of file shellwindow.c.

References bigstring, config, constraintoscreenbounds(), enforceminimumsize(), equalrects(), eraserect(), tyconfigrecord::flgrowable, tykeystrokerecord::floptionkey, tyshellglobals::getcontentsizeroutine, getglobalwindowrect(), h, infinity, insetrect(), keyboardstatus, left, max, min, normal, popstyle(), pushstyle(), tyshellglobals::scrollroutine, shelladjustaftergrow(), shellgetwindowtitle(), shellglobals, shellmoveandsizewindow(), shellpopglobals(), shellpushglobals(), shellwindowinfo, stringpixels(), systemFont, and up.

Referenced by ccwindowsetuptableview(), and shellpatchnilroutines().

Here is the call graph for this function:

static void unlinkwindowlist hdlwindowinfo  hwindow  )  [static]
 

Definition at line 1509 of file shellwindow.c.

References hfirstwindow, tywindowinfo::nextwindow, nil, tywindowinfo::prevwindow, and shellwindowmenudirty().

Referenced by disposeshellwindow(), and disposeshellwindowinfo().

Here is the call graph for this function:

boolean visitownedwindows WindowPtr  w,
short  id,
shellwindowvisitcallback  visit,
ptrvoid  refcon
 

Definition at line 1144 of file shellwindow.c.

References getrootwindow(), getwindowinfo(), hfirstwindow, and tywindowinfo::nextwindow.

Referenced by browserfindwindow(), grayownedwindows(), killownedundo(), and minifindwindow().

Here is the call graph for this function:

boolean windowgetcontentrect WindowPtr  w,
Rect rcontent
 

Definition at line 2783 of file shellwindow.c.

References tywindowinfo::contentrect, and getwindowinfo().

Here is the call graph for this function:

hdlfilenum windowgetfnum WindowPtr  w  ) 
 

Definition at line 409 of file shellwindow.c.

References getwindowinfo().

Referenced by ccnewrecord(), shellnormalsaveas(), shellrevert(), shellsave(), shellsavedefaultfont(), and shellsavewindowposition().

Here is the call graph for this function:

boolean windowgetfspec WindowPtr  w,
tyfilespec fspec
 

Definition at line 488 of file shellwindow.c.

References clearbytes(), fileexists(), getfsvolume(), and getwindowinfo().

Referenced by browsernewwindow(), closewindowfile(), findfilevisit(), frontierfunctionvalue(), getfileverb(), langexternalregisterwindow(), langexternalunregisterwindow(), loaddefaultfont(), shellfindfilevisit(), shellnormalsaveas(), shellsave(), shellsaveas(), shellsavedefaultfont(), shellsavewindowposition(), and windowgetpath().

Here is the call graph for this function:

boolean windowgetpath WindowPtr  w,
bigstring  bspath
 

Definition at line 513 of file shellwindow.c.

References filespectopath(), and windowgetfspec().

Referenced by ccsavespecialfile(), findpathvisit(), langexternalregisterwindow(), langexternalunregisterwindow(), and setwinvalue().

Here is the call graph for this function:

short windowgetrnum WindowPtr  w  ) 
 

Definition at line 431 of file shellwindow.c.

References getwindowinfo().

Referenced by shellnormalsaveas(), shellrevert(), shellsave(), shellsavedefaultfont(), and shellsavewindowposition().

Here is the call graph for this function:

short windowgetvnum WindowPtr  w  ) 
 

Definition at line 453 of file shellwindow.c.

References getwindowinfo().

Here is the call graph for this function:

boolean windowinit WindowPtr  w  ) 
 

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

Definition at line 2772 of file shellwindow.c.

References getwindowinfo().

Here is the call graph for this function:

void windowresetrects hdlwindowinfo  hinfo  ) 
 

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 windowsetchanges WindowPtr  w,
boolean  fldirty
 

Definition at line 2746 of file shellwindow.c.

References bitboolean, fl, getwindowinfo(), shellcalldirtyhooks(), and shellsetwindowchanges().

Referenced by cccopywindowinfo(), ccupdatewindowinfo(), mesavescriptvisit(), minidirty(), opdirtyoutline(), pictresetpicture(), pictsetevaluate(), shelldatabasesaveas(), shellnormalsaveas(), shellrevert(), shellsave(), tabledirty(), and wpdirty().

Here is the call graph for this function:

void windowsetfnum WindowPtr  w,
hdlfilenum  fnum
 

Definition at line 420 of file shellwindow.c.

References getwindowinfo().

Referenced by shelldatabasesaveas(), and shellnormalsaveas().

Here is the call graph for this function:

boolean windowsetfspec WindowPtr  w,
tyfilespec fspec
 

Definition at line 470 of file shellwindow.c.

References bigstring, getfsfile(), getwindowinfo(), and shellsetwindowtitle().

Referenced by ccsavespecialfile(), shelldatabasesaveas(), and shellnormalsaveas().

Here is the call graph for this function:

void windowsetrnum WindowPtr  w,
short  rnum
 

Definition at line 442 of file shellwindow.c.

References getwindowinfo().

Referenced by shelldatabasesaveas(), and shellnormalsaveas().

Here is the call graph for this function:

boolean windowzoom WindowPtr  w  ) 
 

Definition at line 2087 of file shellwindow.c.

References tysearchparameters::flwindowzoomed, getwindowinfo(), h, idopenwindowscript, searchparams, shellrunwindowconfirmationscript(), showscrollbar(), and zoomwindowfromcenter().

Referenced by browsernewwindow(), langerrornewwindow(), langrunmodeless(), menuedit(), mezoomscriptwindow(), mininewwindow(), newaboutwindow(), opedit(), pictedit(), statsnewwindow(), tableedit(), and wpedit().

Here is the call graph for this function:

boolean zoomfilewindow WindowPtr  w  ) 
 

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

hdlwindowinfo hfirstwindow = nil [static]
 

Definition at line 66 of file shellwindow.c.

Referenced by countwindowlist(), emptywindowlist(), frontrootwindow(), indexwindowlist(), insertwindowlist(), isshellwindow(), shellfindwindow(), shellfirstchildwindow(), shellvisittypedwindows(), unlinkwindowlist(), and visitownedwindows().


Generated on Tue Jun 13 09:06:08 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6