menupack.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "font.h"
#include "cursor.h"
#include "quickdraw.h"
#include "scrap.h"
#include "frontierwindows.h"
#include "op.h"
#include "opinternal.h"
#include "menueditor.h"
#include "menuinternal.h"
#include "byteorder.h"

Include dependency graph for menupack.c:

Go to the source code of this file.

Data Structures

struct  typackinfo

Typedefs

typedef typackinfoptrpackinfo

Functions

boolean megetmenuiteminfo (hdlheadrecord hnode, tymenuiteminfo *item)
boolean mesetmenuiteminfo (hdlheadrecord hnode, const tymenuiteminfo *item)
boolean mecopyrefconroutine (hdlheadrecord hsource, hdlheadrecord hdest)
static boolean headleveloffsetvisit (hdlheadrecord hnode, ptrvoid refcon)
boolean metextualizerefconroutine (hdlheadrecord hnode, Handle htext)
boolean mereleaserefconroutine (hdlheadrecord hnode, boolean fldisk)
static boolean mesavescriptvisit (hdlheadrecord hnode, ptrvoid refcon)
static boolean mesaveasscriptvisit (hdlheadrecord hnode, ptrvoid refcon)
static boolean mepackscriptvisit (hdlheadrecord hnode, ptrvoid refcon)
static boolean mesavemenustructure (tysavedmenuinfo *info, dbaddress *adr)
boolean mepackmenustructure (tysavedmenuinfo *info, Handle *hpacked)
boolean mesavemenurecord (hdlmenurecord hmenurecord, boolean flpreservelinks, boolean flmemory, dbaddress *adr, Handle *hpacked)
boolean mesetupmenurecord (tysavedmenuinfo *info, hdloutlinerecord houtline, hdlmenurecord *hmenurecord)
static boolean meunpackscriptvisit (hdlheadrecord hnode, ptrvoid refcon)
boolean meunpackmenustructure (Handle hpacked, hdlmenurecord *hmenurecord)
boolean meloadmenurecord (dbaddress adr, hdlmenurecord *hmenurecord)
static void medisposescrap (hdloutlinerecord houtline)
static boolean meexportscrap (hdloutlinerecord houtline, tyscraptype totype, Handle *hexport, boolean *fltempscrap)
boolean mesetscraproutine (hdloutlinerecord houtline)
boolean megetscraproutine (hdloutlinerecord *houtline, boolean *fltempscrap)
boolean mescraphook (Handle hscrap)


Typedef Documentation

typedef struct typackinfo * ptrpackinfo
 


Function Documentation

static boolean headleveloffsetvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 123 of file menupack.c.

Referenced by metextualizerefconroutine().

boolean mecopyrefconroutine hdlheadrecord  hsource,
hdlheadrecord  hdest
 

Definition at line 66 of file menupack.c.

References tylinkeditem::adrlink, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetmenuiteminfo(), meloadscriptoutline(), mesetmenuiteminfo(), nil, nildbaddress, and opcopyoutlinerecord().

Referenced by mesavemenurecord(), and mesetcallbacks().

Here is the call graph for this function:

static void medisposescrap hdloutlinerecord  houtline  )  [static]
 

Definition at line 731 of file menupack.c.

References opdisposeoutline().

Referenced by mesetscraproutine().

Here is the call graph for this function:

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

Definition at line 737 of file menupack.c.

References clearbytes(), fl, info, menuscraptype, mepackmenustructure(), opoutlinetonewtextscrap(), oppopoutline(), oppushoutline(), opscraptype, and textscraptype.

Referenced by mesetscraproutine().

Here is the call graph for this function:

boolean megetmenuiteminfo hdlheadrecord  hnode,
tymenuiteminfo item
 

Definition at line 45 of file menupack.c.

References hnode, and opgetrefcon().

Referenced by attachscript(), meclearhandlevisit(), mecopyrefconroutine(), mefindusedblocksvisit(), megetcmdkey(), megetscriptaddress(), megetscriptoutline(), mehaslinkedtext(), menugetcommandkeyverb(), mepackscriptvisit(), mereleaserefconroutine(), mesaveasscriptvisit(), mesavescriptvisit(), mesetcmdkey(), mesetscriptoutline(), mesomethingdirtyvisit(), and meunpackscriptvisit().

Here is the call graph for this function:

boolean megetscraproutine hdloutlinerecord houtline,
boolean fltempscrap
 

Definition at line 782 of file menupack.c.

References menuscraptype, opscraptype, shellconvertscrap(), and shellgetscrap().

Referenced by mesetcallbacks().

Here is the call graph for this function:

boolean meloadmenurecord dbaddress  adr,
hdlmenurecord hmenurecord
 

Definition at line 709 of file menupack.c.

References dbreference(), info, meloadoutline(), mesetupmenurecord(), and opdisposeoutline().

Referenced by menuverbinmemory().

Here is the call graph for this function:

boolean mepackmenustructure tysavedmenuinfo info,
Handle hpacked
 

Definition at line 377 of file menupack.c.

References assert, disposehandle(), fl, typackinfo::hpackedscripts, info, mepackscriptvisit(), mergehandles(), newemptyhandle(), newfilledhandle(), nil, opoutermostsummit(), oppack(), opsiblingvisiter(), opvalidate(), and outlinedata.

Referenced by meexportscrap(), and mesavemenurecord().

Here is the call graph for this function:

static boolean mepackscriptvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 300 of file menupack.c.

References tylinkeditem::adrlink, dbrefhandle(), disposehandle(), fl, h, hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetmenuiteminfo(), nil, nildbaddress, oppackoutline(), and pushhandle().

