menu.c File Reference

#include "frontier.h"
#include "standard.h"
#include "cursor.h"
#include "error.h"
#include "menu.h"
#include "memory.h"
#include "strings.h"
#include "threads.h"

Include dependency graph for menu.c:

Go to the source code of this file.

Defines

#define idtempmenu   3000

Functions

static boolean isseparatorstring (bigstring bs)
boolean getcommandkeystring (byte chkey, tykeyflags keyflags, bigstring bscmdkey)
void drawmenubar (void)
hdlmenu getresourcemenu (short id)
hdlmenu Newmenu (short idmenu, bigstring bstitle)
void disposemenu (hdlmenu hmenu)
hdlmenu getmenuhandle (short id)
boolean insertmenu (hdlmenu hmenu, long idbefore)
boolean inserthierarchicmenu (hdlmenu hmenu, short idmenu)
void removemenu (short idmenu)
boolean sethierarchicalmenuitem (hdlmenu hmenu, short itemnumber, hdlmenu hsubmenu, short idsubmenu)
boolean gethierarchicalmenuitem (hdlmenu hmenu, short ixmenu, hdlmenu *hsubmenu)
void setmenutitleenable (hdlmenu hmenu, short idmenu, boolean fl)
void setmenuitemenable (hdlmenu hmenu, short item, boolean fl)
boolean getmenutitleenable (hdlmenu hmenu, short idmenu)
boolean getmenuitemenable (hdlmenu hmenu, short item)
void disablemenuitem (hdlmenu hmenu, short item)
void enablemenuitem (hdlmenu hmenu, short item)
short countmenuitems (hdlmenu hmenu)
void enableallmenuitems (hdlmenu hmenu, boolean fl)
void hilitemenu (short id)
void checkmenuitem (hdlmenu hmenu, short ixmenu, boolean fl)
boolean menuitemmarked (hdlmenu hmenu, short ixmenu)
void markmenuitem (hdlmenu hmenu, short ixmenu, short mark)
void stylemenuitem (hdlmenu hmenu, short ixmenu, short style)
boolean setmenutitle (hdlmenu hmenu, bigstring bs)
static boolean getmenutitle (hdlmenu hmenu, bigstring bs)
boolean setmenuitem (hdlmenu hmenu, short ixmenu, bigstring bs)
boolean getmenuitem (hdlmenu hmenu, short ixmenu, bigstring bs)
boolean setmenuitemcommandkey (hdlmenu hmenu, short ixmenu, short key)
void getmenuitemcommandkey (hdlmenu hmenu, short ixmenu, short *key)
boolean Insertmenuitem (hdlmenu hmenu, short ixmenu, bigstring bs)
boolean deletemenuitem (hdlmenu hmenu, short ixmenu)
boolean deleteallmenuitems (hdlmenu hmenu, short afteritem)
boolean deletelastmenuitem (hdlmenu hmenu)
boolean pushmenuitem (hdlmenu hmenu, short idmenu, bigstring bs, short commandid)
boolean pushresourcemenuitems (hdlmenu hmenu, short idmenu, OSType restype)
boolean pushdottedlinemenuitem (hdlmenu hmenu)
short getprevmenuitem (hdlmenu hmenu)
short getnextmenuitem (hdlmenu hmenu)
boolean initmenusystem (void)
boolean deletemenuitems (hdlmenu hmenu, short firstitem, short itemcount)
void disableallmenuitems (hdlmenu hmenu)


Define Documentation

#define idtempmenu   3000
 

Definition at line 43 of file menu.c.


Function Documentation

void checkmenuitem hdlmenu  hmenu,
short  ixmenu,
boolean  fl
 

Definition at line 906 of file menu.c.

short countmenuitems hdlmenu  hmenu  ) 
 

Definition at line 872 of file menu.c.

boolean deleteallmenuitems hdlmenu  hmenu,
short  afteritem
 

Definition at line 1456 of file menu.c.

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

Here is the call graph for this function:

boolean deletelastmenuitem hdlmenu  hmenu  ) 
 

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  hmenu,
short  ixmenu
 

Definition at line 1425 of file menu.c.

References fl.

boolean deletemenuitems hdlmenu  hmenu,
short  firstitem,
short  itemcount
 

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.

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

Here is the call graph for this function:

void disablemenuitem hdlmenu  hmenu,
short  item
 

Definition at line 861 of file menu.c.

References setmenuitemenable().

Here is the call graph for this function:

