shellfile.c File Reference

#include "frontier.h"
#include "standard.h"
#include "cursor.h"
#include "dialogs.h"
#include "file.h"
#include "kb.h"
#include "launch.h"
#include "memory.h"
#include "resources.h"
#include "strings.h"
#include "frontierwindows.h"
#include "zoom.h"
#include "cancoon.h"
#include "shell.rsrc.h"
#include "shell.h"
#include "shellhooks.h"
#include "shellprivate.h"
#include "shellundo.h"
#include "lang.h"
#include "langinternal.h"
#include "tablestructure.h"

Include dependency graph for shellfile.c:

Go to the source code of this file.

Data Structures

struct  findvisitinfo

Defines

#define str_desktopscript   BIGSTRING ("\x04" "ftds")
#define str_normalscript   BIGSTRING ("\x04" "ftsc")
#define type_desktopscript   'FTds'
#define type_normalscript   'FTsc'
#define type_wptext   'FTwp'
#define type_plaintext   'TEXT'

Typedefs

typedef findvisitinfo tyfindvisitinfo
typedef findvisitinfoptrfindvisitinfo

Functions

static boolean findfilevisit (WindowPtr w, ptrvoid refcon)
boolean shellopenfile (ptrfilespec fspec, boolean flhidden, WindowPtr *wnew)
static boolean clickersvisit (hdlhashnode hnode, ptrvoid refcon)
boolean shellopen (void)
static void prepuserforwait (WindowPtr w)
static boolean killundovisit (WindowPtr w, ptrvoid refcon)
void killownedundo (WindowPtr w)
static boolean shellsavefile (WindowPtr w, ptrfilespec fspec, hdlfilenum fnum, short rnum, boolean flsaveas, boolean flrunnable)
static boolean shelldatabasesaveas (WindowPtr wsave, ptrfilespec fspec)
static boolean shellnormalsaveas (WindowPtr wsave, ptrfilespec fspec, boolean flrunnable)
boolean shellsaveas (WindowPtr wsave, ptrfilespec fspec, boolean flrunnable)
boolean shellnewfile (ptrfilespec fspec, boolean flhidden, WindowPtr *wnew)
boolean shellnew (void)
boolean shellsave (WindowPtr wsave)
boolean shellclosechildwindows (hdlwindowinfo hparent)
boolean shellclosewindow (WindowPtr wclose)
boolean shellclose (WindowPtr wclose, boolean fldialog)
static boolean shellclosefilewindowvisit (WindowPtr wclose, ptrvoid fldialog)
boolean shellcloseall (WindowPtr w, boolean fldialog)
boolean shellrevert (WindowPtr wrevert, boolean fldialog)
boolean shellopendefaultfile (void)

Variables

boolean flinhibitclosedialogs = false
boolean flconvertingolddatabase = false
boolean flshellclosingall = false


Define Documentation

#define str_desktopscript   BIGSTRING ("\x04" "ftds")
 

Definition at line 61 of file shellfile.c.

Referenced by shellsave(), and shellsaveas().

#define str_normalscript   BIGSTRING ("\x04" "ftsc")
 

Definition at line 62 of file shellfile.c.

Referenced by shellsaveas().

#define type_desktopscript   'FTds'
 

Definition at line 63 of file shellfile.c.

Referenced by shellnormalsaveas(), and shellsaveas().

#define type_normalscript   'FTsc'
 

Definition at line 64 of file shellfile.c.

Referenced by shellnormalsaveas().

#define type_plaintext   'TEXT'
 

Definition at line 66 of file shellfile.c.

Referenced by shellnormalsaveas().

#define type_wptext   'FTwp'
 

Definition at line 65 of file shellfile.c.

Referenced by shellnormalsaveas().


Typedef Documentation

typedef struct findvisitinfo * ptrfindvisitinfo
 

typedef struct findvisitinfo tyfindvisitinfo
 


Function Documentation

static boolean clickersvisit hdlhashnode  hnode,
ptrvoid  refcon
[static]
 

Definition at line 257 of file shellfile.c.

References BIGSTRING, bigstring, gethashkey, hnode, maxsftypelist, midstring(), patternmatch(), and stringtoostype().

Referenced by shellopen().

Here is the call graph for this function:

static boolean findfilevisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 86 of file shellfile.c.

References equalfilespecs(), getwindowinfo(), info, nil, shellbringtofront(), and windowgetfspec().

