shell.c File Reference

#include "frontier.h"
#include "standard.h"
#include "frontierconfig.h"
#include "about.h"
#include "bitmaps.h"
#include "cursor.h"
#include "dialogs.h"
#include "error.h"
#include "font.h"
#include "kb.h"
#include "launch.h"
#include "mac.h"
#include "memory.h"
#include "menu.h"
#include "mouse.h"
#include "ops.h"
#include "quickdraw.h"
#include "search.h"
#include "scrap.h"
#include "smallicon.h"
#include "strings.h"
#include "timedate.h"
#include "frontierwindows.h"
#include "zoom.h"
#include "file.h"
#include "resources.h"
#include "shell.h"
#include "shellbuttons.h"
#include "shellmenu.h"
#include "shellhooks.h"
#include "shell.rsrc.h"
#include "shellprint.h"
#include "shellundo.h"
#include "shellprivate.h"
#include "lang.h"
#include "langipc.h"
#include "process.h"
#include "kernelverbs.h"
#include "scripts.h"
#include "tablestructure.h"
#include "wpengine.h"
#include "frontierdebug.h"
#include "dockmenu.h"
#include "services.h"
#include "WinSockNetEvents.h"
#include "langdll.h"

Include dependency graph for shell.c:

Go to the source code of this file.

Defines

#define __APPLEEVENTS__

Functions

boolean shellgetstring (short id, bigstring bs)
void shellerrormessage (bigstring bs)
void shellinternalerrormessage (short iderror)
void shellshutdownscroll ()
boolean shellshutdown (void)
boolean shellquit (void)
static void shellhandleevent (void)
void shellforcecursoradjust (void)
void shelladjustcursor (void)
void shellidle (void)
boolean shellyield (boolean flresting)
void shellforcebackgroundtask (void)
boolean shellbackgroundtask (void)
boolean shellprocessevent (EventRecord *ev)
boolean shellpostevent (EventRecord *ev)
static short shellgeteventmask (void)
static boolean shelleventavail (void)
static void shellhandlenullevent (boolean *flbackground)
boolean shelleventloop (callback breakproc)
static boolean shellshortbreakproc (void)
boolean shellshorteventloop (void)
boolean shellpartialeventloop (short desiredevents)
static boolean shellmainbreakproc (void)
void shellmaineventloop (void)
void shellexitmaineventloop (void)
boolean shellstart (void)
static boolean shellinitmemory (void)
static boolean showerrorandexit (short iderror)
void shellinitscroll ()
boolean shellinit (void)

Variables

EventRecord shellevent
WindowPtr shellwindow = nil
hdlwindowinfo shellwindowinfo = nil
tyshellglobals shellglobals
static boolean flexitmaineventloop = false
static boolean flshellimmediatebackground = false
static unsigned long timelastevent = 0
static unsigned long timenextbackground = 0
static Point adjustcursorlastpoint = {-1, -1}
static boolean floverridebeachball = false
static boolean flipcstarted = false
static boolean flbackgroundtasksdisabled = true
static boolean flshelleventposted = false


Define Documentation

#define __APPLEEVENTS__
 

Definition at line 69 of file shell.c.


Function Documentation

void shelladjustcursor void   ) 
 

Definition at line 409 of file shell.c.

References adjustcursorlastpoint, tyshellglobals::adjustcursorroutine, beachballcursor(), cursorisarrow, equalpoints(), floverridebeachball, getmousewindowpos(), isshellwindow(), nil, pointinrect(), processbusy(), pt, rollbeachball(), setcursortype(), shellbuttonadjustcursor(), shellglobals, shellpopglobals(), shellpushglobals(), shellwindow, and shellwindowinfo.

Referenced by handlewindoweventcommand(), and shellhandlenullevent().

Here is the call graph for this function:

boolean shellbackgroundtask void   ) 
 

Definition at line 557 of file shell.c.

References tyshellglobals::backgroundroutine, flbackgroundtasksdisabled, flshellimmediatebackground, processyield(), shellforcecursoradjust(), shellglobals, shellpopglobals(), shellpushdefaultglobals(), timelastkeystroke, and timenextbackground.

Referenced by delayticks(), langexternalsearch(), and shellhandlenullevent().

Here is the call graph for this function:

void shellerrormessage bigstring  bs  ) 
 

