menueditor.c File Reference

#include "frontier.h"
#include "standard.h"
#include "mac.h"
#include "memory.h"
#include "strings.h"
#include "bitmaps.h"
#include "quickdraw.h"
#include "font.h"
#include "smallicon.h"
#include "scrollbar.h"
#include "icon.h"
#include "kb.h"
#include "ops.h"
#include "cursor.h"
#include "menu.h"
#include "popup.h"
#include "dialogs.h"
#include "frontierwindows.h"
#include "windowlayout.h"
#include "zoom.h"
#include "db.h"
#include "tablestructure.h"
#include "shell.h"
#include "shellprivate.h"
#include "shellundo.h"
#include "shell.rsrc.h"
#include "op.h"
#include "opinternal.h"
#include "scripts.h"
#include "menueditor.h"
#include "menuinternal.h"
#include "cancoon.h"
#include "langexternal.h"

Include dependency graph for menueditor.c:

Go to the source code of this file.

Defines

#define sizecmdkeyarray   256
#define buttonfont   geneva
#define buttonsize   9
#define buttonstyle   0
#define roundrectsize   10

Functions

boolean mesetglobals (void)
hdldatabaserecord megetdatabase (hdlmenurecord hm)
static void megetcursornode (hdlmenurecord hm, hdlheadrecord *hcursor)
boolean mescroll (tydirection dir, boolean flpage, long amount)
void megetscrollbarinfo (void)
static boolean mesetscrollbarsroutine (void)
static void meactivateoutline (void)
static boolean megetscriptaddress (hdlheadrecord hnode, dbaddress *address)
static boolean megetscriptoutline (hdlheadrecord hnode, hdloutlinerecord *hscript)
boolean mesetscriptoutline (hdlheadrecord hnode, hdloutlinerecord hscript)
static void medrawseparatorline (hdlheadrecord hnode, const Rect *rtext, boolean flselected, boolean flinverted)
static boolean medrawlineroutine (hdlheadrecord hnode, const Rect *textrect, boolean flselected, boolean flinverted)
void megetoutlinerect (Rect *r)
static boolean meclearhandlevisit (hdlheadrecord hnode, ptrvoid refcon)
static void meclearhandles (hdloutlinerecord ho)
static boolean mesomethingdirtyvisit (hdlheadrecord hnode, ptrvoid refcon)
boolean mesomethingdirty (hdlmenurecord hmenurecord)
boolean meloadoutline (dbaddress adr, hdloutlinerecord *houtline)
boolean mesaveoutline (hdloutlinerecord ho, dbaddress *adr)
static boolean mescriptfontchangeroutine (void)
boolean meloadscriptoutline (hdlmenurecord hm, hdlheadrecord hnode, hdloutlinerecord *houtline, boolean *fljustloaded)
static boolean meloadscript (hdlmenurecord hm, Rect rscript, hdloutlinerecord *houtline)
static boolean meunloadscript (hdlmenurecord hm)
static boolean mehaslinkedtext (hdlheadrecord hnode)
static void medisplayscriptbutton (boolean flpressed)
boolean mesmashscriptwindow (void)
boolean mezoomscriptwindow (void)
static boolean mefreshscriptwindow (void)
static byte megetcmdkey (hdlheadrecord hnode)
static void medisplaycmdkeypopup (void)
static void mezoomdownwindow (WindowPtr w)
boolean mescriptwindowclosed (void)
void mepostcursormove (void)
void meexpandto (hdlheadrecord hnode)
static void menubarchanged ()
void mesetcmdkey (byte ch, tykeyflags modifiers)
static boolean mebuildcmdkeypopupvisit (hdlheadrecord hnode, ptrvoid refcon)
static boolean mefillcmdkeypopup (hdlmenu hmenu, short *highlighteditem)
static boolean mecmdkeypopupselect (hdlmenu hmenu, short ixmenu)
static boolean mecmdkeypopup (void)
static void medisplayuseritems (void)
static boolean mescriptitemhit (boolean flmousedriven)
boolean memousedown (Point pt, tyclickflags flags)
boolean mesetprintinfo (void)
boolean meprint (short pagenumber)
boolean megetundoglobals (long *globals)
boolean mesetundoglobals (long globals, boolean flundo)
boolean mekeystroke (void)
boolean mecmdkeyfilter (char chkb)
static boolean metextchangedroutine (hdlheadrecord hnode, bigstring bsorig)
static boolean meinsertlineroutine (hdlheadrecord hnode)
static boolean medeletelineroutine (hdlheadrecord hnode)
static boolean meicon2click (hdlheadrecord hnode)
void mesetcallbacks (hdloutlinerecord houtline)
boolean meeditmenurecord (void)
boolean menewmenurecord (hdlmenurecord *hmenurecord)
void medisposemenurecord (hdlmenurecord hmenurecord, boolean fldisk)
boolean mecut (void)
boolean mecopy (void)
boolean mepaste (void)
boolean meclear (void)
boolean meselectall (void)
boolean meadjustcursor (Point pt)
void meidle (void)
void meactivate (boolean flactivate)
void meupdate (void)
boolean megetcontentsize (long *width, long *height)
boolean meinstallmenubar (hdlmenurecord hmenurecord)
boolean meremovemenubar (hdlmenurecord hmenurecord)
boolean meclearmenubar (void)
void meinit (void)

