claybrowserstruc.c File Reference

#include "frontier.h"
#include "standard.h"
#include "cursor.h"
#include "dialogs.h"
#include "error.h"
#include "file.h"
#include "fileloop.h"
#include "kb.h"
#include "memory.h"
#include "ops.h"
#include "quickdraw.h"
#include "process.h"
#include "scrap.h"
#include "strings.h"
#include "opinternal.h"
#include "oplineheight.h"
#include "claybrowser.h"
#include "claycallbacks.h"
#include "claybrowserexpand.h"
#include "claybrowservalidate.h"
#include "claybrowserstruc.h"

Include dependency graph for claybrowserstruc.c:

Go to the source code of this file.

Functions

boolean browsergetrefcon (hdlheadrecord hnode, tybrowserinfo *info)
boolean browsersetrefcon (hdlheadrecord hnode, tybrowserinfo *info)
boolean browsercopyfileinfo (hdlheadrecord hnode, tybrowserinfo *fileinfo)
static void filepushsuffixnumber (short suffixnum, bigstring name)
static void filepopsuffixnumber (short suffixnum, bigstring name)
boolean claygetfilespec (hdlheadrecord hnode, tybrowserspec *fs)
boolean browserloadnode (hdlheadrecord hnode)
boolean browserchecklinelength (short newlen, bigstring bs)
boolean browserfileadded (hdlheadrecord hnodeparent, const tybrowserspec *fsnew, hdlheadrecord *hnew)
static boolean foldercontainsfile (tybrowserspec *fsfolder, tybrowserspec *fsfile)
static boolean claygetuniquefilename (tybrowserspec *fs, short *suffixnum)
static boolean getundofolderspec (void)
static boolean getclipfolderspec (void)
boolean browserclearundo (void)
static boolean deletetmpbitvisit (hdlheadrecord hnode, ptrvoid refcon)
boolean browserdeletenodeswithtmpbitset (void)
static boolean browsermoveto (hdlheadrecord hnode, tybrowserspec *fsfolder)
boolean browsergetparentspec (hdlheadrecord hnode, tybrowserspec *fsparent)
static boolean safedragvisit (hdlheadrecord hnode, ptrvoid punsafe)
boolean browserpredrag (hdlheadrecord *htarget, tydirection *dragdir)
boolean browserdragcopy (hdlheadrecord hmove, hdlheadrecord hdest)
void browsersortfolder (hdlheadrecord hnode)
void browserinsertagain (hdlheadrecord hnode)
boolean browsercopyrefcon (hdlheadrecord hsource, hdlheadrecord hdest)
static boolean browsergetnodevalue (hdlheadrecord hnode, tyvaluerecord *val)
boolean browsertextualizerefcon (hdlheadrecord hnode, Handle htext)
boolean browserreleaserefcon (hdlheadrecord hnode, boolean fldisk)
static boolean lineinsertvisit (hdlheadrecord hnode, ptrvoid refcon)
boolean browserlineinserted (hdlheadrecord hnode)
boolean browserlinedeleted (hdlheadrecord hnode)
static boolean notownrefconvisit (hdlheadrecord hnode, ptrvoid refcon)
static boolean closeownedwindowsvisit (hdlhashnode hn, ptrvoid refcon)
static boolean closeownedwindows (hdlheadrecord hnode)
boolean browsercommitchanges (void)
static void tabledisposescrap (hdloutlinerecord houtline)
static boolean tableexportscrap (hdloutlinerecord houtline, tyscraptype totype, Handle *hexport, boolean *fltempscrap)
boolean browsersetscrap (hdloutlinerecord houtline)
boolean browsergetscrap (hdloutlinerecord *houtline, boolean *fltempscrap)
boolean browserdeletedummyvalues (hdlheadrecord hnode)

Variables

static tybrowserspec undofolderspec
static tybrowserspec clipfolderspec
static hdlheadrecord hdeletednode = nil


Function Documentation

boolean browserchecklinelength short  newlen,
bigstring  bs
 

Definition at line 187 of file claybrowserstruc.c.

References alertdialog(), BIGSTRING, bigstring, copystring(), pushlong(), pushstring(), and stringlength.

Here is the call graph for this function:

boolean browserclearundo void   ) 
 

Definition at line 425 of file claybrowserstruc.c.

References clayemptyfilefolder(), and getundofolderspec().

Here is the call graph for this function:

boolean browsercommitchanges void   ) 
 

Definition at line 1104 of file claybrowserstruc.c.

