op.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "quickdraw.h"
#include "scrap.h"
#include "strings.h"
#include "smallicon.h"
#include "cursor.h"
#include "kb.h"
#include "ops.h"
#include "mouse.h"
#include "sounds.h"
#include "timedate.h"
#include "shell.h"
#include "shellundo.h"
#include "shell.rsrc.h"
#include "lang.h"
#include "langinternal.h"
#include "op.h"
#include "opinternal.h"
#include "opicons.h"
#include "oplineheight.h"
#include "opdraggingmove.h"
#include "scripts.h"
#include "tablestructure.h"
#include "frontierwindows.h"

Include dependency graph for op.c:

Go to the source code of this file.

Functions

static boolean opcantedittext (hdlheadrecord hnode)
static boolean opcanteditcursor (void)
void opdirtyoutline (void)
void opdirtyview (void)
boolean opistextmode (void)
boolean ophaslinkedtext (hdlheadrecord hnode)
void opvisibarcursor (void)
void opschedulevisi (void)
static void opcheckvisi (void)
void oppoststylechange (void)
static boolean undosetfont (Handle hdata, boolean flundo)
boolean opsetfont (short fontnum)
static boolean undosetsize (Handle hdata, boolean flundo)
boolean opsetsize (short fontsize)
boolean opsetselectioninfo (void)
boolean opsettextmode (boolean fltextmode)
void optoggletextmode (void)
static boolean opfindoffsetvisit (hdlheadrecord hnode, ptrvoid refcon)
boolean opsetscrap (hdlheadrecord hnode)
boolean opgetscrap (hdlheadrecord *hnode, boolean *fltempscrap)
static void opmarklevel (hdlheadrecord hnode)
static boolean opfindclickvisit (hdlheadrecord hnode, ptrvoid hclicked)
static boolean opancestormarked (hdlheadrecord hnode)
static boolean opshiftclickvisit (hdlheadrecord hnode, ptrvoid hclicked)
static void opshiftclick (hdlheadrecord hnode, boolean flmarklevel)
static boolean opcmdclick (hdlheadrecord hnode)
void opresize (Rect r)
boolean opdefaultadjustcursor (hdlheadrecord hnode, Point pt, const Rect *textrect)
boolean opsetcursor (Point pt)
boolean opmousedown (Point pt, tyclickflags flags)
static boolean opcmdmove (tydirection dir)
boolean opmotionkey (tydirection dir, long units, boolean flextendselection)
static void opreturnkey (void)
static boolean openterkey (void)
static boolean opmovetovisit (hdlheadrecord hnode, ptrvoid refcon)
boolean opkeystroke (void)
boolean opcmdkeyfilter (char chkb)
boolean opselectall (void)
void opgetcursorinfo (long *row, short *col)
void opsetcursorinfo (long row, short col)
boolean opcloseoutline (void)
boolean opopenoutline (void)
static void opcheckreopen (void)
void opidle (void)
void opactivate (boolean flactivate)

Variables

WindowPtr outlinewindow
hdloutlinerecord outlinedata
hdlwindowinfo outlinewindowinfo
tyopuserprefs opprefs = { true, false }
static boolean flvisiforiconclick = false
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
scanstate


Function Documentation

void opactivate boolean  flactivate  ) 
 

Definition at line 1778 of file op.c.

References opanymarked(), opcheckreopen(), opcheckvisi(), opdocursor(), opeditactivate(), opresetscrollbars(), and opsmashdisplay().

Here is the call graph for this function:

static boolean opancestormarked hdlheadrecord  hnode  )  [static]
 

Definition at line 554 of file op.c.

References hnode, and opchaseleft().

Referenced by opshiftclickvisit().

Here is the call graph for this function:

static boolean opcanteditcursor void   )  [static]
 

Definition at line 95 of file op.c.

References opcantedittext().

Referenced by opkeystroke(), and opsettextmode().

Here is the call graph for this function:

static boolean opcantedittext hdlheadrecord  hnode  )  [static]
 

Definition at line 84 of file op.c.

References hnode, and outlinedata.

Referenced by opcanteditcursor(), and opsetcursor().