Definition at line 138 of file shell.c.

References alertdialog(), flbackgroundtasksdisabled, and shellcallerrorhooks().

Referenced by ccloadspecialfile(), ccwindowstart(), dberror(), memoryerror(), opunpack(), oserror(), pictunpack(), scriptnewprocess(), shellinit(), shellinternalerrormessage(), sysfunctionvalue(), tablesavesystemtable(), threadissleeping(), volumeinfoerror(), and wpunpack().

Here is the call graph for this function:

static boolean shelleventavail void   )  [static]
 

Definition at line 729 of file shell.c.

References EventAvail(), flipcstarted, landeventfilter(), shelleventsblocked(), and shellgeteventmask().

Referenced by shellshortbreakproc().

Here is the call graph for this function:

boolean shelleventloop callback  breakproc  ) 
 

Definition at line 797 of file shell.c.

References fwsNetEventCheckAndAcceptSocket(), hAccel, hwndMDIClient, NULL, shellframewindow, shellhandleevent(), shellhandlenullevent(), timelastevent, TRUE, and UINT.

Referenced by scriptdebuggereventloop(), shellmaineventloop(), and shellshorteventloop().

Here is the call graph for this function:

void shellexitmaineventloop void   ) 
 

Definition at line 986 of file shell.c.

References flexitmaineventloop.

Referenced by ccloadfile(), filemenufunctionvalue(), langipcquitapproutine(), and shellquit().

void shellforcebackgroundtask void   ) 
 

Definition at line 547 of file shell.c.

References flshellimmediatebackground.

Referenced by addprocess(), langerrorset(), newprocessthread(), processchecktimeouts(), processscheduler(), wakeprocessthread(), and xcmdcallback().

void shellforcecursoradjust void   ) 
 

Definition at line 403 of file shell.c.

References adjustcursorlastpoint, and tyPoint::h.

Referenced by shellbackgroundtask(), shellhandlejugglerevent(), and tablepostmovecallback().

static short shellgeteventmask void   )  [static]
 

Definition at line 651 of file shell.c.

References everyEvent, and shellblockedevents().

Referenced by shelleventavail().

Here is the call graph for this function:

boolean shellgetstring short  id,
bigstring  bs
 

Definition at line 132 of file shell.c.

References getstringlist(), and interfacelistnumber.

Referenced by mecmdkeypopupselect(), medisplaycmdkeypopup(), medisplayscriptbutton(), mefillcmdkeypopup(), modaldialogcallback(), postmemorymessage(), revertdialog(), scriptgetwindowtitle(), shellhandlemenu(), shellinternalerrormessage(), shellsetmenuitemstring(), and tabledrawzoombutton().

Here is the call graph for this function:

static void shellhandleevent void   )  [static]
 

Definition at line 298 of file shell.c.

References activateEvt, activeFlag, autoKey, cmouseDown, floverridebeachball, getfrontwindow(), jugglerEvt, keyDown, menuEvt, tyEventRecord::message, mouseDown, mouseUp, nil, rmouseDown, scrollEvt, shellactivatewindow(), shellcalleventhooks(), shellevent, shellforcemenuadjust(), shellhandlejugglerevent(), shellhandlekeystroke(), shellhandlemenu(), shellhandlemouse(), shellhandlemouseup(), shellhandleupdate(), shellpopglobals(), shellpushglobals(), updateEvt, tyEventRecord::what, and wmouseDown.

Referenced by shelleventloop(), and shellprocessevent().

Here is the call graph for this function:

static void shellhandlenullevent boolean flbackground  )  [static]
 

Definition at line 748 of file shell.c.

References tyshellglobals::dataholder, flshellimmediatebackground, grabthreadglobals(), i, NULL, processchecktimeouts(), releasethreadglobals(), shelladjustcursor(), shellbackgroundtask(), shellcheckdirtyscrollbars(), shellglobals, shellidle(), shellpopglobals(), shellpushfrontglobals(), shellpushfrontrootglobals(), shellupdatemenus(), tickstoidle, tickstoupdatemenus, and timelastevent.

Referenced by shelleventloop().

Here is the call graph for this function:

void shellidle void   ) 
 

Definition at line 499 of file shell.c.

References tyshellglobals::idleroutine, and shellglobals.

Referenced by handlewindoweventcommand(), and shellhandlenullevent().