Variables

hdlmenurecord menudata
WindowPtr menuwindow
hdlwindowinfo menuwindowinfo
static hdlheadrecordglobalcmdkeyarray = nil


Define Documentation

#define buttonfont   geneva
 

Definition at line 75 of file menueditor.c.

#define buttonsize   9
 

Definition at line 76 of file menueditor.c.

#define buttonstyle   0
 

Definition at line 77 of file menueditor.c.

#define roundrectsize   10
 

Definition at line 79 of file menueditor.c.

#define sizecmdkeyarray   256
 

Definition at line 73 of file menueditor.c.

Referenced by mecmdkeypopup(), and mefillcmdkeypopup().


Function Documentation

void meactivate boolean  flactivate  ) 
 

Definition at line 1980 of file menueditor.c.

References bitboolean, fl, mecheckglobals, meinstallmenubar(), menudata, menuoutlineitem, meremovemenubar(), and opactivate().

Referenced by menustart().

Here is the call graph for this function:

static void meactivateoutline void   )  [static]
 

Definition at line 178 of file menueditor.c.

References mecheckglobals, menuoutlineitem, and opactivate().

Referenced by meeditmenurecord(), and memousedown().

Here is the call graph for this function:

boolean meadjustcursor Point  pt  ) 
 

Definition at line 1902 of file menueditor.c.

References cursorisarrow, cursorisgo, cursorispopup, mecheckglobals, opsetcursor(), pointinrect(), pt, and setcursortype().

Referenced by menustart().

Here is the call graph for this function:

static boolean mebuildcmdkeypopupvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 1158 of file menueditor.c.

References chnul, globalcmdkeyarray, h, hnode, megetcmdkey(), and ophasrefcon().

Referenced by mecmdkeypopup().

Here is the call graph for this function:

boolean meclear void   ) 
 

Definition at line 1886 of file menueditor.c.

References mecheckglobals, and opclear().

Referenced by menustart().

Here is the call graph for this function:

static void meclearhandles hdloutlinerecord  ho  )  [static]
 

Definition at line 334 of file menueditor.c.

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

Referenced by meloadoutline(), and meloadscript().

Here is the call graph for this function:

static boolean meclearhandlevisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 318 of file menueditor.c.

References hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetmenuiteminfo(), mesetmenuiteminfo(), and nil.

Referenced by meclearhandles().

Here is the call graph for this function:

boolean meclearmenubar void   ) 
 

Definition at line 2139 of file menueditor.c.

References tymenurecord::flactive, meinstallmenubar(), menubarlist, meremovemenubar(), and nil.

Referenced by menuclearverb().

Here is the call graph for this function:

