shellcallbacks.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "frontierconfig.h"
#include "cursor.h"
#include "font.h"
#include "kb.h"
#include "ops.h"
#include "quickdraw.h"
#include "resources.h"
#include "strings.h"
#include "frontierwindows.h"
#include "shell.h"
#include "shellprivate.h"
#include "shellbuttons.h"
#include "shellundo.h"
#include "shell.rsrc.h"
#include "oplist.h"
#include "lang.h"
#include "process.h"

Include dependency graph for shellcallbacks.c:

Go to the source code of this file.

Functions

boolean shellnewcallbacks (ptrcallbacks *callbacks)
boolean shellfindcallbacks (short configresnum, short *ixarray)
static boolean shelldefaultundo (void)
static boolean shelldefaultsetundostatus (void)
static boolean shelldefaultbuttonstatusroutine (short buttonnum, tybuttonstatus *status)
boolean shelldefaultfontroutine (void)
boolean shelldefaultsizeroutine (void)
boolean shelldefaultselectioninfo (void)
static boolean shelldefaultgettargetdata (short id)
static boolean shelldefaultmsgroutine (bigstring bs, boolean flbackgroundmsg)
static boolean shelldefaultresetrectsroutine (hdlwindowinfo hinfo)
static void shelldefaultadjustcursor (void)
static void shellchecknilroutine (callback *routine, callback defaultroutine)
static void shelltruedefault (void *routine)
static void shellfalsedefault (void *routine)
void shellpatchnilroutines (void)
void shellinithandlers (void)
void shellloadbuttonlists (void)
boolean shellgetconfig (short resnum, tyconfigrecord *pconfig)
boolean shellsetconfig (short resnum, tyconfigrecord pconfig)
boolean shellsetglobals (WindowPtr wglobals)
boolean shellpushglobals (WindowPtr wpush)
boolean shellpopglobals (void)
boolean shellpushwindowglobals (hdlwindowinfo hpush)
boolean shellpushconfigglobals (short configresnum)
boolean shellpushdefaultglobals (void)
boolean shellpushfrontglobals (void)
boolean shellpushrootglobals (WindowPtr w)
boolean shellpushparentglobals (void)
boolean shellgetfrontrootinfo (hdlwindowinfo *hinfo)
boolean shellpushfrontrootglobals (void)
boolean shellsetsuperglobals (void)
boolean shellgetundoglobals (long *globaldata)
boolean shellsetundoglobals (long globaldata, boolean flundo)
void shellclearwindowdata (void)

Variables

tyshellglobals globalsarray [cteditors]
short topglobalsarray = 0
tyglobalsstack globalsstack


Function Documentation

static void shellchecknilroutine callback routine,
callback  defaultroutine
[static]
 

Definition at line 278 of file shellcallbacks.c.

References nil.

Referenced by shellfalsedefault(), shellpatchnilroutines(), and shelltruedefault().

void shellclearwindowdata void   ) 
 

Definition at line 884 of file shellcallbacks.c.

References nil.

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

static void shelldefaultadjustcursor void   )  [static]
 

Definition at line 272 of file shellcallbacks.c.

References cursorisarrow, and setcursortype().

Referenced by shellpatchnilroutines().

Here is the call graph for this function:

static boolean shelldefaultbuttonstatusroutine short  buttonnum,
tybuttonstatus status
[static]
 

Definition at line 160 of file shellcallbacks.c.

Referenced by shellpatchnilroutines().

boolean shelldefaultfontroutine void   ) 
 

Definition at line 172 of file shellcallbacks.c.

References tywindowinfo::defaultfont, eraserect(), shellwindow, shellwindowinfo, and windowinval().

Referenced by shellpatchnilroutines().

Here is the call graph for this function:

static boolean shelldefaultgettargetdata short  id  )  [static]
 

Definition at line 245 of file shellcallbacks.c.

Referenced by shellpatchnilroutines().

static boolean shelldefaultmsgroutine bigstring  bs,
boolean  flbackgroundmsg
[static]
 

Definition at line 253 of file shellcallbacks.c.

References drawwindowmessage(), shellsetwindowmessage(), shellwindow, and shellwindowinfo.

Referenced by shellpatchnilroutines().

Here is the call graph for this function:

static boolean shelldefaultresetrectsroutine hdlwindowinfo  hinfo  )  [static]
 

Definition at line 264 of file shellcallbacks.c.

References shellresetwindowrects().

Referenced by shellpatchnilroutines().

Here is the call graph for this function:

boolean shelldefaultselectioninfo void   ) 
 

Definition at line 239 of file shellcallbacks.c.