boolean shellinit void   ) 
 

Definition at line 1167 of file shell.c.

References aboutsegment(), archaicsystemstring, bigstring, clearbytes(), cryptinitverbs(), dbinitverbs(), dllinitverbs(), exittooperatingsystem(), FastInitialize(), fileinit(), fileinitverbs(), flipcstarted, getstringlist(), globalsarray, gSystemVersion, htmlinitverbs(), initbitmaps(), initconfig(), initdialogs(), initerror(), initfile(), initfonts(), initfsdefault(), initlang(), initmacintosh(), initmenusystem(), initmouse(), initprocess(), initquickdraw(), initscrap(), initscripts(), initscrollbars(), initsearch(), initservices(), initsmallicons(), initstrings(), inittablestructure(), initundo(), keyboardescape(), langcallbacks, langinitverbs(), langipcinit(), langipcstart(), macmemoryconfig, mathinitverbs(), nil, noErr, notenoughmemorystring, NULL, openabout(), parsedialogstring(), tylangcallbacks::processeventcallback, quicktimeinitverbs(), regexpinitverbs(), tymemoryconfig::reserveforcode, shellerrormessage(), shellinitmemory(), shellinitmenus(), shellinitprint(), shellinitscroll(), shellinitverbs(), shellprocessevent(), showerrorandexit(), stringinitverbs(), sysbeep, windowinitverbs(), xmlinitverbs(), and zoominit().

Referenced by InitializeInstance(), and main().

Here is the call graph for this function:

static boolean shellinitmemory void   )  [static]
 

Definition at line 1121 of file shell.c.

References initmemory(), and RememberA5.

Referenced by shellinit().

Here is the call graph for this function:

void shellinitscroll  ) 
 

void shellinternalerrormessage short  iderror  ) 
 

Definition at line 190 of file shell.c.

References bigstring, internalerrorstring, nil, numbertostring(), parsedialogstring(), shellerrormessage(), and shellgetstring().

Here is the call graph for this function:

static boolean shellmainbreakproc void   )  [static]
 

Definition at line 937 of file shell.c.

References flexitmaineventloop, and keyboardclearescape().

Referenced by shellmaineventloop().

Here is the call graph for this function:

void shellmaineventloop void   ) 
 

Definition at line 961 of file shell.c.

References grabthreadglobals(), initsegment(), releasethreadglobals(), shelleventloop(), shellmainbreakproc(), and shellshutdown().

Referenced by main(), and WinMain().

Here is the call graph for this function:

boolean shellpartialeventloop short  desiredevents  ) 
 

Definition at line 919 of file shell.c.

References everyEvent, shellpopblock(), shellpushblock(), and shellshorteventloop().

Referenced by ccloadspecialfile(), ccpartialeventloop(), disposemodaldialog(), langpartialeventloop(), notifyuser(), osacomponentshutdown(), osapartialeventloop(), prepuserforwait(), shellactivate(), shellclose(), shellopenfile(), shellsysverbwaitroutine(), and tablefindvisit().

Here is the call graph for this function:

boolean shellpostevent EventRecord ev  ) 
 

Definition at line 627 of file shell.c.

References flshelleventposted, and shellevent.

Referenced by xcmdcallback().

boolean shellprocessevent EventRecord ev  ) 
 

Definition at line 607 of file shell.c.

References grabthreadglobals(), releasethreadglobals(), shellevent, and shellhandleevent().

Referenced by fwsbackgroundtask(), handlewindoweventcommand(), langipcbreakembrace(), osaclientidleproc(), shellinit(), WinProcessActivateAppEvent(), WinProcessActivateEvent(), WinProcessCommandEvent(), WinProcessKeyboardEvent(), WinProcessMouseEvent(), WinProcessNCActivateEvent(), WinProcessPaintEvent(), and WinProcessScrollEvent().

Here is the call graph for this function:

boolean shellquit void   ) 
 

Definition at line 266 of file shell.c.

References nil, osacomponentverifyshutdown(), shellcloseall(), and shellexitmaineventloop().

Referenced by main(), QueryCloseAllChildren(), and shellhandlemenu().

Here is the call graph for this function:

static boolean shellshortbreakproc void   )  [static]
 

Definition at line 887 of file shell.c.

References shelleventavail().

Referenced by shellshorteventloop().