boolean mecmdkeyfilter char  chkb  ) 
 

Definition at line 1544 of file menueditor.c.

References mecheckglobals, mepostcursormove(), and opcmdkeyfilter().

Referenced by menustart().

Here is the call graph for this function:

static boolean mecmdkeypopup void   )  [static]
 

Definition at line 1266 of file menueditor.c.

References clearbytes(), globalcmdkeyarray, longsizeof, mebuildcmdkeypopupvisit(), mecheckglobals, mecmdkeypopupselect(), mefillcmdkeypopup(), nil, opoutermostsummit(), opsiblingvisiter(), popupmenuhit(), r, and sizecmdkeyarray.

Referenced by memousedown().

Here is the call graph for this function:

static boolean mecmdkeypopupselect hdlmenu  hmenu,
short  ixmenu
[static]
 

Definition at line 1233 of file menueditor.c.

References bigstring, chardialog(), cmdkeypromptstring, getmenuitemcommandkey(), globalcmdkeyarray, hnode, keycommand, meexpandto(), megetcmdkey(), mesetcmdkey(), nil, opsettextmode(), and shellgetstring().

Referenced by mecmdkeypopup().

Here is the call graph for this function:

boolean mecopy void   ) 
 

Definition at line 1870 of file menueditor.c.

References mecheckglobals, and opcopy().

Referenced by menustart().

Here is the call graph for this function:

boolean mecut void   ) 
 

Definition at line 1862 of file menueditor.c.

References mecheckglobals, and opcut().

Referenced by menustart().

Here is the call graph for this function:

static boolean medeletelineroutine hdlheadrecord  hnode  )  [static]
 

Definition at line 1607 of file menueditor.c.

References assert, hnode, memenuitemdeleted(), menubarchanged(), menudata, nil, opsubordinateto(), and shellclosewindow().

Referenced by mesetcallbacks().

Here is the call graph for this function:

static void medisplaycmdkeypopup void   )  [static]
 

Definition at line 904 of file menueditor.c.

References bigstring, chnul, cmdkeypopupstring, drawpopup(), getcommandkeystring(), keycommand, megetcmdkey(), megetcursornode(), menudata, pushchar(), r, and shellgetstring().

Referenced by medisplayuseritems(), mepostcursormove(), and mesetcmdkey().

Here is the call graph for this function:

static void medisplayscriptbutton boolean  flpressed  )  [static]
 

Definition at line 730 of file menueditor.c.

References bigstring, centerrect(), drawlabeledwindoidicon(), fl, grayframerect(), isemptyrect, megetcursornode(), mehaslinkedtext(), menudata, nil, offsetrect(), r, scriptbuttonstring, and shellgetstring().

Referenced by medisplayuseritems(), mepostcursormove(), mescriptitemhit(), mescriptwindowclosed(), mezoomdownwindow(), and mezoomscriptwindow().

Here is the call graph for this function:

static void medisplayuseritems void   )  [static]
 

Definition at line 1297 of file menueditor.c.

References medisplaycmdkeypopup(), and medisplayscriptbutton().

Referenced by meupdate().

Here is the call graph for this function:

void medisposemenurecord hdlmenurecord  hmenurecord,
boolean  fldisk
 

Definition at line 1804 of file menueditor.c.

References dbpopdatabase(), dbpushdatabase(), dbpushreleasestack(), disposehandle(), medisposemenubar(), megetdatabase(), opdisposeoutline(), and outlinevaluetype.

Referenced by menudisposevariable(), menunewmenubar(), menuverbmemoryunpack(), menuverbnew(), menuverbunload(), and mescraphook().

Here is the call graph for this function:

static boolean medrawlineroutine hdlheadrecord  hnode,
const Rect textrect,
boolean  flselected,
boolean  flinverted
[static]
 

Definition at line 283 of file menueditor.c.

References bigstring, hnode, medrawseparatorline(), opdefaultdrawtext(), opgetheadstring(), and stringlength.

Referenced by meloadoutline(), and mesetcallbacks().