Referenced by mepackmenustructure().

Here is the call graph for this function:

boolean mereleaserefconroutine hdlheadrecord  hnode,
boolean  fldisk
 

Definition at line 177 of file menupack.c.

References tylinkeditem::adrlink, dbpopdatabase(), dbpushdatabase(), dbpushreleasestack(), hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetdatabase(), megetmenuiteminfo(), opdisposeoutline(), and outlinevaluetype.

Referenced by attachscript(), mesavemenurecord(), and mesetcallbacks().

Here is the call graph for this function:

static boolean mesaveasscriptvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 255 of file menupack.c.

References tylinkeditem::adrlink, dbcopy(), flconvertingolddatabase, h, hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetmenuiteminfo(), meloadscriptoutline(), menudata, mesaveoutline(), mesetmenuiteminfo(), nil, opdisposeoutline(), and rollbeachball().

Referenced by mesavemenustructure().

Here is the call graph for this function:

boolean mesavemenurecord hdlmenurecord  hmenurecord,
boolean  flpreservelinks,
boolean  flmemory,
dbaddress adr,
Handle hpacked
 

Definition at line 424 of file menupack.c.

References clearbytes(), dbpopdatabase(), dbpushdatabase(), diskgetfontname(), fl, fldatabasesaveas, getglobalwindowrect(), info, loword, mecopyrefconroutine(), megetdatabase(), menudata, tymenurecord::menuoutline, mepackmenustructure(), mereleaserefconroutine(), mesavemenustructure(), nil, opcopyoutlinerecord(), opcopyrefconroutine(), opdefaultreleaserefconroutine(), opdisposeoutline(), opgetnodeline(), oppopallhoists(), oppopoutline(), oppushoutline(), oprestoreeditbuffer(), oprestorehoists(), opsaveeditbuffer(), opsetoutline(), opvalidate(), r, and recttodiskrect().

Referenced by menuverbmemorypack(), and menuverbpack().

Here is the call graph for this function:

static boolean mesavemenustructure tysavedmenuinfo info,
dbaddress adr
[static]
 

Definition at line 339 of file menupack.c.

References assert, dbassign(), fl, fldatabasesaveas, info, mesaveasscriptvisit(), mesaveoutline(), mesavescriptvisit(), nil, opoutermostsummit(), opsiblingvisiter(), opvalidate(), and outlinedata.

Referenced by mesavemenurecord().

Here is the call graph for this function:

static boolean mesavescriptvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 211 of file menupack.c.

References tylinkeditem::adrlink, assert, h, hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetmenuiteminfo(), menudata, mesaveoutline(), mesetmenuiteminfo(), nil, opdisposeoutline(), rollbeachball(), and windowsetchanges().

Referenced by mesavemenustructure().

Here is the call graph for this function:

boolean mescraphook Handle  hscrap  ) 
 

Definition at line 803 of file menupack.c.

References getscrap(), medisposemenurecord(), menuscraptype, mesetscraproutine(), meunpackmenustructure(), and nil.

Referenced by menustart().

Here is the call graph for this function:

boolean mesetmenuiteminfo hdlheadrecord  hnode,
const tymenuiteminfo item
 

Definition at line 56 of file menupack.c.

References hnode, info, and opsetrefcon().

Referenced by attachscript(), meclearhandlevisit(), mecopyrefconroutine(), mesaveasscriptvisit(), mesavescriptvisit(), mesetcmdkey(), mesetscriptoutline(), and meunpackscriptvisit().

Here is the call graph for this function:

boolean mesetscraproutine hdloutlinerecord  houtline  ) 
 

Definition at line 774 of file menupack.c.

References medisposescrap(), meexportscrap(), menuscraptype, and shellsetscrap().

Referenced by mescraphook(), and mesetcallbacks().

Here is the call graph for this function:

boolean mesetupmenurecord tysavedmenuinfo info,
hdloutlinerecord  houtline,
hdlmenurecord hmenurecord
 

Definition at line 561 of file menupack.c.

References tymenurecord::adroutline, diskgetfontnum(), diskrecttorect(), info, long, menuoutlineitem, mesetcallbacks(), newclearhandle(), and tyoutlinerecord::outlinerefcon.

Referenced by meloadmenurecord(), and meunpackmenustructure().

Here is the call graph for this function:

boolean metextualizerefconroutine hdlheadrecord  hnode,
Handle  htext
 

Definition at line 133 of file menupack.c.

References fl, tyheadrecord::headlevel, headleveloffsetvisit(), hnode, meloadscriptoutline(), nil, opdisposeoutline(), opoutlinetotextscrap(), and opsiblingvisiter().

Referenced by mesetcallbacks().

Here is the call graph for this function:

boolean meunpackmenustructure Handle  hpacked,
hdlmenurecord hmenurecord
 

Definition at line 643 of file menupack.c.

References assert, disposehandle(), fl, gethandlesize(), typackinfo::hpackedscripts, info, typackinfo::ixpackedscripts, loadfromhandle(), mesetupmenurecord(), meunpackscriptvisit(), nildbaddress, opdisposeoutline(), opoutermostsummit(), oppopoutline(), oppushoutline(), opsiblingvisiter(), opunpack(), testheapspace(), and unmergehandles().

Referenced by menuverbmemoryunpack(), and mescraphook().

Here is the call graph for this function:

static boolean meunpackscriptvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 613 of file menupack.c.

References tylinkeditem::adrlink, h, hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetmenuiteminfo(), mesetmenuiteminfo(), nildbaddress, and opunpack().

Referenced by meunpackmenustructure().

Here is the call graph for this function:


Generated on Wed Jun 7 17:05:36 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6