menu.h File Reference

#include "shelltypes.h"

Include dependency graph for menu.h:

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

Go to the source code of this file.

Defines

#define menuinclude
#define chcommand   commandMark
#define insertsubmenu   -1
#define insertatend   -2

Functions

void drawmenubar (void)
void disposemenu (hdlmenu)
hdlmenu getresourcemenu (short)
boolean getcommandkeystring (byte, tykeyflags, bigstring)
hdlmenu Newmenu (short id, bigstring bstitle)
hdlmenu getmenuhandle (short)
boolean insertmenu (hdlmenu, long)
boolean inserthierarchicmenu (hdlmenu, short)
void removemenu (short)
long trackmenu (Point)
boolean sethierarchicalmenuitem (hdlmenu hmenu, short itemnumber, hdlmenu hsubmenu, short idsubmenu)
boolean gethierarchicalmenuitem (hdlmenu hmenu, short ixmenu, hdlmenu *hsubmenu)
void setmenutitleenable (hdlmenu, short, boolean)
void setmenuitemenable (hdlmenu, short, boolean)
boolean getmenutitleenable (hdlmenu, short)
boolean getmenuitemenable (hdlmenu, short)
void disablemenuitem (hdlmenu, short)
void enablemenuitem (hdlmenu, short)
short countmenuitems (hdlmenu)
void enableallmenuitems (hdlmenu, boolean)
void hilitemenu (short)
void checkmenuitem (hdlmenu, short, boolean)
boolean menuitemmarked (hdlmenu, short)
void markmenuitem (hdlmenu, short, short)
void stylemenuitem (hdlmenu, short, short)
boolean setmenutitle (hdlmenu, bigstring)
boolean setmenuitem (hdlmenu, short, bigstring)
boolean getmenuitem (hdlmenu, short, bigstring)
boolean setmenuitemcommandkey (hdlmenu, short, short)
void getmenuitemcommandkey (hdlmenu, short, short *)
boolean Insertmenuitem (hdlmenu, short, bigstring)
boolean deletemenuitem (hdlmenu, short)
boolean deleteallmenuitems (hdlmenu, short)
boolean deletelastmenuitem (hdlmenu)
boolean pushmenuitem (hdlmenu, short, bigstring, short)
boolean pushresourcemenuitems (hdlmenu, short, OSType)
boolean pushdottedlinemenuitem (hdlmenu)
boolean newtempmenu (hdlmenu *, short *)
short getprevmenuitem (hdlmenu)
short getnextmenuitem (hdlmenu)
boolean initmenusystem (void)
boolean deletemenuitems (hdlmenu, short, short)
void disableallmenuitems (hdlmenu hmenu)


Define Documentation

#define chcommand   commandMark
 

Definition at line 37 of file menu.h.

#define insertatend   -2
 

Definition at line 41 of file menu.h.

Referenced by insertmenu(), and installmenu().

#define insertsubmenu   -1
 

Definition at line 39 of file menu.h.

Referenced by inserthierarchicmenu(), insertmenu(), and meinsertmenuitem().

#define menuinclude
 

Definition at line 28 of file menu.h.


Function Documentation

void checkmenuitem hdlmenu  ,
short  ,
boolean 
 

Definition at line 906 of file menu.c.

Referenced by dockmenuinsertmenuitem(), fontmenuchecker(), justifymenuchecker(), mecheckformulas(), mefillcmdkeypopup(), meinsertmenuitem(), memenuitemchanged(), popupmenuhit(), pushwindowmenuvisit(), shellfontmenuchecker(), shelljustifymenuchecker(), shellleadingmenuchecker(), shellsizemenuchecker(), shellstylemenuchecker(), sizemenuchecker(), and stylemenuchecker().

short countmenuitems hdlmenu   ) 
 

Definition at line 872 of file menu.c.

Referenced by adjustwindowmenu(), deleteallmenuitems(), deletelastmenuitem(), deletemenuitems(), disableallmenuitems(), disableemptymenuitems(), dockmenuinsertmenuitem(), enableallmenuitems(), findinmenu(), getnextmenuitem(), getprevmenuitem(), idealpopupsize(), initwindowmenu(), mebuildmenu(), mecheckformulas(), medeleteallmenubarentries(), memenuitemdeleted(), pushmenuitem(), pushpopupitem(), pushwindowmenuvisit(), setcardpopupfrommenu(), setfontpopup(), shellupdateopenrecentmenu(), shellupdatewindowmenu(), uncheckallmenuitems(), visitmenuitems(), and visitonemenu().

boolean deleteallmenuitems hdlmenu  ,
short 
 

Definition at line 1456 of file menu.c.

Referenced by meremovemenu(), pushresourcemenuitems(), and shellupdatewindowmenu().