Here is the call graph for this function:

static void medrawseparatorline hdlheadrecord  hnode,
const Rect rtext,
boolean  flselected,
boolean  flinverted
[static]
 

Definition at line 229 of file menueditor.c.

References grayframerect(), h, hnode, invertrect(), movepento(), opmaxlevelwidth(), outlinedata, pendrawline(), poppen(), pushpen(), rframe, setgraypen(), texthorizinset, and v.

Referenced by medrawlineroutine().

Here is the call graph for this function:

boolean meeditmenurecord void   ) 
 

Definition at line 1703 of file menueditor.c.

References meactivateoutline(), menudata, tymenurecord::menuoutline, menuwindowinfo, meresetwindowrects(), meresize(), mesetglobals(), and opsetdisplaydefaults().

Referenced by menuedit().

Here is the call graph for this function:

void meexpandto hdlheadrecord  hnode  ) 
 

Definition at line 1097 of file menueditor.c.

References hnode, mecheckglobals, mepostcursormove(), opexpandto(), and opvisibarcursor().

Referenced by mecmdkeypopupselect(), mescripterrorroutine(), mesearchrefconroutine(), and meshownode().

Here is the call graph for this function:

static boolean mefillcmdkeypopup hdlmenu  hmenu,
short highlighteditem
[static]
 

Definition at line 1178 of file menueditor.c.

References bigstring, checkmenuitem(), globalcmdkeyarray, hnode, i, nil, opgetheadstring(), pushdottedlinemenuitem(), pushmenuitem(), setcmdkeyitemstring, setmenuitemcommandkey(), shellgetstring(), and sizecmdkeyarray.

Referenced by mecmdkeypopup().

Here is the call graph for this function:

static boolean mefreshscriptwindow void   )  [static]
 

Definition at line 862 of file menueditor.c.

References menudata, mesmashscriptwindow(), and nil.

Referenced by mepostcursormove().

Here is the call graph for this function:

static byte megetcmdkey hdlheadrecord  hnode  )  [static]
 

Definition at line 894 of file menueditor.c.

References tymenuiteminfo::cmdkey, hnode, and megetmenuiteminfo().

Referenced by mebuildcmdkeypopupvisit(), mecmdkeypopupselect(), medisplaycmdkeypopup(), and meinit().

Here is the call graph for this function:

boolean megetcontentsize long width,
long height
 

Definition at line 2050 of file menueditor.c.

References opgetoutinesize().

Referenced by menustart().

Here is the call graph for this function:

static void megetcursornode hdlmenurecord  hm,
hdlheadrecord hcursor
[static]
 

Definition at line 128 of file menueditor.c.

References assert, menudata, and nil.

Referenced by medisplaycmdkeypopup(), medisplayscriptbutton(), meloadscript(), mesmashscriptwindow(), and mezoomscriptwindow().

hdldatabaserecord megetdatabase hdlmenurecord  hm  ) 
 

Definition at line 122 of file menueditor.c.

Referenced by medisposemenurecord(), meinstallmenubar(), meloadscriptoutline(), mereleaserefconroutine(), and mesavemenurecord().

void megetoutlinerect Rect r  ) 
 

Definition at line 312 of file menueditor.c.

Referenced by meloadoutline(), meresize(), and meupdate().

static boolean megetscriptaddress hdlheadrecord  hnode,
dbaddress address
[static]
 

Definition at line 193 of file menueditor.c.

References tylinkeditem::adrlink, hnode, tymenuiteminfo::linkedscript, and megetmenuiteminfo().

Referenced by meloadscriptoutline().

Here is the call graph for this function:

static boolean megetscriptoutline hdlheadrecord  hnode,
hdloutlinerecord hscript
[static]
 

Definition at line 205 of file menueditor.c.

References hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, and megetmenuiteminfo().

Referenced by meloadscriptoutline().

Here is the call graph for this function:

void megetscrollbarinfo void   ) 
 

Definition at line 145 of file menueditor.c.

References mecheckglobals, and opresetscrollbars().