static void opcheckreopen void   )  [static]
 

Definition at line 1750 of file op.c.

References opopenoutline().

Referenced by opactivate().

Here is the call graph for this function:

static void opcheckvisi void   )  [static]
 

Definition at line 176 of file op.c.

References opvisibarcursor(), and outlinedata.

Referenced by opactivate(), and opidle().

Here is the call graph for this function:

boolean opcloseoutline void   ) 
 

Definition at line 1722 of file op.c.

References opsaveeditbuffer().

Referenced by browserclose(), ccwindowpreclose(), menuverbclose(), meunloadscript(), opverbclose(), and tableverbclose().

Here is the call graph for this function:

static boolean opcmdclick hdlheadrecord  hnode  )  [static]
 

Definition at line 625 of file op.c.

References disposehandle(), hnode, mousedoubleclick(), opanymarked(), opgetmark(), opinvalscreenmap(), opnewscreenmap(), and opsetmark().

Here is the call graph for this function:

boolean opcmdkeyfilter char  chkb  ) 
 

Definition at line 1631 of file op.c.

References chbacktab, chtab, down, left, opcmdmove(), opexpandtoggle(), right, up, and uppercasechar().

Here is the call graph for this function:

static boolean opcmdmove tydirection  dir  )  [static]
 

Definition at line 969 of file op.c.

References opreorgcursor(), and shellouch().

Referenced by opcmdkeyfilter(), and opkeystroke().

Here is the call graph for this function:

boolean opdefaultadjustcursor hdlheadrecord  hnode,
Point  pt,
const Rect textrect
 

Definition at line 727 of file op.c.

References cursorisarrow, cursorisibeam, hnode, opgetlinewidth(), opistextmode(), pointinrect(), pt, r, setcursortype(), textleftslop, and textrightslop.

Referenced by opinitcallbacks().

Here is the call graph for this function:

void opdirtyoutline void   ) 
 

Definition at line 101 of file op.c.

References nil, outlinedata, outlinewindow, outlinewindowinfo, timenow(), and windowsetchanges().

Referenced by addmenucommandverb(), mesetcmdkey(), opafterstrucchange(), opemptyrefcon(), opfunctionvalue(), opinsertheadline(), oploadeditbuffer(), oppophoist(), oppoststylechange(), oppushhoist(), opsetbitverb(), opsetheadtext(), opsetrefconverb(), and optogglebreakpoint().

Here is the call graph for this function:

void opdirtyview void   ) 
 

Definition at line 126 of file op.c.

Referenced by opcollapse(), opexpand(), opexpandto(), opfunctionvalue(), opkeystroke(), opmotionkey(), opmousedown(), opmoveto(), and opscroll().

static boolean openterkey void   )  [static]
 

Definition at line 1125 of file op.c.

References optoggletextmode().

Referenced by opkeystroke().

Here is the call graph for this function:

static boolean opfindclickvisit hdlheadrecord  hnode,
ptrvoid  hclicked
[static]
 

Definition at line 543 of file op.c.

References hnode.

Referenced by opshiftclick().

static boolean opfindoffsetvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 356 of file op.c.

References bigstring, getheadstring, hnode, opnestedincomment(), scanstate, setemptystring, and stringlength.

Here is the call graph for this function:

void opgetcursorinfo long row,
short col
 

Definition at line 1696 of file op.c.

References opgetscreenline().

Here is the call graph for this function:

boolean opgetscrap hdlheadrecord hnode,
boolean fltempscrap
 

Definition at line 486 of file op.c.

References disposehandle(), fl, hnode, nil, opdisposeoutline(), optexttooutline(), outlinedata, shellconvertscrap(), and textscraptype.

Referenced by oppaste().

Here is the call graph for this function:

boolean ophaslinkedtext hdlheadrecord  hnode  ) 
 

Definition at line 144 of file op.c.

References hnode.

void opidle void   ) 
 

Definition at line 1767 of file op.c.

References opcheckvisi(), opeditidle(), and opinvaldirtynodes().

Here is the call graph for this function:

boolean opistextmode void   ) 
 

