outlineland.c File Reference

#include <Packages.h>
#include <GestaltEqu.h>
#include "op.h"
#include "opinternal.h"
#include "wpengine.h"
#include "outlinewires.h"
#include "outlinefinder.h"
#include "launch.h"

Include dependency graph for outlineland.c:

Go to the source code of this file.

Data Structures

struct  tydata
struct  tyoptionsrecord

Defines

#define fastinserttoken   'fins'
#define namecolwidth   180
#define kindcolwidth   40
#define findersmalliconlist   131

Typedefs

typedef tydata ** hdldata
typedef tyoptionsrecord ** hdloptionsrecord

Enumerations

enum  {
  desktopicon = 0, diskicon, appleshareicon, whitefoldericon,
  blackfoldericon, applicationicon, documenticon, stationeryicon,
  trashcanicon, macintoshicon, lockedicon, whiteopenfoldericon,
  blackopenfoldericon
}

Functions

static boolean setglobals (void)
static boolean preexpand (hdlheadrecord hnode, short ctlevels)
static boolean postcollapse (hdlheadrecord hnode)
static short geticonnum (hdlheadrecord hnode)
static boolean measureline (hdlheadrecord hnode)
static ostypetostring (OSType type, bigstring bs)
static boolean drawline (hdlheadrecord hnode)
static boolean mouseinline (hdlheadrecord hnode)
static boolean hasdynamicsubs (hdlheadrecord hnode)
static boolean getlinedisplayinfo (hdlheadrecord hnode, Rect *prect, short *textstart)
static boolean textchanged (hdlheadrecord hnode, bigstring bsorig)
static boolean lineinserted (hdlheadrecord hnode)
static boolean linedeleted (hdlheadrecord hnode)
static boolean setscrollbars (void)
static void setupoutline (void)
static boolean newrecord (void)
static boolean disposerecord (void)
static boolean activate (boolean flactive)
static boolean update (void)
static short comparestrings (bigstring bs1, bigstring bs2)
static hdlheadrecord op1stsibling (hdlheadrecord hnode)
static boolean opfindhead (hdlheadrecord hfirst, bigstring bs, hdlheadrecord *hnode)
static boolean opnavigationkey (byte chkey)
static boolean keystroke (void)
static boolean mousedown (void)
static boolean packrecord (Handle *hpacked)
static boolean unpackrecord (Handle hpacked)
static boolean getcontentsize (void)
static boolean windowresize (void)
static boolean selectall (void)
static boolean haveselection (void)
static boolean setselectioninfo (void)
static boolean setfont (void)
static boolean setfontsize (void)
static boolean setstyle (void)
static boolean deleteselectedtext (void)
static boolean copy (Handle *hpacked)
static boolean paste (Handle hpacked)
static boolean copytext (Handle *htext)
static boolean pastetext (Handle htext)
static boolean tryhandlefastverb (void)
static boolean tryhandleverb (void)
static boolean idle (void)
static boolean checkgestalts (void)
void main (void)

Variables

struct {
   short   errornumber
   hdltreenode   htree
   hdlhashnode   hnode
   hdltreenode   hcode
   long   offset
   hdlheadrecord   hnode
   FSSpec *   fsfile
   FSSpec   fsalias
   boolean   fl
   boolean   launched
   OSType   apptype
   bigstring   errormessage
   short   fnum
   short   fsize
   short   fstyle
tyfindericon


Define Documentation

#define fastinserttoken   'fins'
 

Definition at line 40 of file outlineland.c.

#define findersmalliconlist   131
 

Definition at line 45 of file outlineland.c.

Referenced by drawline().

#define kindcolwidth   40
 

Definition at line 43 of file outlineland.c.

Referenced by getlinedisplayinfo().

#define namecolwidth   180
 

Definition at line 42 of file outlineland.c.

Referenced by drawline(), and getlinedisplayinfo().


Typedef Documentation

typedef struct tydata ** hdldata
 

typedef struct tyoptionsrecord ** hdloptionsrecord
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
desktopicon 
diskicon 
appleshareicon 
whitefoldericon 
blackfoldericon 
applicationicon 
documenticon 
stationeryicon 
trashcanicon 
macintoshicon 
lockedicon 
whiteopenfoldericon 
blackopenfoldericon 

Definition at line 48 of file outlineland.c.


Function Documentation

static boolean activate boolean  flactive  )  [static]
 