boolean deletelastmenuitem hdlmenu   ) 
 

Definition at line 1470 of file menu.c.

References countmenuitems(), and deletemenuitem().

Referenced by shellupdatewindowmenu().

Here is the call graph for this function:

boolean deletemenuitem hdlmenu  ,
short 
 

Definition at line 1425 of file menu.c.

Referenced by adjustwindowmenu(), deleteallmenuitems(), deletelastmenuitem(), deletemenuitems(), getmenutobuild(), memenuitemdeleted(), and shellstart().

boolean deletemenuitems hdlmenu  ,
short  ,
short 
 

Definition at line 1684 of file menu.c.

References countmenuitems(), and deletemenuitem().

Referenced by shellupdateopenrecentmenu().

Here is the call graph for this function:

void disableallmenuitems hdlmenu  hmenu  ) 
 

Definition at line 1708 of file menu.c.

Referenced by dialogmenuenabler(), and shellupdateopenrecentmenu().

void disablemenuitem hdlmenu  ,
short 
 

Definition at line 861 of file menu.c.

Referenced by disableallmenuitems(), disableeditmenuitems(), meinsertmenuitem(), menudisablevisit(), and pushpopupitem().

void disposemenu hdlmenu   ) 
 

Definition at line 464 of file menu.c.

Referenced by dockmenudisposemenusinstack(), medeletemenu(), oppopupdisposemenusinstack(), and popupmenuhit().

void drawmenubar void   ) 
 

Definition at line 338 of file menu.c.

References grabthreadglobals(), releasethreadglobals(), and shellframewindow.

Referenced by menuinstallverb(), menuremoveverb(), meupdatemenubar(), shellstart(), and shellupdatewindowmenu().

Here is the call graph for this function:

void enableallmenuitems hdlmenu  ,
boolean 
 

Definition at line 886 of file menu.c.

Referenced by shelladjustmenus().

void enablemenuitem hdlmenu  ,
short 
 

Definition at line 866 of file menu.c.

Referenced by adjustmenus(), dialogmenuenabler(), fontmenuchecker(), and shelladjustmenus().

boolean getcommandkeystring byte  ,
tykeyflags  ,
bigstring 
 

Definition at line 293 of file menu.c.

References chnul, keycommand, keyoption, keyshift, popleadingchars(), pushchar(), pushstring(), and setemptystring.

Referenced by medisplaycmdkeypopup(), and menugetcommandkeyverb().

Here is the call graph for this function:

boolean gethierarchicalmenuitem hdlmenu  hmenu,
short  ixmenu,
hdlmenu *  hsubmenu
 

Definition at line 681 of file menu.c.

References NULL.

Referenced by medeleteallmenubarentries().

hdlmenu getmenuhandle short   ) 
 

Definition at line 482 of file menu.c.

References shellframewindow.

boolean getmenuitem hdlmenu  ,
short  ,
bigstring 
 

Definition at line 1180 of file menu.c.

Referenced by clickpopup(), disableemptymenuitems(), findinmenu(), fontmenuchecker(), getfontpopup(), handlemenu(), idealpopupsize(), setcardpopupfrommenu(), setfontpopup(), shellfontmenuchecker(), shellhandlemenu(), and shelltgetmainmenu().

void getmenuitemcommandkey hdlmenu  ,
short  ,
short
 

Definition at line 1315 of file menu.c.

Referenced by mecmdkeypopupselect().

boolean getmenuitemenable hdlmenu  ,
short 
 

Definition at line 832 of file menu.c.

References assert.

boolean getmenutitleenable hdlmenu  ,
short 
 

Definition at line 799 of file menu.c.

References shellframewindow.

Referenced by memenuhit().

short getnextmenuitem hdlmenu   ) 
 

Definition at line 1632 of file menu.c.

References countmenuitems(), ct, and menuitemmarked().

Here is the call graph for this function:

short getprevmenuitem hdlmenu   ) 
 

Definition at line 1609 of file menu.c.

References countmenuitems(), ct, and menuitemmarked().

Here is the call graph for this function:

hdlmenu getresourcemenu short   ) 
 

Definition at line 354 of file menu.c.

References shellinstance.

Referenced by installhierarchicmenu(), installmenu(), and popupmenuhit().

void hilitemenu short   ) 
 

Definition at line 898 of file menu.c.

Referenced by shellhandlemenu().

boolean initmenusystem void   ) 
 

Definition at line 1656 of file menu.c.

References hAccel, lockhandle(), newhandle(), NULL, and unlockhandle().

Referenced by shellinit().

Here is the call graph for this function:

boolean inserthierarchicmenu hdlmenu  ,
short 
 

