menubar.h File Reference

#include "shelltypes.h"
#include "op.h"

Include dependency graph for menubar.h:

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

Go to the source code of this file.

Data Structures

struct  tymenubarstackelement
struct  tymenubarstack
struct  tymenubarlist
struct  tymenubarcallbacks

Defines

#define menubarinclude
#define maxmenus   96
#define ctmenubarstack   50

Typedefs

typedef tymenubarstackptrmenubarstack
typedef tymenubarstack ** hdlmenubarstack
typedef tymenubarlistptrmenubarlist
typedef tymenubarlist ** hdlmenubarlist
typedef boolean(* menubarchangedcallback )(hdloutlinerecord)
typedef byte(* menubarcmdkeycallback )(hdlheadrecord)

Functions

boolean pushmenubarglobals (hdlmenubarstack)
boolean popmenubarglobals (void)
boolean newmenubarlist (hdlmenubarlist *)
void setcurrentmenubarlist (hdlmenubarlist)
boolean activatemenubarlist (hdlmenubarlist, boolean)
boolean disposemenubarlist (hdlmenubarlist)
void medirtymenubar (void)
void meupdatemenubar (void)
void mecheckmenubar (void)
boolean medisposemenubar (hdlmenubarstack)
boolean menewmenubar (hdloutlinerecord, hdlmenubarstack *)
boolean mebuildmenubar (hdlmenubarstack)
boolean memenuitemchanged (hdlmenubarstack, hdlheadrecord)
short mecheckdeletedmenu (short, boolean)
boolean memenuitemadded (hdlmenubarstack, hdlheadrecord)
boolean memenuitemdeleted (hdlmenubarstack, hdlheadrecord)
boolean meinsertmenubar (hdlmenubarstack)
boolean medeletemenubar (hdlmenubarstack)
boolean purgefrommenubarlist (long)
boolean rebuildmenubarlist (void)
boolean melocatemenubarnode (hdlheadrecord, hdloutlinerecord *)
boolean mecheckformulas (short)
boolean memenuhit (short, short, hdlheadrecord *)
boolean memenu (short, short)
void menubarinit (void)
boolean mereduceformula (bigstring bs)
void mereducemenucodes (bigstring bs, boolean *flenabled, boolean *flchecked)

Variables

hdlmenubarlist menubarlist
tymenubarcallbacks menubarcallbacks


Define Documentation

#define ctmenubarstack   50
 

Definition at line 49 of file menubar.h.

Referenced by mepushmenubarstack().

#define maxmenus   96
 

Definition at line 47 of file menubar.h.

Referenced by meallocmenuid(), and newmenubarlist().

#define menubarinclude
 

Definition at line 28 of file menubar.h.


Typedef Documentation

typedef struct tymenubarlist ** hdlmenubarlist
 

typedef struct tymenubarstack ** hdlmenubarstack
 

typedef boolean(* menubarchangedcallback)(hdloutlinerecord)
 

Definition at line 102 of file menubar.h.

typedef byte(* menubarcmdkeycallback)(hdlheadrecord)
 

Definition at line 104 of file menubar.h.

typedef struct tymenubarlist * ptrmenubarlist
 

typedef struct tymenubarstack * ptrmenubarstack
 


Function Documentation

boolean activatemenubarlist hdlmenubarlist  ,
boolean 
 

Definition at line 919 of file menubar.c.

References meactivatemenus(), and nil.

Referenced by ccactivatemenubar().

Here is the call graph for this function:

boolean disposemenubarlist hdlmenubarlist   ) 
 

Definition at line 941 of file menubar.c.

References disposehandle(), h, tymenubarstack::hnext, medisposemenubar(), menubarlist, and nil.

Referenced by buildmenubarstack().

Here is the call graph for this function:

boolean mebuildmenubar hdlmenubarstack   ) 
 

Definition at line 1037 of file menubar.c.

References fl, h, hnode, tymenubarstackelement::idmenu, info, insertmenu(), mebuildmenu(), medirtymenubar(), medisposemenus(), mepushmenubarstack(), opislastsubhead(), opoutermostsummit(), popmenubarglobals(), pushmenubarglobals(), and shellmenuhandle().

Referenced by buildmenubarstack(), meinstallmenubar(), and rebuildmenubarlist().

Here is the call graph for this function:

short mecheckdeletedmenu short  ,
boolean 
 

Definition at line 1341 of file menubar.c.

References tymenubarstack::ixdeletedmenu, medeleteallmenubarentries(), menubardata, meupdatemenubar(), and nil.

Referenced by meidle(), memenuhit(), memenuitemadded(), and memenuitemdeleted().