Definition at line 441 of file outlineland.c.

References app, tyappletrecord::appdata, and opactivate().

Referenced by main().

Here is the call graph for this function:

static boolean checkgestalts void   )  [static]
 

Definition at line 1104 of file outlineland.c.

References noErr.

Referenced by main().

static short comparestrings bigstring  bs1,
bigstring  bs2
[static]
 

Definition at line 461 of file outlineland.c.

static boolean copy Handle hpacked  )  [static]
 

Definition at line 790 of file outlineland.c.

References assert, disposehandle(), enlargehandle(), exportshellscrap(), nil, opcopy(), opscraptype, and shellgetscrap().

Referenced by main().

Here is the call graph for this function:

static boolean copytext Handle htext  )  [static]
 

Definition at line 846 of file outlineland.c.

References assert, exportshellscrap(), nil, opcopy(), and textscraptype.

Referenced by main().

Here is the call graph for this function:

static boolean deleteselectedtext void   )  [static]
 

Definition at line 780 of file outlineland.c.

References opclear().

Referenced by main().

Here is the call graph for this function:

static boolean disposerecord void   )  [static]
 

Definition at line 427 of file outlineland.c.

References app, tyappletrecord::appdata, disposehandle(), killundo(), and opdisposeoutline().

Referenced by main().

Here is the call graph for this function:

static boolean drawline hdlheadrecord  hnode  )  [static]
 

Definition at line 185 of file outlineland.c.

References findersmalliconlist, geticonnum(), h, hnode, info, italic, movepento(), namecolwidth, opeditingtext(), opeditupdate(), opgetrefcon(), ostypetostring(), pendrawstring(), plotsmallicon(), popstyle(), pt, pushstyle(), r, setrect(), and widthsmallicon.

Referenced by setupoutline().

Here is the call graph for this function:

static boolean getcontentsize void   )  [static]
 

Definition at line 695 of file outlineland.c.

References app, tyappletrecord::appwindow, and opgetoutinesize().

Referenced by main().

Here is the call graph for this function:

static short geticonnum hdlheadrecord  hnode  )  [static]
 

Definition at line 146 of file outlineland.c.

References applicationicon, diskicon, documenticon, hnode, info, macintoshicon, opgetrefcon(), stationeryicon, and whitefoldericon.

Referenced by drawline().

Here is the call graph for this function:

static boolean getlinedisplayinfo hdlheadrecord  hnode,
Rect prect,
short textstart
[static]
 

Definition at line 288 of file outlineland.c.

References kindcolwidth, namecolwidth, and widthsmallicon.

Referenced by setupoutline().

static boolean hasdynamicsubs hdlheadrecord  hnode  )  [static]
 

Definition at line 277 of file outlineland.c.

References hnode, info, and opgetrefcon().

Referenced by setupoutline().

Here is the call graph for this function:

static boolean haveselection void   )  [static]
 

Definition at line 742 of file outlineland.c.

Referenced by main().

static boolean idle void   )  [static]
 

Definition at line 1075 of file outlineland.c.

References app, tyappletrecord::appdata, tyappletrecord::appwindow, cursorisarrow, tymouserecord::localpt, mousestatus, nil, opidle(), opsetcursor(), pt, and setcursortype().

Referenced by callgestalt(), and main().

Here is the call graph for this function:

static boolean keystroke void   )  [static]
 

Definition at line 581 of file outlineland.c.

References tykeystrokerecord::chkb, tykeystrokerecord::ctmodifiers, keyboardstatus, opkeystroke(), and opnavigationkey().