Definition at line 138 of file op.c.

Referenced by opdefaultadjustcursor(), opselectall(), optoggletextmode(), and tableverbkeystroke().

boolean opkeystroke void   ) 
 

Definition at line 1293 of file op.c.

References arrowkey(), chbackspace, chdelete, chdownarrow, chenter, tykeystrokerecord::chkb, chreturn, chtab, chuparrow, tykeystrokerecord::ctmodifiers, down, flatdown, flatup, tykeystrokerecord::flcmdkey, tyopuserprefs::flflatcursorkeys, tykeystrokerecord::flkeypad, tykeystrokerecord::floptionkey, tykeystrokerecord::flshiftkey, tyopuserprefs::fltabkeyreorg, idopcollapsescript, idopexpandscript, infinity, keyboardstatus, tykeystrokerecord::keydirection, langopruncallbackscripts(), left, longinfinity, nil, nodirection, opanymarked(), opcanteditcursor(), opclear(), opclearallmarks(), opcmdmove(), opcollapse(), opdirtyview(), opeditcango(), opeditkey(), opeditselectall(), openabledisplay(), openterkey(), opexpand(), opmotionkey(), opmovetovisit(), oppositdirection(), opprefs, opreturnkey(), opscroll(), opsettextmode(), opupdatenow(), opvisitmarked(), outlinedata, outlineistable, right, shellfilterscrollkey(), shellouch(), and up.

Here is the call graph for this function:

static void opmarklevel hdlheadrecord  hnode  )  [static]
 

Definition at line 529 of file op.c.

References hnode, op1stsibling(), opchasedown(), and opsetmark().

Referenced by opselectall(), and opshiftclick().

Here is the call graph for this function:

boolean opmotionkey tydirection  dir,
long  units,
boolean  flextendselection
 

Definition at line 982 of file op.c.

References down, flatdown, flatup, tyoutlinerecord::hbarcursor, infinity, keyboardstatus, tykeystrokerecord::keydirection, left, opclearallmarks(), opdirtyview(), opeditgetselpoint(), opeditsetselection(), opeditsetselpoint(), opgetmark(), opinvalnode(), opmovecursor(), opmoveto(), opsetmark(), outlinedata, right, and up.

Referenced by opfunctionvalue(), opkeystroke(), opsetscrollstateverb(), opxmltooutlinevisit(), tablefunctionvalue(), and tableverbkeystroke().

Here is the call graph for this function:

boolean opmousedown Point  pt,
tyclickflags  flags
 

Definition at line 790 of file op.c.

References tykeystrokerecord::ctmodifiers, tykeystrokerecord::flcontrolkey, tyoutlinerecord::hbarcursor, i, keyboardstatus, opclearallmarks(), opdirtyview(), openabledisplay(), opgetcurrentscreenlines(), opgetlinerect(), oprmousedown(), outlinedata, pointinrect(), pt, and r.

Here is the call graph for this function:

static boolean opmovetovisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 1133 of file op.c.

References hnode.

Referenced by opkeystroke().

boolean opopenoutline void   ) 
 

Definition at line 1737 of file op.c.

References oprestoreeditbuffer().

Referenced by opcheckreopen().

Here is the call graph for this function:

void oppoststylechange void   ) 
 

Definition at line 192 of file op.c.

References tyoutlinerecord::flrecentlychanged, opdirtyoutline(), operasedisplay(), opgetscrollbarinfo(), opredrawscrollbars(), oprestoreeditbuffer(), oprestorescrollposition(), opsaveeditbuffer(), opsetdisplaydefaults(), opupdatenow(), and outlinedata.

Referenced by claysmashoutlinefields(), opsetfont(), and opsetsize().

Here is the call graph for this function:

void opresize Rect  r  ) 
 

Definition at line 693 of file op.c.

References insetrect(), NULL, oppostfontchange(), opresetscrollbars(), opsetdisplaydefaults(), opvalidate(), and outlinedata.

Referenced by browserresize(), mesetalloutlinerects(), opprint(), opverbresize(), scriptresize(), tableresetformatsrects(), tableverbresize(), and windowresize().