Here is the call graph for this function:

boolean mecheckformulas short   ) 
 

Definition at line 1754 of file menubar.c.

References bigstring, checkmenuitem(), countmenuitems(), getheadstring, hnode, i, info, menubardata, mereduceformula(), mereducemenucodes(), ophassubheads(), setmenuitem(), and setmenuitemenable().

Referenced by langipccheckformulas(), and memenuhit().

Here is the call graph for this function:

void mecheckmenubar void   ) 
 

Definition at line 358 of file menubar.c.

References fldirtymenubar, and meupdatemenubar().

Referenced by memenu().

Here is the call graph for this function:

boolean medeletemenubar hdlmenubarstack   ) 
 

Definition at line 1638 of file menubar.c.

References meactivatemenus(), and popmenubarlist().

Referenced by meremovemenubar(), and purgefrommenubarlist().

Here is the call graph for this function:

void medirtymenubar void   ) 
 

Definition at line 342 of file menubar.c.

References fldirtymenubar, and shellforcemenuadjust().

Referenced by mebuildmenubar(), and medisposemenus().

Here is the call graph for this function:

boolean medisposemenubar hdlmenubarstack   ) 
 

Definition at line 970 of file menubar.c.

References disposehandle(), medisposemenus(), nil, and popmenubarlist().

Referenced by buildmenubarstack(), disposemenubarlist(), disposemenubarstack(), medisposemenurecord(), and menuverbclose().

Here is the call graph for this function:

boolean meinsertmenubar hdlmenubarstack   ) 
 

Definition at line 1623 of file menubar.c.

References meactivatemenus(), and pushmenubarlist().

Referenced by meinstallmenubar().

Here is the call graph for this function:

boolean melocatemenubarnode hdlheadrecord  ,
hdloutlinerecord
 

Definition at line 1713 of file menubar.c.

References hnode, mefindinmenubar(), menubarlist, nil, outlinedata, popmenubarglobals(), and pushmenubarglobals().

Referenced by mescripterrorroutine().

Here is the call graph for this function:

boolean memenu short  ,
short 
 

Definition at line 1898 of file menubar.c.

References tykeystrokerecord::floptionkey, h, hnode, keyboardstatus, mecheckmenubar(), memenuhit(), menubarlist, meshownode(), meuserselected(), nil, optionkeydown(), popmenubarglobals(), and pushmenubarglobals().

Referenced by ccmenuroutine().

Here is the call graph for this function:

boolean memenuhit short  idmenu,
short  ixmenu,
hdlheadrecord hnode
 

processbusy ()

Definition at line 1829 of file menubar.c.

References fldirtymenubar, getmenutitleenable(), i, mecheckdeletedmenu(), mecheckformulas(), and setmenutitleenable().

Referenced by langipcgetitemlangtext(), langipcrunitem(), and memenu().

Here is the call graph for this function:

boolean memenuitemadded hdlmenubarstack  ,
hdlheadrecord 
 

Definition at line 1388 of file menubar.c.

References assert, fl, tymenubarstackelement::flhierarchic, hnode, tymenubarstackelement::idmenu, mebuildmenu(), mecheckdeletedmenu(), medeletemenubarentry(), mefindinmenubar(), mefindvisit(), meinsertmenu(), meinsertmenuitem(), melinkparentitem(), memainmenunode(), mepushmenubarstack(), meremovemenu(), meshouldhavemenu(), meupdatemenubar(), nil, ophassubheads(), opnosubheads(), opoutermostsummit(), opsiblingvisiter(), popmenubarglobals(), and pushmenubarglobals().

Referenced by meinsertlineroutine().

Here is the call graph for this function:

boolean memenuitemchanged hdlmenubarstack  ,
hdlheadrecord 
 

Definition at line 1166 of file menubar.c.

References assert, bigstring, checkmenuitem(), fl, tymenubarstackelement::flhierarchic, getheadstring, hnode, tymenubarstackelement::idmenu, mebuildmenu(), mecmdkey(), medeletemenu(), mefindinmenubar(), mefreemenuid(), meinsertmenu(), mereduceformula(), mereducemenucodes(), meupdatemenubar(), nil, popmenubarglobals(), pushmenubarglobals(), setmenuitem(), setmenuitemcommandkey(), and setmenuitemenable().

Referenced by mesetcmdkey(), and metextchangedroutine().

Here is the call graph for this function:

boolean memenuitemdeleted hdlmenubarstack  ,
hdlheadrecord 
 

Definition at line 1563 of file menubar.c.

