appletmenuops.c File Reference

#include "appletstrings.h"
#include "appletdynamicarrays.h"
#include "appletmenuops.h"

Include dependency graph for appletmenuops.c:

Go to the source code of this file.

Functions

boolean pushmenuitem (MenuHandle hmenu, bigstring bs, boolean flenabled)
void deletemenuitem (MenuHandle hmenu, short ixmenu)
void deleteallmenuitems (MenuHandle hmenu)
boolean getmenuitem (MenuHandle hmenu, short ixmenu, bigstring bs)
boolean setmenuitem (MenuHandle hmenu, short ixmenu, bigstring bs)
void checkmenuitem (MenuHandle hmenu, short ixmenu, boolean fl)
void setmenuitemmark (MenuHandle hmenu, short ixmenu, char ch)
boolean visitonemenu (short idmenu, tymenuvisitcallback visitproc)
boolean visitallmenus (tymenuvisitcallback visitproc)
static boolean disablemenucallback (MenuHandle hmenu, short num)
void disableallmenus (void)
static boolean enablemenucallback (MenuHandle hmenu, short num)
void enableallmenus (void)
void stylemenuitem (MenuHandle hmenu, short ixmenu, short style)
void installmenubefore (short idmenu, short idafter, MenuHandle *hmenu)
void installmenu (short idmenu, MenuHandle *hmenu)
void installhierarchicmenu (short idmenu, MenuHandle *hmenu)
void deletemenu (short idmenu)
void setmenuitemenable (MenuHandle hmenu, short item, boolean fl)
void disablemenuitem (MenuHandle hmenu, short item)
void enablemenuitem (MenuHandle hmenu, short item)
short countmenuitems (MenuHandle hmenu)
void uncheckallmenuitems (MenuHandle hmenu)
void disableallmenuitems (MenuHandle hmenu)
void enableallmenuitems (MenuHandle hmenu)
void disableemptymenuitems (MenuHandle hmenu)
boolean findinmenu (MenuHandle hmenu, bigstring bs, short *item)

Variables

tydynamicarray menuarray = {longsizeof (MenuHandle), nil}


Function Documentation

void checkmenuitem MenuHandle  hmenu,
short  ixmenu,
boolean  fl
 

Definition at line 85 of file appletmenuops.c.

short countmenuitems MenuHandle  hmenu  ) 
 

Definition at line 263 of file appletmenuops.c.

void deleteallmenuitems MenuHandle  hmenu  ) 
 

Definition at line 53 of file appletmenuops.c.

References assert, countmenuitems(), ct, deletemenuitem(), i, and nil.

Here is the call graph for this function:

void deletemenu short  idmenu  ) 
 

Definition at line 211 of file appletmenuops.c.

References menuarray, and removefromdynamicarray().

Referenced by flipcustommenu(), and testmenus().

Here is the call graph for this function:

void deletemenuitem MenuHandle  hmenu,
short  ixmenu
 

Definition at line 47 of file appletmenuops.c.

void disableallmenuitems MenuHandle  hmenu  ) 
 

Definition at line 281 of file appletmenuops.c.

References countmenuitems(), ct, i, and setmenuitemenable().

Here is the call graph for this function:

void disableallmenus void   ) 
 

Definition at line 154 of file appletmenuops.c.

References disablemenucallback(), and visitallmenus().

Referenced by dialogmenuenabler().

Here is the call graph for this function:

void disableemptymenuitems MenuHandle  hmenu  ) 
 

Definition at line 309 of file appletmenuops.c.

References bigstring, countmenuitems(), getmenuitem(), i, and stringlength.

Here is the call graph for this function:

static boolean disablemenucallback MenuHandle  hmenu,
short  num
[static]
 

Definition at line 146 of file appletmenuops.c.

Referenced by disableallmenus().

void disablemenuitem MenuHandle  hmenu,
short  item
 

Definition at line 251 of file appletmenuops.c.

References setmenuitemenable().

Here is the call graph for this function:

void enableallmenuitems MenuHandle  hmenu  ) 
 

Definition at line 295 of file appletmenuops.c.

References countmenuitems(), ct, i, and setmenuitemenable().

Here is the call graph for this function:

void enableallmenus void   ) 
 

Definition at line 170 of file appletmenuops.c.

References enablemenucallback(), and visitallmenus().

Referenced by dialogmenuenabler().

Here is the call graph for this function:

static boolean enablemenucallback MenuHandle  hmenu,
short  num
[static]
 

Definition at line 162 of file appletmenuops.c.

Referenced by enableallmenus().

void enablemenuitem MenuHandle  hmenu,
short  item
 

Definition at line 257 of file appletmenuops.c.

References setmenuitemenable().

Here is the call graph for this function:

boolean findinmenu MenuHandle  hmenu,
bigstring  bs,
short item
 

Definition at line 338 of file appletmenuops.c.

References bigstring, countmenuitems(), equalstrings(), getmenuitem(), and i.

Here is the call graph for this function:

boolean getmenuitem MenuHandle  hmenu,
short  ixmenu,
bigstring  bs
 

Definition at line 66 of file appletmenuops.c.

void installhierarchicmenu short  idmenu,
MenuHandle hmenu
 

Definition at line 205 of file appletmenuops.c.

References installmenubefore().

Here is the call graph for this function:

void installmenu short  idmenu,
MenuHandle hmenu
 

Definition at line 199 of file appletmenuops.c.

References installmenubefore().

Here is the call graph for this function:

void installmenubefore short  idmenu,
short  idafter,
MenuHandle hmenu
 

Definition at line 182 of file appletmenuops.c.

References addtodynamicarray(), h, menuarray, and nil.

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

Here is the call graph for this function:

boolean pushmenuitem MenuHandle  hmenu,
bigstring  bs,
boolean  flenabled
 

Definition at line 15 of file appletmenuops.c.

References bigstring, chspace, copystring(), equalstrings(), isemptystring, and setstringwithchar.

Here is the call graph for this function:

boolean setmenuitem MenuHandle  hmenu,
short  ixmenu,
bigstring  bs
 

Definition at line 77 of file appletmenuops.c.

void setmenuitemenable MenuHandle  hmenu,
short  item,
boolean  fl
 

Definition at line 219 of file appletmenuops.c.

References assert, and nil.

void setmenuitemmark MenuHandle  hmenu,
short  ixmenu,
char  ch
 

Definition at line 91 of file appletmenuops.c.

void stylemenuitem MenuHandle  hmenu,
short  ixmenu,
short  style
 

Definition at line 176 of file appletmenuops.c.

void uncheckallmenuitems MenuHandle  hmenu  ) 
 

Definition at line 269 of file appletmenuops.c.

References countmenuitems(), ct, and i.

Here is the call graph for this function:

boolean visitallmenus tymenuvisitcallback  visitproc  ) 
 

Definition at line 124 of file appletmenuops.c.

References ct, i, indexdynamicarray(), menuarray, nil, and sizedynamicarray().

Referenced by disableallmenus(), and enableallmenus().

Here is the call graph for this function:

boolean visitonemenu short  idmenu,
tymenuvisitcallback  visitproc
 

Definition at line 101 of file appletmenuops.c.

References countmenuitems(), and i.

Here is the call graph for this function:


Variable Documentation

tydynamicarray menuarray = {longsizeof (MenuHandle), nil}
 

Definition at line 12 of file appletmenuops.c.

Referenced by deletemenu(), installmenubefore(), and visitallmenus().


Generated on Wed May 31 21:39:54 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6