Referenced by menustart().

Here is the call graph for this function:

boolean megetundoglobals long globals  ) 
 

Definition at line 1422 of file menueditor.c.

References opeditgetundoglobals().

Referenced by menustart().

Here is the call graph for this function:

static boolean mehaslinkedtext hdlheadrecord  hnode  )  [static]
 

Definition at line 716 of file menueditor.c.

References tylinkeditem::adrlink, hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetmenuiteminfo(), nil, and nildbaddress.

Referenced by medisplayscriptbutton(), and mesetcallbacks().

Here is the call graph for this function:

static boolean meicon2click hdlheadrecord  hnode  )  [static]
 

Definition at line 1638 of file menueditor.c.

References hnode, mezoomscriptwindow(), and ophassubheads().

Referenced by mesetcallbacks().

Here is the call graph for this function:

void meidle void   ) 
 

Definition at line 1939 of file menueditor.c.

References mecheckdeletedmenu(), mecheckglobals, menudata, mepostcursormove(), opidle(), popmenubarglobals(), and pushmenubarglobals().

Referenced by menustart().

Here is the call graph for this function:

void meinit void   ) 
 

Definition at line 2180 of file menueditor.c.

References tymenubarcallbacks::getcmdkeyroutine, megetcmdkey(), menubarcallbacks, and menubarinit().

Referenced by menustart().

Here is the call graph for this function:

static boolean meinsertlineroutine hdlheadrecord  hnode  )  [static]
 

Definition at line 1580 of file menueditor.c.

References assert, hnode, memenuitemadded(), menubarchanged(), menudata, and nil.

Referenced by mesetcallbacks().

Here is the call graph for this function:

boolean meinstallmenubar hdlmenurecord  hmenurecord  ) 
 

Definition at line 2079 of file menueditor.c.

References long, mebuildmenubar(), megetdatabase(), meinsertmenubar(), menewmenubar(), nil, and tymenubarstack::refcon.

Referenced by ccinstallmenubar(), meactivate(), meclearmenubar(), and menuinstallverb().

Here is the call graph for this function:

boolean mekeystroke void   ) 
 

Definition at line 1468 of file menueditor.c.

References chenter, tykeystrokerecord::chkb, tykeystrokerecord::flcmdkey, tykeystrokerecord::flcontrolkey, keyboardstatus, mecheckglobals, menudata, mepostcursormove(), mescriptitemhit(), and opkeystroke().

Referenced by menuverbkeystroke().

Here is the call graph for this function:

boolean meloadoutline dbaddress  adr,
hdloutlinerecord houtline
 

Definition at line 402 of file menueditor.c.

References dbrefhandle(), disposehandle(), fl, meclearhandles(), medrawlineroutine(), megetoutlinerect(), mesetscrollbarsroutine(), nil, nildbaddress, opnewrecord(), oppopoutline(), oppushoutline(), opunpack(), opvalidate(), and r.

Referenced by meloadmenurecord().

Here is the call graph for this function:

static boolean meloadscript hdlmenurecord  hm,
Rect  rscript,
hdloutlinerecord houtline
[static]
 

Definition at line 596 of file menueditor.c.

References assert, long, meclearhandles(), megetcursornode(), meloadscriptoutline(), mescriptfontchangeroutine(), nil, opnewrecord(), outlineismenubarscript, tyoutlinerecord::outlinesignature, and typeLAND.

Referenced by mesmashscriptwindow().

Here is the call graph for this function:

boolean meloadscriptoutline hdlmenurecord  hm,
hdlheadrecord  hnode,
hdloutlinerecord houtline,
boolean fljustloaded
 

Definition at line 528 of file menueditor.c.

References dbpopdatabase(), dbpushdatabase(), dbrefhandle(), disposehandle(), fl, hnode, megetdatabase(), megetscriptaddress(), megetscriptoutline(), nil, nildbaddress, opsetdisplaydefaults(), and opunpack().