References countmenuitems(), deletemenuitem(), hnode, mecheckdeletedmenu(), medeletemenubarentry(), mefindinmenubar(), melinkparentitem(), nil, popmenubarglobals(), and pushmenubarglobals().

Referenced by medeletelineroutine().

Here is the call graph for this function:

boolean menewmenubar hdloutlinerecord  ,
hdlmenubarstack
 

Definition at line 985 of file menubar.c.

References memoryerror(), tymenubarstack::menubaroutline, newclearhandle(), and nil.

Referenced by buildmenubarstack(), and meinstallmenubar().

Here is the call graph for this function:

void menubarinit void   ) 
 

Definition at line 1961 of file menubar.c.

References tymenubarcallbacks::getcmdkeyroutine, menubarcallbacks, tymenubarcallbacks::menubarchangedroutine, menullchar(), nil, and truenoop().

Referenced by meinit().

Here is the call graph for this function:

boolean mereduceformula bigstring  bs  ) 
 

Definition at line 673 of file menubar.c.

References fl, langreduceformula(), opsetoutline(), and outlinedata.

Referenced by dockmenuinsertmenuitem(), mebuildmenu(), mecheckformulas(), meinsertmenuitem(), memenuitemchanged(), and oppopupinsertmenuitem().

Here is the call graph for this function:

void mereducemenucodes bigstring  bs,
boolean flenabled,
boolean flchecked
 

Definition at line 642 of file menubar.c.

References deletestring(), and stringlength.

Referenced by dockmenuinsertmenuitem(), mecheckformulas(), meinsertmenuitem(), memenuitemchanged(), and oppopupinsertmenuitem().

Here is the call graph for this function:

void meupdatemenubar void   ) 
 

Definition at line 350 of file menubar.c.

References drawmenubar(), and fldirtymenubar.

Referenced by mecheckdeletedmenu(), mecheckmenubar(), memenuitemadded(), and memenuitemchanged().

Here is the call graph for this function:

boolean newmenubarlist hdlmenubarlist  ) 
 

Definition at line 898 of file menubar.c.

References assert, longsizeof, maxmenus, and newclearhandle().

Referenced by buildmenubarstack(), and newcancoonrecord().

Here is the call graph for this function:

boolean popmenubarglobals void   ) 
 

Definition at line 156 of file menubar.c.

References assert, menubardata, menubarglobalsstack, nil, oppopoutline(), and topmenubarglobals.

Referenced by langipccheckformulas(), langipcgetitemlangtext(), langipcrunitem(), mebuildmenubar(), meidle(), meinsertmenu(), melocatemenubarnode(), memenu(), memenuitemadded(), memenuitemchanged(), and memenuitemdeleted().

Here is the call graph for this function:

boolean purgefrommenubarlist long   ) 
 

Definition at line 1653 of file menubar.c.

References tymenubarstack::hnext, medeletemenubar(), menubarlist, and nil.

Referenced by ccwindowdisposerecord().

Here is the call graph for this function:

boolean pushmenubarglobals hdlmenubarstack   ) 
 

Definition at line 130 of file menubar.c.

References assert, ctmenubarglobalsstack, menubardata, menubarglobalsstack, nil, oppushoutline(), and topmenubarglobals.

Referenced by langipccheckformulas(), langipcgetitemlangtext(), langipcrunitem(), meactivatemenus(), mebuildmenubar(), meidle(), meinsertmenu(), melocatemenubarnode(), memenu(), memenuitemadded(), memenuitemchanged(), and memenuitemdeleted().

Here is the call graph for this function:

boolean rebuildmenubarlist void   ) 
 

Definition at line 1681 of file menubar.c.

References fl, meactivatemenus(), mebuildmenubar(), menubarlist, and nil.

Referenced by menubuildverb().

Here is the call graph for this function:

void setcurrentmenubarlist hdlmenubarlist   ) 
 

Definition at line 913 of file menubar.c.

References menubarlist.

Referenced by ccinstallmenubar(), clearcancoonglobals(), and setcancoonglobals().


Variable Documentation

tymenubarcallbacks menubarcallbacks
 

Definition at line 85 of file menubar.c.

Referenced by langipcmenuinit(), mecmdkey(), meinit(), menubarchanged(), and menubarinit().

hdlmenubarlist menubarlist
 

Definition at line 83 of file menubar.c.

Referenced by buildmenubarstack(), disposemenubarlist(), disposemenubarstack(), meallocmenuid(), meclearmenubar(), mefreemenuid(), melocatemenubarnode(), memenu(), popmenubarlist(), purgefrommenubarlist(), pushmenubarlist(), rebuildmenubarlist(), and setcurrentmenubarlist().


Generated on Wed Jun 7 08:28:33 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6