References defaultselectioninfo(), and shellwindowinfo.

Referenced by minisetselectioninfo(), and shellpatchnilroutines().

Here is the call graph for this function:

static boolean shelldefaultsetundostatus void   )  [static]
 

Definition at line 119 of file shellcallbacks.c.

References bigstring, disposehandle(), getredoaction(), getstringlist(), getundoaction(), h, newheapstring(), nil, optionkeydown(), pushstring(), redostring, undolistnumber, and undostring.

Referenced by shellpatchnilroutines().

Here is the call graph for this function:

boolean shelldefaultsizeroutine void   ) 
 

Definition at line 193 of file shellcallbacks.c.

References tywindowinfo::defaultsize, eraserect(), shellwindow, shellwindowinfo, and windowinval().

Referenced by shellpatchnilroutines().

Here is the call graph for this function:

static boolean shelldefaultundo void   )  [static]
 

Definition at line 103 of file shellcallbacks.c.

References getredoaction(), optionkeydown(), redolastaction(), and undolastaction().

Referenced by shellpatchnilroutines().

Here is the call graph for this function:

static void shellfalsedefault void *  routine  )  [static]
 

Definition at line 292 of file shellcallbacks.c.

References falsenoop(), and shellchecknilroutine().

Referenced by shellpatchnilroutines().

Here is the call graph for this function:

boolean shellfindcallbacks short  configresnum,
short ixarray
 

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 shellgetconfig short  resnum,
tyconfigrecord pconfig
 

Definition at line 485 of file shellcallbacks.c.

References tyshellglobals::config, globalsarray, and shellfindcallbacks().

Referenced by ccgetwindowrect(), ccinitwindowinfo(), langdialognewwindow(), langexternalgetconfig(), menewmenurecord(), newoutlinerecord(), opverbnew(), pictgetnewwindowrect(), shellnew(), shellopen(), tableverbsetupdisplay(), and wpnewrecord().

Here is the call graph for this function:

boolean shellgetfrontrootinfo hdlwindowinfo hinfo  ) 
 

Definition at line 808 of file shellcallbacks.c.

References frontrootwindow(), getrootwindow(), iddefaultconfig, and shellfindwindow().

Referenced by browsernewwindow(), langdialognewwindow(), langerrornewwindow(), shellpushfrontrootglobals(), shellsetsuperglobals(), and statsnewwindow().

Here is the call graph for this function:

boolean shellgetundoglobals long globaldata  ) 
 

Definition at line 872 of file shellcallbacks.c.

References tyshellglobals::getundoglobalsroutine, and shellglobals.

Referenced by pushundoaction().

void shellinithandlers void   ) 
 

Definition at line 450 of file shellcallbacks.c.

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

Referenced by shellstart().

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:

boolean shellnewcallbacks ptrcallbacks callbacks  ) 
 

Definition at line 61 of file shellcallbacks.c.

References cteditors, globalsarray, ideditorstackfull, nil, shellinternalerror, STR_increase_cteditors, and topglobalsarray.

Referenced by aboutstart(), browserstart(), ccwindowstart(), langdialogstart(), langerrorstart(), menustart(), ministart(), opstart(), pictstart(), scriptstart(), statsstart(), tablestart(), and wpstart().

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

Definition at line 667 of file shellcallbacks.c.

References tyshellglobals::dataholder, disposeshellwindow(), getwindowinfo(), globalsstack, tyshellglobals::infoholder, nil, tyshellglobals::poproutine, tyshellglobals::setglobalsroutine, shellglobals, shellsetglobals(), shellwindow, tyglobalsstack::stack, and tyglobalsstack::top.