Here is the call graph for this function:

boolean shellshorteventloop void   ) 
 

Definition at line 906 of file shell.c.

References assert, iscurrentapplication(), langipcself, shelleventloop(), and shellshortbreakproc().

Referenced by langrunmodeless(), and shellpartialeventloop().

Here is the call graph for this function:

boolean shellshutdown void   ) 
 

Definition at line 209 of file shell.c.

References anyscraptype, exittooperatingsystem(), fileshutdown(), flipcstarted, fwsNetEventQuit(), iowaClose(), langipcshutdown(), logshutdown(), nil, osacomponentshutdown(), processclose(), shellcloseall(), shellshutdownscroll(), and shellwritescrap().

Referenced by InitializeInstance(), shellmaineventloop(), and shellstart().

Here is the call graph for this function:

void shellshutdownscroll  ) 
 

boolean shellstart void   ) 
 

Definition at line 997 of file shell.c.

References closeabout(), deletemenuitem(), drawmenubar(), flbackgroundtasksdisabled, keyboardescape(), landgetglobals(), macsystem7, noErr, NULL, shelladjustmenus(), shellinithandlers(), shellloadbuttonlists(), shellopeninitialfiles(), shellpatchnilroutines(), and shellshutdown().

Referenced by frontierstart(), and main().

Here is the call graph for this function:

boolean shellyield boolean  flresting  ) 
 

Definition at line 527 of file shell.c.

References fl, flscriptrunning, langbackgroundtask(), langerrorenabled(), and processyield().

Referenced by opedit(), pictedit(), and wpedit().

Here is the call graph for this function:

static boolean showerrorandexit short  iderror  )  [static]
 

Definition at line 1156 of file shell.c.

References alertstring().

Referenced by shellinit().

Here is the call graph for this function:


Variable Documentation

Point adjustcursorlastpoint = {-1, -1} [static]
 

Definition at line 121 of file shell.c.

Referenced by shelladjustcursor(), and shellforcecursoradjust().

boolean flbackgroundtasksdisabled = true [static]
 

Definition at line 127 of file shell.c.

Referenced by shellbackgroundtask(), shellerrormessage(), and shellstart().

boolean flexitmaineventloop = false [static]
 

Definition at line 113 of file shell.c.

Referenced by shellexitmaineventloop(), and shellmainbreakproc().

boolean flipcstarted = false [static]
 

Definition at line 125 of file shell.c.

Referenced by shelleventavail(), shellinit(), and shellshutdown().

boolean floverridebeachball = false [static]
 

Definition at line 123 of file shell.c.

Referenced by shelladjustcursor(), and shellhandleevent().

boolean flshelleventposted = false [static]
 

Definition at line 129 of file shell.c.

Referenced by shellpostevent().

boolean flshellimmediatebackground = false [static]
 

Definition at line 115 of file shell.c.

Referenced by shellbackgroundtask(), shellforcebackgroundtask(), and shellhandlenullevent().

EventRecord shellevent
 

Definition at line 102 of file shell.c.

Referenced by ccloadspecialfile(), langdialogkeystroke(), langdialogmousedown(), langdialogupdate(), minimousedown(), modaldialogcallback(), shellhandleevent(), shellhandlejugglerevent(), shellhandlekeystroke(), shellhandlemouse(), shellhandlemouseup(), shellhandleupdate(), shellpostevent(), and shellprocessevent().

tyshellglobals shellglobals
 

Definition at line 110 of file shell.c.