Here is the call graph for this function:

static void opreturnkey void   )  [static]
 

Definition at line 1073 of file op.c.

References down, flcomment, tykeystrokerecord::flshiftkey, idopinsertscript, idopreturnkeyscript, keyboardstatus, langopruncallbackscripts(), newemptyhandle(), opdocursor(), opinsertheadline(), opsubheadsexpanded(), ouch(), outlinedata, and right.

Referenced by opkeystroke().

Here is the call graph for this function:

void opschedulevisi void   ) 
 

Definition at line 161 of file op.c.

References flvisiforiconclick, and getmousedoubleclicktime().

Referenced by opeditkey(), opeditsetselpoint(), opflatfind(), opmoveto(), oppostedit(), opsettextmode(), and scriptsetdata().

Here is the call graph for this function:

boolean opselectall void   ) 
 

Definition at line 1674 of file op.c.

References opeditselectall(), opinvalscreenmap(), opistextmode(), opmarklevel(), opnewscreenmap(), and opsettextmode().

Here is the call graph for this function:

boolean opsetcursor Point  pt  ) 
 

Definition at line 752 of file op.c.

References cursorisarrow, hnode, nil, opcantedittext(), opdisplayenabled(), opgetnoderect(), opgettextrect(), oppointnode(), pt, and setcursortype().

Here is the call graph for this function:

void opsetcursorinfo long  row,
short  col
 

Definition at line 1708 of file op.c.

References flatdown, and oprepeatedbump().

Here is the call graph for this function:

boolean opsetfont short  fontnum  ) 
 

Definition at line 241 of file op.c.

References oppoststylechange(), outlinedata, pushundostep(), and undosetfont().

Referenced by browsersetfont(), menuverbsetfont(), opverbsetfont(), scriptsetfont(), setfont(), tableverbsetfont(), and undosetfont().

Here is the call graph for this function:

boolean opsetscrap hdlheadrecord  hnode  ) 
 

Definition at line 437 of file op.c.

References tyoutlinerecord::copyrefconcallback, hnode, newoutlinerecord(), nil, opcopyformatting(), opsetctexpanded(), opsetsummit(), and outlinedata.

Referenced by opcopy().

Here is the call graph for this function:

boolean opsetselectioninfo void   ) 
 

Definition at line 288 of file op.c.

References clearbytes().

Here is the call graph for this function:

boolean opsetsize short  fontsize  ) 
 

Definition at line 271 of file op.c.

References oppoststylechange(), outlinedata, pushundostep(), and undosetsize().

Referenced by browsersetsize(), menuverbsetsize(), opverbsetsize(), scriptsetsize(), setfontsize(), tableverbsetsize(), and undosetsize().

Here is the call graph for this function:

boolean opsettextmode boolean  fltextmode  ) 
 

Definition at line 308 of file op.c.

References tyoutlinerecord::flcursorneedsdisplay, opcanteditcursor(), opclearallmarks(), opeditresetselpoint(), opmoveto(), opschedulevisi(), and outlinedata.

Referenced by browserstart(), mecmdkeypopupselect(), mecontinuesearch(), menustart(), mescriptitemhit(), opafterundo(), opeditsetundoglobals(), opflatfind(), opfunctionvalue(), opinsertstructure(), opkeystroke(), oppaste(), opselectall(), opsetcursorlinetext(), opsetexpansionstateverb(), opsetlinetextverb(), opsetscrollstateverb(), opstart(), optoggletextmode(), scriptbutton(), scriptmousedown(), scriptstart(), tabledive(), tablefunctionvalue(), tablepastevalue(), tablestart(), tablesymbolzoomvisit(), tableverbkeystroke(), and tablezoomfound().

Here is the call graph for this function:

static void opshiftclick hdlheadrecord  hnode,
boolean  flmarklevel
[static]
 

Definition at line 594 of file op.c.

References flatdown, flatup, hnode, opanymarked(), opbumpvisit(), opclearallmarks(), opdisabledisplay(), openabledisplay(), opfindclickvisit(), opinvalscreenmap(), opmarklevel(), opnewscreenmap(), and opshiftclickvisit().