Referenced by main().

Here is the call graph for this function:

static boolean linedeleted hdlheadrecord  hnode  )  [static]
 

Definition at line 318 of file outlineland.c.

References hnode.

Referenced by setupoutline().

static boolean lineinserted hdlheadrecord  hnode  )  [static]
 

Definition at line 312 of file outlineland.c.

References hnode.

Referenced by setupoutline().

void main void   ) 
 

Definition at line 1118 of file outlineland.c.

References activate(), app, appletinitmanagers(), checkgestalts(), clearbytes(), copy(), copytext(), deleteselectedtext(), disposerecord(), tyopuserprefs::fltabkeyreorg, getcontentsize(), haveselection(), idle(), initprint(), keystroke(), longsizeof, mousedown(), newappwindow(), newrecord(), opeditgetundoglobals(), opeditsetundoglobals(), opprefs, opresetscrollbars(), opscroll(), packrecord(), paste(), pastetext(), runapplet(), selectall(), setfont(), setfontsize(), setglobals(), setselectioninfo(), setstyle(), shelldisposescrap(), tryhandlefastverb(), tryhandleverb(), unpackrecord(), update(), windowresize(), and wpinit().

Here is the call graph for this function:

static boolean measureline hdlheadrecord  hnode  )  [static]
 

Definition at line 172 of file outlineland.c.

static boolean mousedown void   )  [static]
 

Definition at line 601 of file outlineland.c.

References tymouserecord::localpt, mousestatus, and opmousedown().

Here is the call graph for this function:

static boolean mouseinline hdlheadrecord  hnode  )  [static]
 

Definition at line 232 of file outlineland.c.

References tymouserecord::fldoubleclick, hnode, launchusingfinder(), tymouserecord::localpt, mousestatus, opclearallmarks(), opeditclick(), opeditselectall(), opinvalnode(), opmoveto(), opupdatenow(), outlinedata, and pt.

Referenced by setupoutline().

Here is the call graph for this function:

static boolean newrecord void   )  [static]
 

Definition at line 381 of file outlineland.c.

References app, tyappletrecord::appdata, tyappletrecord::appwindow, bigstring, disposehandle(), error, fl, longsizeof, newclearhandle(), nil, opnewrecord(), outlinedata, outlinewindowinfo, setstringlength, and setupoutline().

Referenced by main().

Here is the call graph for this function:

static hdlheadrecord op1stsibling hdlheadrecord  hnode  )  [static]
 

Definition at line 476 of file outlineland.c.

References hnode, and opchaseup().

Here is the call graph for this function:

static boolean opfindhead hdlheadrecord  hfirst,
bigstring  bs,
hdlheadrecord hnode
[static]
 

Definition at line 484 of file outlineland.c.

References alllower(), bigstring, comparestrings(), copystring(), getheadstring, tyheadrecord::headlinkdown, hnode, nil, and op1stsibling().

Here is the call graph for this function:

static boolean opnavigationkey byte  chkey  )  [static]
 

Definition at line 547 of file outlineland.c.

References appletevent, bigstring, hnode, opfindhead(), opmoveto(), pushchar(), setemptystring, and tyEventRecord::when.

Referenced by keystroke().

Here is the call graph for this function:

static ostypetostring OSType  type,
bigstring  bs
[static]
 

Definition at line 177 of file outlineland.c.

References moveleft().

Here is the call graph for this function:

static boolean packrecord Handle hpacked  )  [static]
 

Definition at line 650 of file outlineland.c.

References oppack().

Referenced by main().

Here is the call graph for this function:

static boolean paste Handle  hpacked  )  [static]
 

Definition at line 823 of file outlineland.c.

References disposehandle(), nil, oppaste(), popfromhandle(), shellgetscrap(), and shellsetscrap().

Referenced by main().

Here is the call graph for this function:

static boolean pastetext Handle  htext  )  [static]
 

Definition at line 871 of file outlineland.c.