Referenced by mecopyrefconroutine(), megetnodelangtext(), meloadscript(), menugetscriptverb(), mesaveasscriptvisit(), mesearchrefconroutine(), metextualizerefconroutine(), and scriptpushsourcecode().

Here is the call graph for this function:

boolean memousedown Point  pt,
tyclickflags  flags
 

Definition at line 1351 of file menueditor.c.

References tykeystrokerecord::ctmodifiers, cursorisarrow, tykeystrokerecord::flcontrolkey, keyboardstatus, meactivateoutline(), mecheckglobals, mecmdkeypopup(), menudata, mepostcursormove(), mescriptitemhit(), opmousedown(), oprmousedown(), pointinrect(), pt, and setcursortype().

Referenced by menustart().

Here is the call graph for this function:

boolean menewmenurecord hdlmenurecord hmenurecord  ) 
 

Definition at line 1736 of file menueditor.c.

References bundle, tyconfigrecord::defaultfont, tyconfigrecord::defaultsize, disposehandle(), error, idmenueditorconfig, idscriptconfig, langexternalgetconfig(), long, longsizeof, tymenurecord::menuactiveitem, menuoutlineitem, mesetcallbacks(), newclearhandle(), newoutlinerecord(), nil, opdisposeoutline(), tyoutlinerecord::outlinerefcon, scriptvaluetype, and shellgetconfig().

Referenced by menunewmenubar(), and menuverbnew().

Here is the call graph for this function:

static void menubarchanged  )  [static]
 

Definition at line 1109 of file menueditor.c.

References menubarcallbacks, tymenubarcallbacks::menubarchangedroutine, and outlinedata.

Referenced by medeletelineroutine(), meinsertlineroutine(), mesetcmdkey(), and metextchangedroutine().

boolean mepaste void   ) 
 

Definition at line 1878 of file menueditor.c.

References mecheckglobals, and oppaste().

Referenced by menustart().

Here is the call graph for this function:

void mepostcursormove void   ) 
 

Definition at line 1081 of file menueditor.c.

References medisplaycmdkeypopup(), medisplayscriptbutton(), and mefreshscriptwindow().

Referenced by mecmdkeyfilter(), meexpandto(), meidle(), mekeystroke(), and memousedown().

Here is the call graph for this function:

boolean meprint short  pagenumber  ) 
 

Definition at line 1414 of file menueditor.c.

References mecheckglobals, and opprint().

Referenced by menustart().

Here is the call graph for this function:

boolean meremovemenubar hdlmenurecord  hmenurecord  ) 
 

Definition at line 2113 of file menueditor.c.

References medeletemenubar(), and nil.

Referenced by meactivate(), meclearmenubar(), menuremoveverb(), and menuverbclose().

Here is the call graph for this function:

boolean mesaveoutline hdloutlinerecord  ho,
dbaddress adr
 

Definition at line 469 of file menueditor.c.

References dbsavehandle(), disposehandle(), fl, fldatabasesaveas, nil, and oppackoutline().

Referenced by mesaveasscriptvisit(), mesavemenustructure(), and mesavescriptvisit().

Here is the call graph for this function:

static boolean mescriptfontchangeroutine void   )  [static]
 

Definition at line 498 of file menueditor.c.

References assert, menudata, nil, oppostfontchange(), outlinedata, shellpopglobals(), and shellpushparentglobals().

Referenced by meloadscript().

Here is the call graph for this function:

static boolean mescriptitemhit boolean  flmousedriven  )  [static]
 

Definition at line 1307 of file menueditor.c.

References assert, mecheckglobals, medisplayscriptbutton(), menudata, mezoomscriptwindow(), nil, opsettextmode(), optionkeydown(), r, and trackicon().

Referenced by mekeystroke(), and memousedown().

Here is the call graph for this function:

boolean mescriptwindowclosed void   ) 
 

Definition at line 1030 of file menueditor.c.

References getglobalwindowrect(), medisplayscriptbutton(), menudata, menuwindow, meunloadscript(), mezoomdownwindow(), nil, popport(), pushport(), and r.