Here is the call graph for this function:

static boolean opshiftclickvisit hdlheadrecord  hnode,
ptrvoid  hclicked
[static]
 

Definition at line 570 of file op.c.

References hnode, opancestormarked(), and opclearmarks().

Referenced by opshiftclick().

Here is the call graph for this function:

void optoggletextmode void   ) 
 

Definition at line 342 of file op.c.

References opistextmode(), and opsettextmode().

Referenced by openterkey().

Here is the call graph for this function:

void opvisibarcursor void   ) 
 

Definition at line 150 of file op.c.

References opvisinode().

Referenced by meexpandto(), opcheckvisi(), opinsertheadline(), oppostedit(), opsetdisplayverb(), tablepopupkinddialog(), and tableupdateoutlinesort().

Here is the call graph for this function:

static boolean undosetfont Handle  hdata,
boolean  flundo
[static]
 

Definition at line 232 of file op.c.

References opsetfont().

Referenced by opsetfont().

Here is the call graph for this function:

static boolean undosetsize Handle  hdata,
boolean  flundo
[static]
 

Definition at line 262 of file op.c.

References opsetsize().

Referenced by opsetsize().

Here is the call graph for this function:


Variable Documentation

boolean flvisiforiconclick = false [static]
 

Definition at line 79 of file op.c.

Referenced by opschedulevisi().

hdlheadrecord hnode
 

Definition at line 352 of file op.c.

long offset
 

Definition at line 350 of file op.c.

tyopuserprefs opprefs = { true, false }
 

Definition at line 77 of file op.c.

Referenced by main(), opfunctionvalue(), and opkeystroke().

hdloutlinerecord outlinedata
 

Definition at line 71 of file op.c.