Referenced by aboutsave(), aboutsetstatsflag(), aboutsetsuperglobals(), aboutsetthreadstring(), aboutwindowsetup(), addmenucommandverb(), browsernewwindow(), ccchildclose(), cccopywindowinfo(), ccfunctionvalue(), ccgetwindowrect(), ccmsg(), ccmsgverb(), ccnewsubwindow(), ccsubwindowclose(), ccupdatewindowinfo(), cmderrorroutine(), dbnewverb(), dbstatsmessage(), deletemenucommandverb(), detachscript(), editmenufunctionvalue(), filemenufunctionvalue(), FrontierFrameWndProc(), frontierfunctionvalue(), FrontierOPWndProc(), handlewindoweventcommand(), ismenuscriptverb(), killundovisit(), langdialogsearch(), langerrordirtyhook(), langerrorset(), langgettargetfunc(), langipchandleverb(), langrunmodeless(), mecontinuesearch(), mefindnodevisit(), menuchildclose(), menuedit(), menufunctionvalue(), menuverbfind(), mescripterrorroutine(), mescriptfontchangeroutine(), mesearchrefconroutine(), meshownode(), mesmashscriptwindow(), meunloadscript(), miniinvalicon(), mininewwindow(), minisearch(), minisetwindowmessage(), newaboutwindow(), opedit(), openverb(), opfunctionvalue(), opverbfind(), opverblinkcode(), opxmlsetwindowexpansionstate(), opxmlsetwindowverticalscrollstate(), pictfunctionvalue(), scriptdebugger(), scriptdebugtraperror(), scriptinvalbuttonsvisit(), scriptlocalsbutton(), scriptsetdata(), scripttitleclick(), scriptwindowmessage(), searchfunctionvalue(), serviceshandlercopy(), serviceshandlerpaste(), setwinvalue(), shellactivatewindow(), shelladjustcursor(), shellbackgroundtask(), shellcheckdirtyscrollbars(), shellclose(), shellclosechildwindows(), shellclosewindow(), shellfrontrootwindowmessage(), shellfrontwindowmessage(), shellgetdatabase(), shellgetexternaldata(), shellgettargetdata(), shellhandleevent(), shellhandlejugglerevent(), shellhandlekeystroke(), shellhandlemouse(), shellhandlenullevent(), shelljugglervisit(), shellmoveandsizewindow(), shellmovewindow(), shellmovewindowhidden(), shellnewfile(), shellopendefaultfile(), shellopenfile(), shellpagesetupvisit(), shellrevert(), shellsave(), shellsaveas(), shellsetscrollbars(), shellsetsuperglobals(), shellsizewindow(), shellsizewindowhidden(), shellupdatewindow(), shellzoomwindow(), startminidialog(), statscompute(), systemscripterrorroutine(), tablepastevalue(), tablesurface(), tablesymbolchangedwindowvisit(), tableverbchildclose(), tableverbsetupdisplay(), tablezoomfound(), tablezoomtoname(), windoweditcommand(), windowfunctionvalue(), windowinit(), wpedit(), wpfunctionvalue(), wpverbfind(), wpverbnew(), and zoomverb().

Here is the call graph for this function:

boolean shellpushconfigglobals short  configresnum  ) 
 

Definition at line 742 of file shellcallbacks.c.

References tyshellglobals::config, config, globalsarray, nil, shellfindcallbacks(), shellglobals, and shellpushglobals().

Referenced by shellpushdefaultglobals().

Here is the call graph for this function:

boolean shellpushdefaultglobals void   ) 
 

Definition at line 760 of file shellcallbacks.c.

References iddefaultconfig, and shellpushconfigglobals().

Referenced by dbnewverb(), shellbackgroundtask(), shellnewfile(), shellopendefaultfile(), and shellopenfile().

Here is the call graph for this function:

boolean shellpushfrontglobals void   ) 
 

Definition at line 766 of file shellcallbacks.c.

References frontshellwindow(), and shellpushglobals().

Referenced by scriptlocalsbutton(), shellcheckdirtyscrollbars(), shellfrontwindowmessage(), shellhandlejugglerevent(), shellhandlekeystroke(), shellhandlenullevent(), tablepastevalue(), tablesurface(), tablezoomfound(), and tablezoomtoname().

Here is the call graph for this function:

boolean shellpushfrontrootglobals void   ) 
 

Definition at line 829 of file shellcallbacks.c.

References shellgetfrontrootinfo(), and shellpushglobals().

Referenced by browsernewwindow(), ccmsgverb(), frontierfunctionvalue(), shellfrontrootwindowmessage(), shellhandlenullevent(), and shellpushtargetglobals().

Here is the call graph for this function:

boolean shellpushglobals WindowPtr  wpush  ) 
 

Definition at line 625 of file shellcallbacks.c.

References ctglobals, getwindowinfo(), globalsstack, idglobalsstackfull, tyshellglobals::pushroutine, shellglobals, shellinternalerror, shellsetglobals(), shellwindow, tyglobalsstack::stack, STR_globals_stack_overflow, and tyglobalsstack::top.