Referenced by menuchildclose().

Here is the call graph for this function:

boolean mescroll tydirection  dir,
boolean  flpage,
long  amount
 

Definition at line 137 of file menueditor.c.

References mecheckglobals, and opscroll().

Referenced by menustart().

Here is the call graph for this function:

boolean meselectall void   ) 
 

Definition at line 1894 of file menueditor.c.

References mecheckglobals, and opselectall().

Referenced by menustart().

Here is the call graph for this function:

void mesetcallbacks hdloutlinerecord  houtline  ) 
 

Definition at line 1653 of file menueditor.c.

References tyoutlinerecord::backcolor, mecopyrefconroutine(), medeletelineroutine(), medrawlineroutine(), megetscraproutine(), mehaslinkedtext(), meicon2click(), meinsertlineroutine(), mereleaserefconroutine(), mesearchrefconroutine(), mesetscraproutine(), mesetscrollbarsroutine(), metextchangedroutine(), metextualizerefconroutine(), and whitecolor.

Referenced by menewmenurecord(), and mesetupmenurecord().

Here is the call graph for this function:

void mesetcmdkey byte  ch,
tykeyflags  modifiers
 

Definition at line 1122 of file menueditor.c.

References chbackspace, chnul, tymenuiteminfo::cmdkey, tymenuiteminfo::cmdmodifiers, medisplaycmdkeypopup(), megetmenuiteminfo(), memenuitemchanged(), menubarchanged(), menudata, mesetmenuiteminfo(), opdirtyoutline(), and uppercasechar().

Referenced by mecmdkeypopupselect(), and menusetcommandkeyverb().

Here is the call graph for this function:

boolean mesetglobals void   ) 
 

Definition at line 100 of file menueditor.c.

References menudata, menuwindow, menuwindowinfo, nil, opeditsetglobals(), opsetoutline(), outlinedata, outlinewindow, and outlinewindowinfo.

Referenced by meeditmenurecord(), megetnodelangtext(), menustart(), menuverbgettargetdata(), mescripterrorroutine(), and mesetundoglobals().

Here is the call graph for this function:

boolean mesetprintinfo void   ) 
 

Definition at line 1406 of file menueditor.c.

References mecheckglobals, and opsetprintinfo().

Referenced by menustart().

Here is the call graph for this function:

boolean mesetscriptoutline hdlheadrecord  hnode,
hdloutlinerecord  hscript
 

Definition at line 217 of file menueditor.c.

References hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetmenuiteminfo(), and mesetmenuiteminfo().

Referenced by mesearchrefconroutine(), mesmashscriptwindow(), and meunloadscript().

Here is the call graph for this function:

static boolean mesetscrollbarsroutine void   )  [static]
 

Definition at line 153 of file menueditor.c.

References menuwindowinfo, outlinedata, and tyoutlinerecord::vertscrollinfo.

Referenced by meloadoutline(), and mesetcallbacks().

boolean mesetundoglobals long  globals,
boolean  flundo
 

Definition at line 1428 of file menueditor.c.

References mesetglobals(), and opeditsetundoglobals().

Referenced by menustart().

Here is the call graph for this function:

boolean mesmashscriptwindow void   ) 
 

Definition at line 770 of file menueditor.c.

References fl, megetcursornode(), meloadscript(), menudata, mesetscriptoutline(), meunloadscript(), scriptsetdata(), shellpopglobals(), shellpushglobals(), shellsetwindowchanges(), and shellwindowinfo.

Referenced by attachscript(), mefreshscriptwindow(), and mezoomscriptwindow().

Here is the call graph for this function:

boolean mesomethingdirty hdlmenurecord  hmenurecord  ) 
 

Definition at line 368 of file menueditor.c.

References mesomethingdirtyvisit(), nil, opoutermostsummit(), oppopoutline(), oppushoutline(), and opsiblingvisiter().

Here is the call graph for this function:

static boolean mesomethingdirtyvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 346 of file menueditor.c.