References disposehandle(), nil, oppaste(), shelldisposescrap(), shellsetscrap(), and textscraptype.

Referenced by main().

Here is the call graph for this function:

static boolean postcollapse hdlheadrecord  hnode  )  [static]
 

Definition at line 132 of file outlineland.c.

References hnode, killundo(), opdeletesubs(), opendinternalchange(), and opstartinternalchange().

Referenced by setupoutline().

Here is the call graph for this function:

static boolean preexpand hdlheadrecord  hnode,
short  ctlevels
[static]
 

Definition at line 112 of file outlineland.c.

References hnode, opendinternalchange(), opstartinternalchange(), and outlinedata.

Referenced by setupoutline().

Here is the call graph for this function:

static boolean selectall void   )  [static]
 

Definition at line 734 of file outlineland.c.

References opselectall().

Referenced by main().

Here is the call graph for this function:

static boolean setfont void   )  [static]
 

Definition at line 754 of file outlineland.c.

References opsetfont(), pushundoaction(), and undoformatstring.

Referenced by main().

Here is the call graph for this function:

static boolean setfontsize void   )  [static]
 

Definition at line 764 of file outlineland.c.

References opsetsize(), pushundoaction(), and undoformatstring.

Referenced by main().

Here is the call graph for this function:

static boolean setglobals void   )  [static]
 

Definition at line 92 of file outlineland.c.

References app, tyappletrecord::appdata, tyappletrecord::appwindow, nil, opeditsetglobals(), outlinedata, outlinewindow, outlinewindowinfo, and wpsetglobals().

Referenced by main().

Here is the call graph for this function:

static boolean setscrollbars void   )  [static]
 

Definition at line 324 of file outlineland.c.

References app, tyappletrecord::appwindow, outlinedata, and setscrollbarinfo().

Referenced by setupoutline().

Here is the call graph for this function:

static boolean setselectioninfo void   )  [static]
 

Definition at line 748 of file outlineland.c.

References opsetselectioninfo().

Referenced by main().

Here is the call graph for this function:

static boolean setstyle void   )  [static]
 

Definition at line 774 of file outlineland.c.

Referenced by main().

static void setupoutline void   )  [static]
 

Definition at line 335 of file outlineland.c.

References drawline(), tyoutlinerecord::flwindowopen, getlinedisplayinfo(), hasdynamicsubs(), linedeleted(), lineinserted(), mouseinline(), outlinedata, postcollapse(), preexpand(), setscrollbars(), and textchanged().

Referenced by newrecord(), and unpackrecord().

Here is the call graph for this function:

static boolean textchanged hdlheadrecord  hnode,
bigstring  bsorig
[static]
 

Definition at line 306 of file outlineland.c.

References hnode.

Referenced by setupoutline().

static boolean tryhandlefastverb void   )  [static]
 

Definition at line 882 of file outlineland.c.

References app, tyappletrecord::appwindow, handlefastverb(), and nil.

Referenced by main().

Here is the call graph for this function:

static boolean tryhandleverb void   )  [static]
 

Definition at line 891 of file outlineland.c.

References app, tyappletrecord::appwindow, and nil.

Referenced by main().

static boolean unpackrecord Handle  hpacked  )  [static]
 

Definition at line 656 of file outlineland.c.

References app, tyappletrecord::appdata, tyappletrecord::appwindow, nil, opdisposeoutline(), opunpack(), outlinedata, setupoutline(), and tyoutlinerecord::windowrect.

Referenced by main().

Here is the call graph for this function:

static boolean update void   )  [static]
 

Definition at line 453 of file outlineland.c.

References opupdate().

Referenced by main().

Here is the call graph for this function:

static boolean windowresize void   )  [static]
 

Definition at line 710 of file outlineland.c.

References app, tyappletrecord::appwindow, and opresize().

Referenced by main().

Here is the call graph for this function:


Variable Documentation

enum { ... } tyfindericon
 


Generated on Fri Jun 9 22:23:59 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6