Referenced by shellopenfile().

Here is the call graph for this function:

void killownedundo WindowPtr  w  ) 
 

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:

static boolean killundovisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 367 of file shellfile.c.

References killundo(), shellpopglobals(), and shellpushglobals().

Referenced by killownedundo().

Here is the call graph for this function:

static void prepuserforwait WindowPtr  w  )  [static]
 

Definition at line 332 of file shellfile.c.

References flscriptrunning, grayownedwindows(), graywindow(), initbeachball(), langpartialeventloop(), left, shellpartialeventloop(), and updateMask.

Referenced by shellrevert(), and shellsavefile().

Here is the call graph for this function:

boolean shellclose WindowPtr  wclose,
boolean  fldialog
 

Definition at line 938 of file shellfile.c.

References activMask, bigstring, tyshellglobals::closeroutine, closewindowfile(), config, tyshellglobals::disposerecordroutine, disposeshellwindow(), filefrompath(), flinhibitclosedialogs, flscriptrunning, tykeystrokerecord::flshiftkey, tyconfigrecord::flstoredindatabase, getwindowinfo(), hashflushcache(), idautosave, isshellwindow(), keyboardstatus, killownedundo(), langgetuserflag(), langpartialeventloop(), longinfinity, nil, tyshellglobals::precloseroutine, savedialog(), shellcallfilehooks(), shellclearwindowdata(), shellclosechildwindows(), shellclosewindow(), shellgetwindowtitle(), shellglobals, shellpartialeventloop(), shellpopglobals(), shellpushglobals(), shellsave(), uisCloseSharedWindow(), uisIsSharedWindow(), and zoomtoorigin().

Referenced by closeabout(), closeregisteredwindowvisit(), closevalue(), closeverb(), filemenufunctionvalue(), openverb(), QueryCloseChild(), shellcloseall(), shellclosefilewindowvisit(), shellhandlemenu(), and shellhandlemouse().

Here is the call graph for this function:

boolean shellcloseall WindowPtr  w,
boolean  fldialog
 

Definition at line 1114 of file shellfile.c.

References fl, flshellclosingall, frontrootwindow(), getrootwindow(), getwindowinfo(), iddefaultconfig, nil, shellbringtofront(), shellclose(), shellclosechildwindows(), shellclosefilewindowvisit(), shellvisittypedwindows(), and uisCloseAllSharedWindows().

Referenced by filemenufunctionvalue(), langipcquitapproutine(), QueryCloseChild(), shellhandlemenu(), shellhandlemouse(), shellquit(), and shellshutdown().

Here is the call graph for this function:

boolean shellclosechildwindows hdlwindowinfo  hparent  ) 
 

Definition at line 851 of file shellfile.c.

References tyshellglobals::childcloseroutine, disposeshellwindow(), shellfirstchildwindow(), shellglobals, shellpopglobals(), and shellpushglobals().

Referenced by shellclose(), shellcloseall(), shellrevert(), and tableverbclose().

Here is the call graph for this function:

static boolean shellclosefilewindowvisit WindowPtr  wclose,
ptrvoid  fldialog
[static]
 

Definition at line 1083 of file shellfile.c.

References getwindowinfo(), iddefaultconfig, nil, shellbringtofront(), shellclose(), and shellupdatenow().

Referenced by shellcloseall().

Here is the call graph for this function:

boolean shellclosewindow WindowPtr  wclose  ) 
 

Definition at line 899 of file shellfile.c.

References assert, tyshellglobals::childcloseroutine, disposeshellwindow(), getwindowinfo(), nil, tywindowinfo::parentwindow, shellglobals, shellhidewindow(), shellpopglobals(), and shellpushglobals().

Referenced by clearlangerrordialog(), closeownedwindowsvisit(), closewindowcommand(), langclosehiddenwindow(), langdialogdispose(), langexternaldisposevariable(), medeletelineroutine(), menuverbclose(), opoutlinetoxml(), scriptkeystroke(), scriptprocesskilled(), scripttitleclick(), shellclose(), tableclientsurface(), tableclosewindows(), tablesurface(), tabletitlepopupselect(), tableverbcontinuesearch(), and tablezoomfromhead().

Here is the call graph for this function:

static boolean shelldatabasesaveas WindowPtr  wsave,
ptrfilespec  fspec
[static]
 

Definition at line 410 of file shellfile.c.