References h, hnode, tylinkeditem::houtline, tymenuiteminfo::linkedscript, megetmenuiteminfo(), and nil.

Referenced by mesomethingdirty().

Here is the call graph for this function:

static boolean metextchangedroutine hdlheadrecord  hnode,
bigstring  bsorig
[static]
 

Definition at line 1566 of file menueditor.c.

References hnode, memenuitemchanged(), and menubarchanged().

Referenced by mesetcallbacks().

Here is the call graph for this function:

static boolean meunloadscript hdlmenurecord  hm  )  [static]
 

Definition at line 665 of file menueditor.c.

References assert, killundo(), mesetscriptoutline(), nil, opcloseoutline(), opdisposeoutline(), shellclearwindowdata(), shellpopglobals(), and shellpushglobals().

Referenced by mescriptwindowclosed(), and mesmashscriptwindow().

Here is the call graph for this function:

void meupdate void   ) 
 

Definition at line 2016 of file menueditor.c.

References eraserect(), frame3sides(), insetrect(), mecheckglobals, medisplayuseritems(), megetoutlinerect(), menudata, nil, opupdate(), popbackcolor(), pushbackcolor(), r, shelldrawwindowmessage(), and shellwindowinfo.

Referenced by menustart().

Here is the call graph for this function:

static void mezoomdownwindow WindowPtr  w  )  [static]
 

Definition at line 983 of file menueditor.c.

References localtoglobalrect(), medisplayscriptbutton(), menuwindow, nil, popport(), pushport(), r, and zoomwindowtocenter().

Referenced by mescriptwindowclosed().

Here is the call graph for this function:

boolean mezoomscriptwindow void   ) 
 

Definition at line 816 of file menueditor.c.

References disposeshellwindow(), localtoglobalrect(), medisplayscriptbutton(), megetcursornode(), menudata, menuwindow, mesmashscriptwindow(), nil, scriptzoomwindow(), windowbringtofront(), and windowzoom().

Referenced by meicon2click(), menufunctionvalue(), mescripterrorroutine(), mescriptitemhit(), mesearchrefconroutine(), and meshownode().

Here is the call graph for this function:


Variable Documentation

hdlheadrecord* globalcmdkeyarray = nil [static]
 

Definition at line 1155 of file menueditor.c.

Referenced by mebuildcmdkeypopupvisit(), mecmdkeypopup(), mecmdkeypopupselect(), and mefillcmdkeypopup().

hdlmenurecord menudata
 

Definition at line 66 of file menueditor.c.

Referenced by langipcgetitemlangtext(), meactivate(), medeletelineroutine(), medisplaycmdkeypopup(), medisplayscriptbutton(), meeditmenurecord(), mefreshscriptwindow(), megetcursornode(), megetnodelangtext(), meidle(), meinsertlineroutine(), mekeystroke(), memousedown(), menucheckwindowrect(), menugetscriptverb(), menusetscriptverb(), menustart(), menuverbclose(), menuverbfind(), menuverbfindusedblocks(), menuverbgettimes(), menuverbgetvariable(), menuverbsettimes(), mepopmenudata(), mepushmenudata(), mesaveasscriptvisit(), mesavemenurecord(), mesavescriptvisit(), mescriptfontchangeroutine(), mescriptitemhit(), mescriptwindowclosed(), mesearchrefconroutine(), mesetcmdkey(), mesetglobals(), mesmashscriptwindow(), meupdate(), meuserselected(), mezoomscriptwindow(), and scriptpushsourcecode().

WindowPtr menuwindow
 

Definition at line 68 of file menueditor.c.

Referenced by menustart(), mescriptwindowclosed(), mesetglobals(), mezoomdownwindow(), and mezoomscriptwindow().

hdlwindowinfo menuwindowinfo
 

Definition at line 70 of file menueditor.c.

Referenced by meeditmenurecord(), menucheckwindowrect(), menustart(), mesetglobals(), mesetscrollbarsroutine(), and scriptzoomwindow().


Generated on Wed Jun 7 12:08:54 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6