Definition at line 552 of file menu.c.

References insertsubmenu, and shellframewindow.

Referenced by installhierarchicmenu(), meactivatemenus(), and popupmenuhit().

boolean insertmenu hdlmenu  ,
long 
 

Definition at line 502 of file menu.c.

References fl, insertatend, insertsubmenu, and shellframewindow.

Referenced by installmenu(), meactivatemenus(), mebuildmenubar(), meinsertmenu(), meinsertmenuitem(), and menuinstallverb().

boolean Insertmenuitem hdlmenu  ,
short  ,
bigstring 
 

Definition at line 1351 of file menu.c.

References assert, bigstring, chspace, copyptocstring(), equalstrings(), fl, isemptystring, isseparatorstring(), setstringwithchar, and STR_menuseparator.

Referenced by meinsertmenuitem().

Here is the call graph for this function:

void markmenuitem hdlmenu  ,
short  ,
short 
 

Definition at line 964 of file menu.c.

Referenced by pushwindowmenuvisit().

boolean menuitemmarked hdlmenu  ,
short 
 

Definition at line 938 of file menu.c.

Referenced by getnextmenuitem(), and getprevmenuitem().

hdlmenu Newmenu short  id,
bigstring  bstitle
 

Definition at line 408 of file menu.c.

References copyptocstring(), and NULL.

Referenced by dockmenuinsertsubmenu(), getmenutobuild(), oppopupinsertsubmenu(), and popupmenuhit().

Here is the call graph for this function:

boolean newtempmenu hdlmenu *  ,
short
 

boolean pushdottedlinemenuitem hdlmenu   ) 
 

Definition at line 1576 of file menu.c.

References pushmenuitem(), and STR_menuseparator.

Referenced by mefillcmdkeypopup(), shellpushmajortype(), and shellupdatewindowmenu().

Here is the call graph for this function:

boolean pushmenuitem hdlmenu  ,
short  ,
bigstring  ,
short 
 

Definition at line 1477 of file menu.c.

Referenced by foldermenucallback(), mefillcmdkeypopup(), pushdottedlinemenuitem(), pushpopupitem(), pushresourcemenuitems(), and pushwindowmenuvisit().

boolean pushresourcemenuitems hdlmenu  ,
short  ,
OSType 
 

Definition at line 1539 of file menu.c.

References bigstring, deleteallmenuitems(), fontgetname(), and pushmenuitem().

Referenced by installresitems().

Here is the call graph for this function:

void removemenu short   ) 
 

Definition at line 580 of file menu.c.

References shellframewindow.

Referenced by menuremoveverb(), meremovemenu(), and popupmenuhit().

boolean sethierarchicalmenuitem hdlmenu  hmenu,
short  itemnumber,
hdlmenu  hsubmenu,
short  idsubmenu
 

Definition at line 640 of file menu.c.

References nil.

Referenced by dockmenuinsertsubmenu(), meinsertmenuitem(), melinkparentitem(), and oppopupinsertsubmenu().

boolean setmenuitem hdlmenu  ,
short  ,
bigstring 
 

Definition at line 1117 of file menu.c.

Referenced by adjustmenus(), mecheckformulas(), memenuitemchanged(), shelladjustmenus(), shelladjustundo(), and shellsetmenuitemstring().

boolean setmenuitemcommandkey hdlmenu  ,
short  ,
short 
 

Definition at line 1218 of file menu.c.

References bigstring, copyctopstring(), copyptocstring(), NULL, pullfromhandle(), and setemptystring.

Referenced by mefillcmdkeypopup(), meinsertmenuitem(), melinkparentitem(), and memenuitemchanged().

Here is the call graph for this function:

void setmenuitemenable hdlmenu  ,
short  ,
boolean 
 

Definition at line 757 of file menu.c.

Referenced by adjustmenus(), disableallmenuitems(), disablemenuitem(), enableallmenuitems(), enablemenuitem(), mecheckformulas(), memenuitemchanged(), shelladjustmenus(), shelladjustundo(), and shellupdatewindowmenu().

boolean setmenutitle hdlmenu  ,
bigstring 
 

Definition at line 1038 of file menu.c.

References shellframewindow, and TRUE.

void setmenutitleenable hdlmenu  ,
short  ,
boolean 
 

Definition at line 717 of file menu.c.

References assert, and shellframewindow.

Referenced by memenuhit().

void stylemenuitem hdlmenu  ,
short  ,
short 
 

Definition at line 997 of file menu.c.

Referenced by pushwindowmenuvisit(), shellsizemenuchecker(), and sizemenuchecker().

long trackmenu Point   ) 
 

Referenced by shellhandlemouse().


Generated on Wed Jun 7 08:03:10 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6