menueditor.h File Reference

#include "op.h"
#include "menubar.h"
#include "langexternal.h"
#include "shelltypes.h"
#include "db.h"

Include dependency graph for menueditor.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tysavedmenuinfo
struct  tyOLD42savedmenuinfo
struct  tymenurecord
struct  tylinkeditem
struct  tymenuiteminfo

Defines

#define menueditorinclude
#define menuoutlineitem   1
#define menucmdkeypopupitem   2
#define menumessageitem   3
#define menucmdkeyitem   4
#define menuscriptitem   5
#define mecheckglobals()   ((void) 0)

Typedefs

typedef tymenurecordptrmenurecord
typedef tymenurecord ** hdlmenurecord
typedef tymenuiteminfoptrmenuiteminfo
typedef tymenuiteminfo ** hdlmenuiteminfo

Functions

boolean meloadoutline (dbaddress, hdloutlinerecord *)
boolean mepackoutline (hdloutlinerecord, Handle *)
boolean mesaveoutline (hdloutlinerecord, dbaddress *)
boolean meloadscriptoutline (hdlmenurecord, hdlheadrecord, hdloutlinerecord *, boolean *)
boolean mezoomscriptwindow (void)
boolean mescriptwindowclosed (void)
void mepostcursormove (void)
void meexpandto (hdlheadrecord)
void mesetcallbacks (hdloutlinerecord)
boolean meeditmenurecord (void)
boolean menewmenurecord (hdlmenurecord *)
void medisposemenurecord (hdlmenurecord, boolean)
boolean meinstallmenubar (hdlmenurecord)
boolean meremovemenubar (hdlmenurecord)
boolean meclearmenubar (void)
boolean mesetglobals (void)
hdldatabaserecord megetdatabase (hdlmenurecord)
boolean mesetscriptoutline (hdlheadrecord, hdloutlinerecord)
boolean mesomethingdirty (hdlmenurecord)
void mesetcmdkey (byte, tykeyflags)
void meupdate (void)
void meactivate (boolean)
boolean mescroll (tydirection, boolean, long)
void megetscrollbarinfo (void)
boolean megetundoglobals (long *)
boolean mesetundoglobals (long, boolean)
boolean memousedown (Point, tyclickflags)
boolean mekeystroke (void)
boolean mecmdkeyfilter (char)
boolean mecut (void)
boolean mecopy (void)
boolean mepaste (void)
boolean meclear (void)
boolean meselectall (void)
boolean medispose (void)
boolean meclose (void)
void meidle (void)
boolean meadjustcursor (Point)
boolean mesetprintinfo (void)
boolean meprint (short)
void meinit (void)
boolean mecontinuesearch (hdlwindowinfo, hdlheadrecord)
boolean menuverbsearch (void)

Variables

hdlmenurecord menudata
WindowPtr menuwindow
hdlwindowinfo menuwindowinfo


Define Documentation

 
#define mecheckglobals  )     ((void) 0)
 

Definition at line 277 of file menueditor.h.

Referenced by meactivate(), meactivateoutline(), meadjustcursor(), meclear(), mecmdkeyfilter(), mecmdkeypopup(), mecontinuesearch(), mecopy(), mecut(), meexpandto(), megetscrollbarinfo(), meidle(), mekeystroke(), memousedown(), menufunctionvalue(), menuverbclose(), menuverbrunscript(), menuverbsearch(), menuverbsetfont(), menuverbsetselectioninfo(), menuverbsetsize(), mepaste(), meprint(), mescriptitemhit(), mescroll(), meselectall(), mesetprintinfo(), and meupdate().

#define menucmdkeyitem   4
 

Definition at line 72 of file menueditor.h.

#define menucmdkeypopupitem   2
 

Definition at line 68 of file menueditor.h.

#define menueditorinclude
 

Definition at line 28 of file menueditor.h.

#define menumessageitem   3
 

Definition at line 70 of file menueditor.h.

#define menuoutlineitem   1
 

Definition at line 66 of file menueditor.h.

Referenced by meactivate(), meactivateoutline(), menewmenurecord(), and mesetupmenurecord().

#define menuscriptitem   5
 

Definition at line 74 of file menueditor.h.


Typedef Documentation

typedef struct tymenuiteminfo ** hdlmenuiteminfo
 

typedef struct tymenurecord ** hdlmenurecord
 

typedef struct tymenuiteminfo * ptrmenuiteminfo
 

typedef struct tymenurecord * ptrmenurecord
 


Function Documentation

void meactivate boolean   ) 
 

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:

boolean meadjustcursor Point   ) 
 

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:

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:

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 meclose void   ) 
 

boolean mecmdkeyfilter char   ) 
 

Definition at line 1544 of file menueditor.c.

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

Referenced by menustart().

Here is the call graph for this function:

boolean mecontinuesearch hdlwindowinfo  ,
hdlheadrecord 
 

Definition at line 164 of file menufind.c.

References fl, flatdown, tysearchparameters::flzoomfound, hnode, langexternalcontinuesearch(), mecheckglobals, mesearchoutline(), opmoveto(), opnavigate(), opsettextmode(), searchparams, searchshouldcontinue(), searchshouldwrap(), shellbringtofront(), shellpopglobals(), shellpushglobals(), and shellwindowinfo.

Referenced by scriptsearch().

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:

boolean medispose void   ) 
 

void medisposemenurecord hdlmenurecord  ,
boolean 
 

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:

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   ) 
 

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:

hdldatabaserecord megetdatabase hdlmenurecord   ) 
 

Definition at line 122 of file menueditor.c.

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

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  ) 
 

Definition at line 1422 of file menueditor.c.

References opeditgetundoglobals().

Referenced by menustart().

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:

boolean meinstallmenubar hdlmenurecord   ) 
 

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  ,
hdloutlinerecord
 

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:

boolean meloadscriptoutline hdlmenurecord  ,
hdlheadrecord  ,
hdloutlinerecord ,
boolean
 

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  ,
tyclickflags 
 

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  ) 
 

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:

boolean menuverbsearch void   ) 
 

Definition at line 210 of file menufind.c.

References keyboardescape(), langexternalcontinuesearch(), mecheckglobals, mesearchoutline(), searchshouldcontinue(), searchshouldwrap(), and startingtosearch().

Referenced by menustart().

Here is the call graph for this function:

boolean mepackoutline hdloutlinerecord  ,
Handle
 

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   ) 
 

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   ) 
 

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  ,
dbaddress
 

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:

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  ,
boolean  ,
long 
 

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   ) 
 

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  ,
tykeyflags 
 

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  ,
hdloutlinerecord 
 

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:

boolean mesetundoglobals long  ,
boolean 
 

Definition at line 1428 of file menueditor.c.

References mesetglobals(), and opeditsetundoglobals().

Referenced by menustart().

Here is the call graph for this function:

boolean mesomethingdirty hdlmenurecord   ) 
 

Definition at line 368 of file menueditor.c.

Referenced by menuverbisdirty().

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:

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

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 14:17:01 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6