Referenced by ccchildclose(), ccdisposefilerecord(), ccsavespecialfile(), ccupdatewindowinfo(), doreplaceallfunc(), editmenufunctionvalue(), FrontierFrameWndProc(), FrontierOPWndProc(), handlewindoweventcommand(), ismenuscriptverb(), langdialogsearch(), langgettargetfunc(), langipchandleverb(), menuchildclose(), menufunctionvalue(), minisearch(), newchildwindow(), newfilewindow(), newshellwindow(), opfunctionvalue(), pictfunctionvalue(), searchfunctionvalue(), serviceshandlercopy(), serviceshandlerpaste(), setwinvalue(), shellactivatewindow(), shelladjustaftergrow(), shelladjustcursor(), shelladjustundo(), shellbackgroundtask(), shellbuttonhit(), shellclose(), shellclosechildwindows(), shellclosewindow(), shelldatabasesaveas(), shelleditcommand(), shellfilterscrollkey(), shellgetbuttonlist(), shellgetdatabase(), shellgetexternaldata(), shellgettargetdata(), shellgetundoglobals(), shellhandlekeystroke(), shellhandlemenu(), shellhandlemouse(), shellhandlenullevent(), shellidle(), shelljugglervisit(), shellnewfile(), shellopenfile(), shellpagesetupvisit(), shellpopglobals(), shellpushcancoonglobals(), shellpushconfigglobals(), shellpushglobals(), shellrefreshbuttonstatus(), shellresetwindowrects(), shellrevert(), shellsave(), shellsavefile(), shellsetglobals(), shellsetscrollbars(), shellsetselectioninfo(), shellsetsuperglobals(), shellsetundoglobals(), shellstyleverb(), shellupdatecontent(), shellupdatewindow(), shellwindowmessage(), shellzoomwindow(), statscompute(), tablefunctionvalue(), tableverbchildclose(), windowfunctionvalue(), windowinit(), windowresetrects(), wpfunctionvalue(), and zoomverb().

WindowPtr shellwindow = nil
 

Definition at line 104 of file shell.c.

Referenced by aboutsave(), browsergetparentspec(), browsernewwindow(), ccmsgverb(), ccsavespecialfile(), ccwindowpreclose(), copythreadglobals(), doreplaceallfunc(), filemenufunctionvalue(), frontierfunctionvalue(), getcurrentwindow(), initprocessthread(), langrunmodeless(), opgetoutinesize(), opmenuroutine(), opverbclose(), processyield(), scriptbackgroundenabled(), scriptdirtyhook(), scriptinvalbuttonsvisit(), searchfunctionvalue(), shelladjustcursor(), shelladjustmenus(), shelladjustundo(), shelldefaultfontroutine(), shelldefaultmsgroutine(), shelldefaultsizeroutine(), shelldrawbutton(), shelldrawbuttons(), shelleditcommand(), shellhandlejugglerevent(), shellhandlekeystroke(), shellhandlemenu(), shellinvalbuttons(), shellpopglobals(), shellpushglobals(), shellpushparentglobals(), shellrevert(), shellsave(), shellsaveas(), shellsetglobals(), shellsetselectioninfo(), shellupdatecontent(), swapinthreadglobals(), tableclientsurface(), tableclienttitlepopuphit(), tablesurface(), tabletitlepopupselect(), tableverbcontinuesearch(), validrect(), and wpclose().

hdlwindowinfo shellwindowinfo = nil
 

Definition at line 106 of file shell.c.

Referenced by ccdisposefilerecord(), ccsavespecialfile(), ccwindowpreclose(), countbuttons(), frame3sides(), FrontierOPWndProc(), getbuttonwidth(), langclosehiddenwindow(), langrunmodeless(), mecontinuesearch(), mefindnodevisit(), mesmashscriptwindow(), meupdate(), serviceshandlercopy(), serviceshandlerpaste(), setwinvalue(), shellactivatewindow(), shelladjustcursor(), shelladjustmenus(), shellbuttonhit(), shellcheckdirtyscrollbars(), shellcheckfontsizestyle(), shelldefaultfontroutine(), shelldefaultmsgroutine(), shelldefaultselectioninfo(), shelldefaultsizeroutine(), shelldrawbutton(), shelldrawbuttons(), shellgetbuttonrect(), shellgetbuttonstring(), shellhandlemenu(), shellinvalbuttons(), shellrefreshbuttonstatus(), shellrevert(), shellsetglobals(), shellsetscrollbars(), shellsetselectioninfo(), shellstyleverb(), shellupdatecontent(), shellupdatemenus(), shellzoomwindow(), swapundostacks(), tablesymbolchangedwindowvisit(), tablesymbolzoomvisit(), tableupdate(), tableverbcontinuesearch(), windowfunctionvalue(), wpdrawtext(), and wpfunctionvalue().

unsigned long timelastevent = 0 [static]
 

Definition at line 117 of file shell.c.

Referenced by shelleventloop(), and shellhandlenullevent().

unsigned long timenextbackground = 0 [static]
 

Definition at line 119 of file shell.c.

Referenced by shellbackgroundtask().


Generated on Sun Jun 11 13:44:55 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6