References browsermoveto(), closeownedwindows(), fl, getundofolderspec(), hdeletednode, infinity, nil, notownrefconvisit(), and oprecursivelyvisit().

Referenced by browseridle(), browserlinedeleted(), browserlineinserted(), deletetmpbitvisit(), and tableverbidle().

Here is the call graph for this function:

boolean browsercopyfileinfo hdlheadrecord  hnode,
tybrowserinfo fileinfo
 

Definition at line 73 of file claybrowserstruc.c.

References browsersetrefcon(), and hnode.

Referenced by browserexpandvisit(), and browserloadnode().

Here is the call graph for this function:

boolean browsercopyrefcon hdlheadrecord  hsource,
hdlheadrecord  hdest
 

Definition at line 896 of file claybrowserstruc.c.

References opcopyrefconroutine().

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean browserdeletedummyvalues hdlheadrecord  hnode  ) 
 

Definition at line 1252 of file claybrowserstruc.c.

References claygetfilespec(), hashtabledelete(), hnode, novaluetype, opchasedown(), and tyvaluerecord::valuetype.

Referenced by browserpostcollapse(), and tabledisposeoutline().

Here is the call graph for this function:

boolean browserdeletenodeswithtmpbitset void   ) 
 

Definition at line 449 of file claybrowserstruc.c.

References deletetmpbitvisit(), nil, and opsiblingvisiter().

Referenced by browserpredrag(), and browservalidatepaste().

Here is the call graph for this function:

boolean browserdragcopy hdlheadrecord  hmove,
hdlheadrecord  hdest
 

Definition at line 750 of file claybrowserstruc.c.

References BIGSTRING, bigstring, claygetfilespec(), copystring(), tykeystrokerecord::floptionkey, keyboardstatus, msgdialog(), and optionkeydown().

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean browserfileadded hdlheadrecord  hnodeparent,
const tybrowserspec *  fsnew,
hdlheadrecord hnew
 

Definition at line 242 of file claybrowserstruc.c.

References bigstring, browserexpandvisit(), claygetfileinfo(), claygetfilename(), tyexpandinfo::ctlevels, fl, tyexpandinfo::flsettmpbits, tyexpandinfo::flsortnodes, tyexpandinfo::hparent, and opexpandupdate().

Referenced by tablesymbolinsertedvisit().

Here is the call graph for this function:

static boolean browsergetnodevalue hdlheadrecord  hnode,
tyvaluerecord val
[static]
 

Definition at line 913 of file claybrowserstruc.c.

References claygetfilespec(), and hnode.

Referenced by browsertextualizerefcon(), and tableexportscrap().

Here is the call graph for this function:

boolean browsergetparentspec hdlheadrecord  hnode,
tybrowserspec *  fsparent
 

Definition at line 604 of file claybrowserstruc.c.

References claygetfilespec(), hnode, setemptystring, shellgetdatabase(), and shellwindow.

Referenced by browserlineinserted(), lineinsertvisit(), and tablesymbolinsertedvisit().

Here is the call graph for this function:

boolean browsergetrefcon hdlheadrecord  hnode,
tybrowserinfo info
 

Definition at line 61 of file claybrowserstruc.c.

References hnode, info, and opgetrefcon().

Referenced by browsercanexpand(), browsercompareforcollision(), browserdrawnodeicon(), browserfindinsertionpoint(), browserinsertagain(), browsermoveto(), browserpredrag(), browsersortfolder(), browsertextchanged(), browservalidatedrag(), claygetfilespec(), claypostdrawline(), claypushnodestyle(), lineinsertvisit(), tablepushnodestyle(), tablesymbolchangedvisit(), tablesymboldeletedvisit(), tablesymbolzoomvisit(), and validatemovevisit().

Here is the call graph for this function:

boolean browsergetscrap hdloutlinerecord houtline,
boolean fltempscrap
 

Definition at line 1231 of file claybrowserstruc.c.

References hashscraptype, and shellgetscrap().

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

void browserinsertagain hdlheadrecord  hnode  ) 
 

Definition at line 843 of file claybrowserstruc.c.

References bigstring, browserfindinsertionpoint(), browsergetrefcon(), tyheadrecord::headlinkleft, hnode, nil, opcountatlevel(), opdeposit(), opendinternalchange(), opgetheadstring(), opinvalscreenmap(), opnewscreenmap(), opstartinternalchange(), and opunlink().

Referenced by browsertextchanged(), and tablesymbolchangedvisit().

Here is the call graph for this function:

boolean browserlinedeleted hdlheadrecord  hnode  ) 
 

Definition at line 1030 of file claybrowserstruc.c.