References alertdialog(), closefile(), closeresourcefile(), tyshellglobals::closeroutine, closewindowfile(), config, copyallresources(), deletefile(), tyshellglobals::disposerecordroutine, disposeshellwindow(), tyconfigrecord::filecreator, tyconfigrecord::filetype, flconvertingolddatabase, tyconfigrecord::flopenresfile, flushvolumechanges(), fnum, getwindowinfo(), tyshellglobals::loadroutine, opennewfile(), openresourcefile(), resourcefork, shellclearwindowdata(), shellglobals, shellsavefile(), shellsavefontresource(), shellsavewindowresource(), windowsetchanges(), windowsetfnum(), windowsetfspec(), and windowsetrnum().

Referenced by shellsaveas().

Here is the call graph for this function:

boolean shellnew void   ) 
 

Definition at line 744 of file shellfile.c.

References clearbytes(), tysftypelist::cttypes, tyconfigrecord::filetype, tyconfigrecord::flcreateonnew, fsname, getuntitledfilename(), iddefaultconfig, nil, sfdialog(), sfputfileverb, shellgetconfig(), shellnewfile(), and tysftypelist::types.

Referenced by ccnewobjectcommand(), shellhandlemenu(), and shellopendefaultfile().

Here is the call graph for this function:

boolean shellnewfile ptrfilespec  fspec,
boolean  flhidden,
WindowPtr wnew
 

Definition at line 666 of file shellfile.c.

References boolean, closefile(), closeresourcefile(), config, deletefile(), disposeshellwindow(), error, tyconfigrecord::filecreator, tyconfigrecord::filetype, fl, tyconfigrecord::flcreateonnew, tyconfigrecord::flopenresfile, fnum, newfilewindow(), tyshellglobals::newrecordroutine, nil, opennewfile(), openresourcefile(), resourcefork, shellglobals, shellpopglobals(), shellpushdefaultglobals(), shellpushglobals(), and zoomfilewindow().

Referenced by filemenufunctionvalue(), and shellnew().

Here is the call graph for this function:

static boolean shellnormalsaveas WindowPtr  wsave,
ptrfilespec  fspec,
boolean  flrunnable
[static]
 

Definition at line 516 of file shellfile.c.

References closefile(), closeresourcefile(), config, tyconfigrecord::filecreator, tyconfigrecord::filetype, filetype, tyconfigrecord::flopenresfile, flushvolumechanges(), fnum, getfiletype(), opennewfile(), openresourcefile(), resourcefork, shellsavefile(), type_desktopscript, type_normalscript, type_plaintext, type_wptext, windowgetfnum(), windowgetfspec(), windowgetrnum(), windowsetchanges(), windowsetfnum(), windowsetfspec(), and windowsetrnum().

Referenced by shellsaveas().

Here is the call graph for this function:

boolean shellopen void   ) 
 

Definition at line 276 of file shellfile.c.

References bigstring, ccfindrootwindow(), clearbytes(), clickersvisit(), tysftypelist::cttypes, defaultlistnumber, disablelangerror(), enablelangerror(), tyconfigrecord::filetype, fl, tykeystrokerecord::floptionkey, getstringlist(), getsystemtablescript(), hashtablevisit(), iddefaultconfig, idfrontierclickers, keyboardstatus, langexpandtodotparams(), nil, nonstartupfileprompt, sfdialog(), sfgetfileverb, shellgetconfig(), shellopenfile(), startupfileprompt, and tysftypelist::types.

Referenced by shellhandlemenu(), and shellopendefaultfile().

Here is the call graph for this function:

boolean shellopendefaultfile void   ) 
 

Definition at line 1271 of file shellfile.c.

References bigstring, config, defaultlistnumber, fileexists(), filegetdefaultpath(), fl, tyconfigrecord::flnewonlaunch, getapplicationfilespec(), getstringlist(), nil, optionkeydown(), setfsfile(), shellnew(), shellopen(), shellopenfile(), shellpopglobals(), shellpushdefaultglobals(), and startupfilename.

Referenced by ccloadspecialfile(), and langipcopenapproutine().

Here is the call graph for this function:

boolean shellopenfile ptrfilespec  fspec,
boolean  flhidden,
WindowPtr wnew
 

Definition at line 118 of file shellfile.c.

