dockmenu.c File Reference

#include "frontier.h"
#include "standard.h"
#include "menu.h"
#include "strings.h"
#include "cancoon.h"
#include "launch.h"
#include "tablestructure.h"
#include "popup.h"
#include "meprograms.h"
#include "dockmenu.h"
#include "opinternal.h"
#include "menuverbs.h"

Include dependency graph for dockmenu.c:

Go to the source code of this file.

Defines

#define idgetdockmenumenuaddresscallback   43
#define kmaxcommands   100
#define kbasecommandid   3000
#define maxsubmenus   40

Functions

static boolean dockmenubuildpopupmenu (hdlheadrecord hnode, hdlmenu hmenu)
static void dockmenudisposemenusinstack (void)
static void dockmenuresetmenustack (void)
static boolean dockmenuaddtomenustack (hdlmenu hmenu, short id)
static void dockmenuinsertsubmenu (hdlmenu hmenu, short itemnumber, hdlheadrecord hnode)
static boolean dockmenugetaddresscallback (tyvaluerecord *val)
static boolean dockmenuinsertmenuitem (hdlmenu hmenu, short itemnumber, hdlheadrecord hnode)
static boolean dockmenufillpopup (hdlmenu hmenu, hdlmenurecord *hmreturned)
static void dockmenuruncommand (hdlmenurecord hm, short itemhit)


Define Documentation

#define idgetdockmenumenuaddresscallback   43
 

Definition at line 48 of file dockmenu.c.

Referenced by dockmenugetaddresscallback().

#define kbasecommandid   3000
 

Definition at line 51 of file dockmenu.c.

Referenced by dockmenufillpopup().

#define kmaxcommands   100
 

Definition at line 50 of file dockmenu.c.

#define maxsubmenus   40
 

Definition at line 52 of file dockmenu.c.

Referenced by dockmenuaddtomenustack(), and oppopupaddtomenustack().


Function Documentation

static boolean dockmenuaddtomenustack hdlmenu  hmenu,
short  id
[static]
 

Definition at line 157 of file dockmenu.c.

References maxsubmenus.

Referenced by dockmenuinsertsubmenu().

static boolean dockmenubuildpopupmenu hdlheadrecord  hnode,
hdlmenu  hmenu
[static]
 

Definition at line 280 of file dockmenu.c.

References bigstring, dockmenuinsertmenuitem(), getheadstring, hnode, opislastsubhead(), and opnosubheads().

Referenced by dockmenufillpopup(), and dockmenuinsertsubmenu().

Here is the call graph for this function:

static void dockmenudisposemenusinstack void   )  [static]
 

Definition at line 111 of file dockmenu.c.

References disposemenu(), i, and nil.

Referenced by dockmenufillpopup(), dockmenuresetmenustack(), and dockmenuruncommand().

Here is the call graph for this function:

static boolean dockmenufillpopup hdlmenu  hmenu,
hdlmenurecord hmreturned
[static]
 

Definition at line 314 of file dockmenu.c.

References addressvaluetype, bigstring, tyvaluerecord::data, disposevaluerecord(), dockmenubuildpopupmenu(), dockmenudisposemenusinstack(), dockmenugetaddresscallback(), tyvaluedata::externalvalue, externalvaluetype, fl, getaddressvalue(), h, hnode, idmenuprocessor, kbasecommandid, langsymbolreference(), menuverbgetsize(), nil, roottable, and tyvaluerecord::valuetype.

Here is the call graph for this function:

static boolean dockmenugetaddresscallback tyvaluerecord val  )  [static]
 

Definition at line 207 of file dockmenu.c.

References bigstring, fl, getsystemtablescript(), grabthreadglobals(), idgetdockmenumenuaddresscallback, langrun(), newtexthandle(), oppopoutline(), oppushoutline(), outlinedata, and releasethreadglobals().

Referenced by dockmenufillpopup().

Here is the call graph for this function:

static boolean dockmenuinsertmenuitem hdlmenu  hmenu,
short  itemnumber,
hdlheadrecord  hnode
[static]
 

Definition at line 240 of file dockmenu.c.

References bigstring, checkmenuitem(), countmenuitems(), dockmenuinsertsubmenu(), getheadstring, hnode, mereduceformula(), mereducemenucodes(), opnosubheads(), and pushpopupitem().

Referenced by dockmenubuildpopupmenu().

Here is the call graph for this function:

static void dockmenuinsertsubmenu hdlmenu  hmenu,
short  itemnumber,
hdlheadrecord  hnode
[static]
 

Definition at line 178 of file dockmenu.c.

References BIGSTRING, dockmenuaddtomenustack(), dockmenubuildpopupmenu(), hnode, Newmenu(), and sethierarchicalmenuitem().

Referenced by dockmenuinsertmenuitem().

Here is the call graph for this function:

static void dockmenuresetmenustack void   )  [static]
 

Definition at line 95 of file dockmenu.c.

References dockmenudisposemenusinstack(), and nil.

Here is the call graph for this function:

static void dockmenuruncommand hdlmenurecord  hm,
short  itemhit
[static]
 

Definition at line 381 of file dockmenu.c.

References bigstring, dockmenudisposemenusinstack(), flatdown, getheadstring, meuserselected(), oppopoutline(), oppushoutline(), and oprepeatedbump().

Here is the call graph for this function:


Generated on Thu Jun 1 07:03:12 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6