void disposemenu hdlmenu  hmenu  ) 
 

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  hmenu,
boolean  fl
 

Definition at line 886 of file menu.c.

References countmenuitems(), and setmenuitemenable().

Here is the call graph for this function:

void enablemenuitem hdlmenu  hmenu,
short  item
 

Definition at line 866 of file menu.c.

References setmenuitemenable().

Here is the call graph for this function:

boolean getcommandkeystring byte  chkey,
tykeyflags  keyflags,
bigstring  bscmdkey
 

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  id  ) 
 

Definition at line 482 of file menu.c.

References shellframewindow.

boolean getmenuitem hdlmenu  hmenu,
short  ixmenu,
bigstring  bs
 

Definition at line 1180 of file menu.c.

References assert, copyctopstring(), and getmenutitle().

Here is the call graph for this function:

void getmenuitemcommandkey hdlmenu  hmenu,
short  ixmenu,
short key
 

Definition at line 1315 of file menu.c.

Referenced by mecmdkeypopupselect().

boolean getmenuitemenable hdlmenu  hmenu,
short  item
 

Definition at line 832 of file menu.c.

References assert.

static boolean getmenutitle hdlmenu  hmenu,
bigstring  bs
[static]
 

Definition at line 1071 of file menu.c.

References assert, copyctopstring(), copystring(), shellframewindow, and TRUE.

Referenced by getmenuitem().

Here is the call graph for this function:

boolean getmenutitleenable hdlmenu  hmenu,
short  idmenu
 

Definition at line 799 of file menu.c.

References shellframewindow.

Referenced by memenuhit().

short getnextmenuitem hdlmenu  hmenu  ) 
 

Definition at line 1632 of file menu.c.

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

Here is the call graph for this function:

short getprevmenuitem hdlmenu  hmenu  ) 
 

Definition at line 1609 of file menu.c.

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

Here is the call graph for this function:

hdlmenu getresourcemenu short  id  ) 
 

Definition at line 354 of file menu.c.

References shellinstance.

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

void hilitemenu short  id  ) 
 

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  hmenu,
short  idmenu
 

Definition at line 552 of file menu.c.

References insertsubmenu, and shellframewindow.

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

boolean insertmenu hdlmenu  hmenu,
long  idbefore
 

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  hmenu,
short  ixmenu,
bigstring  bs
 

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:

static boolean isseparatorstring bigstring  bs  )  [static]
 

Definition at line 46 of file menu.c.

References equalstrings(), setstringwithchar, and STR_menuseparator.

Referenced by Insertmenuitem(), pushmenuitem(), and setmenuitem().

Here is the call graph for this function:

void markmenuitem hdlmenu  hmenu,
short  ixmenu,
short  mark
 

Definition at line 964 of file menu.c.

Referenced by pushwindowmenuvisit().

boolean menuitemmarked hdlmenu  hmenu,
short  ixmenu
 

Definition at line 938 of file menu.c.

Referenced by getnextmenuitem(), and getprevmenuitem().

hdlmenu Newmenu short  idmenu,
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 pushdottedlinemenuitem hdlmenu  hmenu  ) 
 

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  hmenu,
short  idmenu,
bigstring  bs,
short  commandid
 

Definition at line 1477 of file menu.c.

References bigstring, chspace, copyptocstring(), countmenuitems(), fl, isemptystring, isseparatorstring(), NULL, and setstringwithchar.

Here is the call graph for this function:

boolean pushresourcemenuitems hdlmenu  hmenu,
short  idmenu,
OSType  restype
 

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  idmenu  ) 
 

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  hmenu,
short  ixmenu,
bigstring  bs
 

Definition at line 1117 of file menu.c.

References copyptocstring(), isemptystring, and isseparatorstring().

Here is the call graph for this function:

boolean setmenuitemcommandkey hdlmenu  hmenu,
short  ixmenu,
short  key
 

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  hmenu,
short  item,
boolean  fl
 

Definition at line 757 of file menu.c.

boolean setmenutitle hdlmenu  hmenu,
bigstring  bs
 

Definition at line 1038 of file menu.c.

References shellframewindow, and TRUE.

void setmenutitleenable hdlmenu  hmenu,
short  idmenu,
boolean  fl
 

Definition at line 717 of file menu.c.

References assert, and shellframewindow.

Referenced by memenuhit().

void stylemenuitem hdlmenu  hmenu,
short  ixmenu,
short  style
 

Definition at line 997 of file menu.c.


Generated on Wed Jun 7 08:02:59 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6