References browsercommitchanges(), hdeletednode, and hnode.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean browserlineinserted hdlheadrecord  hnode  ) 
 

Definition at line 992 of file claybrowserstruc.c.

References browsercommitchanges(), browsergetparentspec(), browsermoveto(), hdeletednode, hnode, infinity, lineinsertvisit(), nil, and oprecursivelyvisit().

Referenced by browserpreexpand(), browsertextchanged(), initializetableoutline(), and setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean browserloadnode hdlheadrecord  hnode  ) 
 

Definition at line 169 of file claybrowserstruc.c.

References browsercopyfileinfo(), claygetfileinfo(), claygetfilespec(), tybrowserinfo::flfolder, and hnode.

Referenced by browsertextchanged(), and tablesymbolchangedvisit().

Here is the call graph for this function:

static boolean browsermoveto hdlheadrecord  hnode,
tybrowserspec *  fsfolder
[static]
 

Definition at line 484 of file claybrowserstruc.c.

References bigstring, browsergetrefcon(), browsersetrefcon(), claygetfileinfo(), claygetfilespec(), claygetsubitemspec(), claygetuniquefilename(), equalidentifiers(), foldercontainsfile(), hnode, info, isemptystring, langexternaldontsave(), opendinternalchange(), opgetheadstring(), opsetactualheadstring(), opstartinternalchange(), and tybrowserinfo::suffixnum.

Referenced by browsercommitchanges(), browserlineinserted(), and browsersetscrap().

Here is the call graph for this function:

boolean browserpredrag hdlheadrecord htarget,
tydirection dragdir
 

Definition at line 645 of file claybrowserstruc.c.

References alertdialog(), assert, BIGSTRING, bigstring, browserdeletenodeswithtmpbitset(), browsergetrefcon(), browservalidatemove(), claygetfilespec(), down, info, nil, opchasedown(), opchaseleft(), opchaseup(), opcleartmpbits(), opvisitmarked(), parsedialogstring(), right, safedragvisit(), and up.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean browserreleaserefcon hdlheadrecord  hnode,
boolean  fldisk
 

Definition at line 938 of file claybrowserstruc.c.

References claygetfilespec(), hdeletednode, hnode, nil, and opinternalchange().

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean browsersetrefcon hdlheadrecord  hnode,
tybrowserinfo info
 

Definition at line 67 of file claybrowserstruc.c.

References hnode, info, and opsetrefcon().

Referenced by browsercopyfileinfo(), browsermoveto(), and lineinsertvisit().

Here is the call graph for this function:

boolean browsersetscrap hdloutlinerecord  houtline  ) 
 

Definition at line 1197 of file claybrowserstruc.c.

References browsermoveto(), claygetdirid(), emptyhashtable(), getclipfolderspec(), hashscraptype, infinity, nil, notownrefconvisit(), opchasedown(), oprecursivelyvisit(), shellsetscrap(), tabledisposescrap(), and tableexportscrap().

Referenced by setuptableoutlinecallbacks(), and tablescraphook().

Here is the call graph for this function:

void browsersortfolder hdlheadrecord  hnode  ) 
 

Definition at line 781 of file claybrowserstruc.c.

References bigstring, browserfindinsertionpoint(), browsergetrefcon(), hnode, initbeachball(), opdeposit(), opendinternalchange(), opgetheadstring(), opinvalscreenmap(), opnewscreenmap(), opsetctexpanded(), opsetscrollpositiontoline1(), opstartinternalchange(), opvalidate(), outlinedata, right, and rollbeachball().

Here is the call graph for this function:

boolean browsertextualizerefcon hdlheadrecord  hnode,
Handle  htext
 

Definition at line 925 of file claybrowserstruc.c.

References browsergetnodevalue(), and hnode.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean claygetfilespec hdlheadrecord  hnode,
tybrowserspec *  fs
 

Definition at line 121 of file claybrowserstruc.c.

References bigstring, browsergetrefcon(), claymakespec(), clearbytes(), hnode, info, and opgetheadstring().

Referenced by browserdeletedummyvalues(), browserdragcopy(), browserexpand(), browsergetnodevalue(), browsergetparentspec(), browserloadnode(), browsermoveto(), browserpredrag(), browserreleaserefcon(), browsertextchanged(), closeownedwindows(), opnodeistable(), tablegetcellstring(), tablegetwpedittext(), tablesymbolinsertedvisit(), tablesymbolsresortedvisit(), and tablesymbolzoomvisit().

Here is the call graph for this function:

static boolean claygetuniquefilename tybrowserspec *  fs,
short suffixnum
[static]
 