Referenced by aboutsave(), aboutsetstatsflag(), aboutsetsuperglobals(), aboutsetthreadstring(), addmenucommandverb(), browsernewwindow(), ccchildclose(), ccfunctionvalue(), ccgetwindowrect(), ccmsg(), ccupdatewindowinfo(), cmderrorroutine(), dbstatsmessage(), deletemenucommandverb(), detachscript(), FrontierFrameWndProc(), FrontierOPWndProc(), handlewindoweventcommand(), ismenuscriptverb(), killundovisit(), langdialogsearch(), langerrordirtyhook(), langerrorset(), langgettargetfunc(), langipchandleverb(), langrunmodeless(), mecontinuesearch(), mefindnodevisit(), menuchildclose(), menuedit(), menufunctionvalue(), menuverbfind(), mescripterrorroutine(), mesearchrefconroutine(), meshownode(), mesmashscriptwindow(), meunloadscript(), mininewwindow(), minisearch(), newaboutwindow(), opedit(), openverb(), opfunctionvalue(), opverbfind(), opverblinkcode(), pictfunctionvalue(), scriptdebugger(), scriptdebugtraperror(), scriptinvalbuttonsvisit(), scriptsetdata(), scripttitleclick(), scriptwindowmessage(), setwinvalue(), shellactivatewindow(), shelladjustcursor(), shellclose(), shellclosechildwindows(), shellclosewindow(), shellgetexternaldata(), shellgettargetdata(), shellhandleevent(), shellhandlemouse(), shelljugglervisit(), shellmoveandsizewindow(), shellmovewindow(), shellmovewindowhidden(), shellnewfile(), shellopenfile(), shellpagesetupvisit(), shellpushcancoonglobals(), shellpushconfigglobals(), shellpushfrontglobals(), shellpushfrontrootglobals(), shellpushparentglobals(), shellpushrootglobals(), shellpushtargetglobals(), shellpushwindowglobals(), shellsetscrollbars(), shellsetsuperglobals(), shellsizewindow(), shellsizewindowhidden(), shellupdatewindow(), shellzoomwindow(), systemscripterrorroutine(), tablefunctionvalue(), tablesymbolchangedwindowvisit(), tableverbchildclose(), tableverbsetupdisplay(), windoweditcommand(), windowinit(), wpedit(), wpfunctionvalue(), wpverbfind(), wpverbnew(), and zoomverb().

Here is the call graph for this function:

boolean shellpushparentglobals void   ) 
 

Definition at line 792 of file shellcallbacks.c.

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

Referenced by mescriptfontchangeroutine().

Here is the call graph for this function:

boolean shellpushrootglobals WindowPtr  w  ) 
 

Definition at line 777 of file shellcallbacks.c.

References getrootwindow(), and shellpushglobals().

Referenced by aboutwindowsetup(), cccopywindowinfo(), ccmsgverb(), ccnewsubwindow(), ccsubwindowclose(), shellgetdatabase(), shellrevert(), shellsave(), shellsaveas(), and statscompute().

Here is the call graph for this function:

boolean shellpushwindowglobals hdlwindowinfo  hpush  ) 
 

Definition at line 704 of file shellcallbacks.c.

References nil, and shellpushglobals().

Referenced by miniinvalicon(), minisetwindowmessage(), opxmlsetwindowexpansionstate(), opxmlsetwindowverticalscrollstate(), serviceshandlercopy(), serviceshandlerpaste(), and startminidialog().

Here is the call graph for this function:

boolean shellsetconfig short  resnum,
tyconfigrecord  pconfig
 

Definition at line 498 of file shellcallbacks.c.

References tyshellglobals::config, globalsarray, and shellfindcallbacks().

Referenced by langdialognewwindow().

Here is the call graph for this function:

boolean shellsetglobals WindowPtr  wglobals  ) 
 

Definition at line 511 of file shellcallbacks.c.

References tyshellglobals::config, config, tyshellglobals::dataholder, emptywindowlist(), getport(), getwindowinfo(), globalsarray, tyshellglobals::infoholder, nil, NULL, tyshellglobals::setglobalsroutine, setport(), shellfindcallbacks(), shellglobals, shellredostack, shellundostack, shellwindow, shellwindowinfo, and tyshellglobals::windowholder.

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

Here is the call graph for this function:

boolean shellsetsuperglobals void   ) 
 

Definition at line 844 of file shellcallbacks.c.

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

Referenced by ccbackground(), ccloadspecialfile(), and shellactivatewindow().

Here is the call graph for this function:

boolean shellsetundoglobals long  globaldata,
boolean  flundo
 

Definition at line 878 of file shellcallbacks.c.

References tyshellglobals::setundoglobalsroutine, and shellglobals.

Referenced by killactions(), popundoaction(), and undolastaction().

static void shelltruedefault void *  routine  )  [static]
 

Definition at line 286 of file shellcallbacks.c.

References shellchecknilroutine(), and truenoop().

Referenced by shellpatchnilroutines().

Here is the call graph for this function:


Variable Documentation

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

short topglobalsarray = 0
 

Definition at line 54 of file shellcallbacks.c.

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


Generated on Tue Jun 13 00:56:46 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6