References bigstring, closefile(), closeresourcefile(), config, cursorisarrow, disposeshellwindow(), equalidentifiers(), error, fileresolvealias(), tyconfigrecord::filetype, filetype, findfilevisit(), fl, tyconfigrecord::flopenresfile, fnum, getfiletype(), iddefaultconfig, info, initbeachball(), lastword(), tyshellglobals::loadroutine, tyshellglobals::loadspecialroutine, newfilewindow(), nil, openfile(), openresourcefile(), resourcefork, right, setcursortype(), shellcallfilehooks(), shellglobals, shellpartialeventloop(), shellpopglobals(), shellpushdefaultglobals(), shellpushglobals(), shellvisittypedwindows(), updateMask, windowinval(), and zoomfilewindow().

Referenced by filemenufunctionvalue(), langipcopendocroutine(), openwindowsparamlinefiles(), shellopen(), and shellopendefaultfile().

Here is the call graph for this function:

boolean shellrevert WindowPtr  wrevert,
boolean  fldialog
 

Definition at line 1201 of file shellfile.c.

References alertstring(), bigstring, tyshellglobals::closeroutine, closewindowfile(), tyshellglobals::disposerecordroutine, disposeshellwindow(), filefrompath(), flinhibitclosedialogs, killownedundo(), tyshellglobals::loadroutine, prepuserforwait(), reopenerrorstring, revertdialog(), shellbringtofront(), shellcallfilehooks(), shellclearwindowdata(), shellclosechildwindows(), shellgetwindowtitle(), shellglobals, shellpopglobals(), shellpushrootglobals(), shellwindow, shellwindowinfo, windowgetfnum(), windowgetrnum(), and windowsetchanges().

Referenced by filemenufunctionvalue(), and shellhandlemenu().

Here is the call graph for this function:

boolean shellsave WindowPtr  wsave  ) 
 

Definition at line 777 of file shellfile.c.

References bigstring, config, equalidentifiers(), fl, tyconfigrecord::flstoredindatabase, flushvolumechanges(), getfiletype(), nil, ostype, ostypetostring(), tyshellglobals::setdatabaseroutine, shellglobals, shellpopglobals(), shellpushrootglobals(), shellsaveas(), shellsavedefaultfont(), shellsavefile(), shellsavewindowposition(), shellwindow, shellwindowmenudirty(), str_desktopscript, windowgetfnum(), windowgetfspec(), windowgetrnum(), and windowsetchanges().

Referenced by filemenufunctionvalue(), odbSaveFile(), shellclose(), and shellhandlemenu().

Here is the call graph for this function:

boolean shellsaveas WindowPtr  wsave,
ptrfilespec  fspec,
boolean  flrunnable
 

Definition at line 584 of file shellfile.c.

References bigstring, config, tysftypelist::cttypes, equalidentifiers(), tyconfigrecord::filetype, fl, tyconfigrecord::flcreateonnew, fsname, getdefaultfilename(), getfsfile(), lastword(), nil, replacestring(), setfsfile(), sfdialog(), sfputfileverb, shelldatabasesaveas(), shellnormalsaveas(), shellpopglobals(), shellpushrootglobals(), shellwindow, str_desktopscript, str_normalscript, stringlength, type_desktopscript, tysftypelist::types, and windowgetfspec().

Referenced by filemenufunctionvalue(), shellhandlemenu(), and shellsave().

Here is the call graph for this function:

static boolean shellsavefile WindowPtr  w,
ptrfilespec  fspec,
hdlfilenum  fnum,
short  rnum,
boolean  flsaveas,
boolean  flrunnable
[static]
 

Definition at line 396 of file shellfile.c.

References killownedundo(), prepuserforwait(), tyshellglobals::saveroutine, and shellglobals.

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

Here is the call graph for this function:


Variable Documentation

boolean flconvertingolddatabase = false
 

Definition at line 71 of file shellfile.c.

Referenced by mesaveasscriptvisit(), opverbpack(), pictverbpack(), shelldatabasesaveas(), and wpverbpack().

boolean flinhibitclosedialogs = false
 

Definition at line 69 of file shellfile.c.

Referenced by ccverifywindowclose(), closeownedwindowsvisit(), langexternaldisposevariable(), scriptverifycompilation(), shellclose(), and shellrevert().

boolean flshellclosingall = false
 

Definition at line 73 of file shellfile.c.

Referenced by agentthreadmain(), ccwindowpreclose(), and shellcloseall().


Generated on Tue Jun 13 02:07:24 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6