Definition at line 340 of file claybrowserstruc.c.

References BIGSTRING, bigstring, claymakespec(), copystring(), filepopsuffixnumber(), filepushsuffixnumber(), and isemptystring.

Referenced by browsermoveto().

Here is the call graph for this function:

static boolean closeownedwindows hdlheadrecord  hnode  )  [static]
 

Definition at line 1079 of file claybrowserstruc.c.

References claygetfilespec(), closeownedwindowsvisit(), hashtablelookupnode(), hnode, and nil.

Referenced by browsercommitchanges().

Here is the call graph for this function:

static boolean closeownedwindowsvisit hdlhashnode  hn,
ptrvoid  refcon
[static]
 

Definition at line 1049 of file claybrowserstruc.c.

References externalvaluetype, flinhibitclosedialogs, hashtablevisit(), istablevariable(), langexternalwindowopen(), nil, shellclosewindow(), and tyvaluerecord::valuetype.

Referenced by closeownedwindows().

Here is the call graph for this function:

static boolean deletetmpbitvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 433 of file claybrowserstruc.c.

References browsercommitchanges(), hnode, and opdeletenode().

Referenced by browserdeletenodeswithtmpbitset().

Here is the call graph for this function:

static void filepopsuffixnumber short  suffixnum,
bigstring  name
[static]
 

Definition at line 102 of file claybrowserstruc.c.

References BIGSTRING, copystring(), patternmatch(), pushint(), setstringlength, and stringlength.

Referenced by claygetuniquefilename().

Here is the call graph for this function:

static void filepushsuffixnumber short  suffixnum,
bigstring  name
[static]
 

Definition at line 91 of file claybrowserstruc.c.

References BIGSTRING, pushint(), and pushstring().

Referenced by claygetuniquefilename(), and filegetuniquename().

Here is the call graph for this function:

static boolean foldercontainsfile tybrowserspec *  fsfolder,
tybrowserspec *  fsfile
[static]
 

Definition at line 324 of file claybrowserstruc.c.

References claygetdirid().

Referenced by browsermoveto().

Here is the call graph for this function:

static boolean getclipfolderspec void   )  [static]
 

Definition at line 412 of file claybrowserstruc.c.

References BIGSTRING, and claygetspecialfolder().

Referenced by browsersetscrap().

Here is the call graph for this function:

static boolean getundofolderspec void   )  [static]
 

Definition at line 399 of file claybrowserstruc.c.

References BIGSTRING, and claygetspecialfolder().

Referenced by browserclearundo(), and browsercommitchanges().

Here is the call graph for this function:

static boolean lineinsertvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 964 of file claybrowserstruc.c.

References browsergetparentspec(), browsergetrefcon(), browsersetrefcon(), claygetdirid(), hnode, and info.

Referenced by browserlineinserted().

Here is the call graph for this function:

static boolean notownrefconvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 1040 of file claybrowserstruc.c.

Referenced by browsercommitchanges(), and browsersetscrap().

static boolean safedragvisit hdlheadrecord  hnode,
ptrvoid  punsafe
[static]
 

Definition at line 632 of file claybrowserstruc.c.

References hnode, and opgetheadstring().

Referenced by browserpredrag().

Here is the call graph for this function:

static void tabledisposescrap hdloutlinerecord  houtline  )  [static]
 

Definition at line 1149 of file claybrowserstruc.c.

References opdisposeoutline().

Referenced by browsersetscrap(), and tablecopyroutine().

Here is the call graph for this function:

static boolean tableexportscrap hdloutlinerecord  houtline,
tyscraptype  totype,
Handle hexport,
boolean fltempscrap
[static]
 

Definition at line 1155 of file claybrowserstruc.c.

References browsergetnodevalue(), hashscraptype, opcountatlevel(), opoutlinetonewtextscrap(), oppackoutline(), opscraptype, scriptscraptype, tableexportscrapvalue(), and textscraptype.

Referenced by browsersetscrap(), and tablecopyroutine().

Here is the call graph for this function:


Variable Documentation

tybrowserspec clipfolderspec [static]
 

Definition at line 390 of file claybrowserstruc.c.

hdlheadrecord hdeletednode = nil [static]
 

Definition at line 396 of file claybrowserstruc.c.

Referenced by browsercommitchanges(), browserlinedeleted(), browserlineinserted(), and browserreleaserefcon().

tybrowserspec undofolderspec [static]
 

Definition at line 388 of file claybrowserstruc.c.


Generated on Thu Jun 1 03:30:32 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6