Referenced by browserclose(), browserpostcollapse(), browserpreexpand(), browsersetglobals(), browsersortfolder(), copythreadglobals(), dockmenugetaddresscallback(), getdownpagescrolllines(), getuppagescrolllines(), initializetableoutline(), langipcshowmenunode(), langopruncallbackscripts(), medrawseparatorline(), meendprint(), melocatemenubarnode(), menubarchanged(), mepackmenustructure(), mereduceformula(), meresetwindowrects(), mesavemenustructure(), mescriptfontchangeroutine(), mesearchrefconroutine(), mesetglobals(), mesetscrollbarsroutine(), meshownode(), mouseinline(), newrecord(), opafterstrucchange(), opanymarked(), opbeginprint(), opbuttonstatus(), opcantedittext(), opcheckvisi(), opchoosesafenodes(), opclearallmarks(), opcollapse(), opcopy(), opcopyheadrecord(), opdefaultdrawicon(), opdefaultdrawtext(), opdefaultgetedittextrect(), opdefaultgeticonrect(), opdefaultgetlineheight(), opdefaultgetlinewidth(), opdefaultgettextrect(), opdefaultpushstyle(), opdefaultsetscrollbars(), opdeletelinecallback(), opdeletenode(), opdeletesubvisit(), opdemote(), opdepositup(), opdirtyoutline(), opdisabledisplay(), opdisplayenabled(), opdisposeoutline(), opdocursor(), opdrawicon(), opdrawline(), opeditdrawtext(), opeditgetundoglobals(), opeditingtext(), opeditmeasuretext(), opeditrecalcheadline(), opeditsetglobals(), opeditsetselpoint(), opeditsetundoglobals(), openabledisplay(), opendinternalchange(), opendprint(), opexpand(), opexpandto(), opexpandupdate(), opflatfind(), opfunctionvalue(), opgetcurrentscreenlines(), opgetexpansionstateverb(), opgetheadicon(), opgetlastvisiblenode(), opgetline1top(), opgetlinerect(), opgetlineselected(), opgetlinestoscrolldownforvisi(), opgetlinestoscrollupforvisi(), opgetmaxwidthvisit(), opgetnodelinecount(), opgetoutinesize(), opgetscrap(), opgetscreenline(), opgetscrollbarinfo(), opgetscrollstateverb(), opgettextbufferrect(), ophoistdisplay(), ophorizscrollrecord(), opinserthandle(), opinsertheadline(), opinsertlinecallback(), opinsertstructure(), opinternalchange(), opinvalscreenmap(), opkeystroke(), oploadeditbuffer(), opmakegap(), opmenuroutine(), opmotionkey(), opmousedown(), opmoveoutlinedown(), opmoveoutlineleft(), opmoveoutlineright(), opmoveto(), opmovetohotspot(), opneedvisiscroll(), opnewscreenmap(), opnewsummit(), opnodeindent(), opnodeinoutline(), opoutermostsummit(), oppack(), oppaste(), oppointlevel(), oppopallhoists(), oppopglobals(), oppophoist(), oppopoutline(), oppopupruncallbackscript(), oppostedit(), oppostfontchange(), oppoststylechange(), opprint(), oppromote(), oppushglobals(), oppushhoist(), oppushoutline(), oppushundo(), oprefreshdisplay(), opreleaserefconvisit(), opreleasevisit(), opreorgcursor(), opresize(), oprestoreeditbuffer(), oprestorehoists(), oprestorescrollposition(), opreturnkey(), oprmousedown(), opsaveeditbuffer(), opscroll(), opscrollfordrag(), opsetdisplayenabled(), opsetdisplayverb(), opseteditbufferrect(), opsetexpansionstateverb(), opsetfont(), opsetline1(), opsetoutline(), opsetscrap(), opsetscrollpositiontoline1(), opsetscrollstateverb(), opsetsize(), opsettextmode(), opstart(), opstartinternalchange(), opsumprevlineheights(), optrytextcommand(), opundonewsummit(), opunloadeditbuffer(), opunpackversion2(), opupdate(), opupdateafterresize(), opupdatehotspot(), opvalidatecanmove(), opverbclose(), opverbgetvariable(), opverbsetscrollbarsroutine(), opvertscrollrecord(), opvisitallvisit(), opvisitmarked(), opwindisposerecord(), opwinloadfile(), opwinnewrecord(), opwriteeditbuffer(), opxmlsetwindowverticalscrollstate(), opxmltooutlinevisit(), outscrapvisit(), preexpand(), scriptbuttonenabled(), scriptbuttonstatus(), scriptclose(), scriptcmdclick(), scriptdirtyhook(), scripthascleancode(), scriptinruntimestack(), scriptkeystroke(), scriptlocalsbutton(), scriptnewprocess(), scriptverifycompilation(), setglobals(), setscrollbars(), setupoutline(), shellgetdatabase(), swapinthreadglobals(), tabledrivesymbolchange(), tableendprint(), tablefindcolumnguide(), tablegetoutlinesize(), tableoutlineneedssaving(), tablepackformats(), tablesetselectioninfo(), tablesymbolchangedwindowvisit(), tabletitleclick(), tableupdate(), tableupdategridlines(), tableverbactivate(), tableverbclose(), tableverbcmdkeyfilter(), tableverbidle(), tableverbsetglobals(), unpackrecord(), wpinserthandle(), and wpinserttexthandle().

WindowPtr outlinewindow
 

Definition at line 69 of file op.c.

Referenced by browsersetglobals(), mesetglobals(), opdirtyoutline(), opeditsetglobals(), opmenuroutine(), opstart(), scriptbutton(), scriptdirtyhook(), scriptkeystroke(), scriptnewprocess(), scriptstart(), scripttitleclick(), setglobals(), and tableverbsetglobals().

hdlwindowinfo outlinewindowinfo
 

Definition at line 73 of file op.c.

Referenced by browsersetglobals(), mesetglobals(), newrecord(), opdefaultsetscrollbars(), opdirtyoutline(), opeditsetglobals(), opfunctionvalue(), opstart(), opverbcheckwindowrect(), opverbsetscrollbarsroutine(), opxmlsetwindowverticalscrollstate(), scriptgetpopuprect(), scriptstart(), setglobals(), and tableverbsetglobals().

struct { ... } scanstate [static]
 

Referenced by opfindoffsetvisit().


Generated on Thu Jun 8 02:16:29 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6