langipcmenus.c File Reference

#include "frontier.h"
#include "standard.h"
#include <land.h>
#include "error.h"
#include "kb.h"
#include "memory.h"
#include "strings.h"
#include "lang.h"
#include "langexternal.h"
#include "tablestructure.h"
#include "menubar.h"
#include "menuverbs.h"
#include "meprograms.h"
#include "process.h"
#include "launch.h"
#include "langipc.h"

Include dependency graph for langipcmenus.c:

Go to the source code of this file.

Data Structures

struct  tymenulistrecord

Typedefs

typedef tymenulistrecord ** hdlmenulistrecord

Functions

static boolean langipcfindmenus (long id, hdloutlinerecord houtline, hdlmenulistrecord *hmenus)
static boolean langipcfindmenubarstack (long id, hdlmenubarstack *hstack)
boolean langipcgetmenuhandle (OSType id, short ixarray, Handle *hmenu)
static boolean pushmenulist (long id, hdloutlinerecord houtline, hdlmenubarstack hstack)
static void disposemenubarstack (hdlmenubarstack hstack)
static boolean disposemenulist (long id)
static void disposeallmenulists (void)
static boolean getmenubartable (hdlhashtable *htable)
static boolean getappmenurecord (long id, hdlmenurecord *hrecord)
static boolean buildmenubarstack (hdlmenurecord hmenurecord, short firstmenuid, hdlmenubarstack *hstack)
static boolean buildmenuarray (hdlmenubarstack hstack, hdlmenuarray *hmenuarray)
static boolean langipcsendmenumessage (tyapplicationid id, tyverbtoken message)
static boolean langipcmenuprocessstarted (void)
static boolean langipcmenuprocesskilled (void)
boolean langipcgetitemlangtext (long id, short idmenu, short iditem, Handle *htext, long *signature)
boolean langipccheckformulas (long id)
boolean langipcrunitem (long id, short idmenu, short iditem, long *refcon)
boolean langipcgetmenuarray (long id, short firstmenuid, boolean flclientowned, Handle *hmenuarray)
void langipcdisposemenuarray (long id, Handle hmenusarray)
static boolean langipcmenubarchanged (hdloutlinerecord houtline)
static boolean notifyappvisit (hdlhashnode hnode, ptrvoid refcon)
boolean langipcmenustartup (void)
boolean langipcmenushutdown (void)
static boolean getmenubarid (hdlhashtable htable, const bigstring bs, tyapplicationid *id)
boolean langipcsymbolchanged (hdlhashtable htable, const bigstring bs, boolean flvalue)
boolean langipcsymbolinserted (hdlhashtable htable, const bigstring bs)
boolean langipcsymboldeleted (hdlhashtable htable, const bigstring bs)
boolean langipcmenuinit (void)

Variables

static hdlmenulistrecord hmenulist = nil
static boolean flshuttingmenusdown = false


Typedef Documentation

typedef struct tymenulistrecord ** hdlmenulistrecord
 


Function Documentation

static boolean buildmenuarray hdlmenubarstack  hstack,
hdlmenuarray hmenuarray
[static]
 

Definition at line 269 of file langipcmenus.c.

References tyruntimemenurecord::idmenu, and newclearhandle().

Referenced by langipcgetmenuarray().

Here is the call graph for this function:

static boolean buildmenubarstack hdlmenurecord  hmenurecord,
short  firstmenuid,
hdlmenubarstack hstack
[static]
 

Definition at line 227 of file langipcmenus.c.

References disposemenubarlist(), fl, tymenulistrecord::hstack, mebuildmenubar(), medisposemenubar(), menewmenubar(), menubarlist, and newmenubarlist().

Referenced by langipcgetmenuarray().

Here is the call graph for this function:

static void disposeallmenulists void   )  [static]
 

Definition at line 194 of file langipcmenus.c.

References disposemenulist(), hmenulist, and nil.

Referenced by langipcmenushutdown().

Here is the call graph for this function:

static void disposemenubarstack hdlmenubarstack  hstack  )  [static]
 

Definition at line 144 of file langipcmenus.c.

References tymenulistrecord::hstack, medisposemenubar(), menubarlist, and nil.

Referenced by disposemenulist(), and langipcgetmenuarray().

Here is the call graph for this function:

static boolean disposemenulist long  id  )  [static]
 

Definition at line 156 of file langipcmenus.c.

References disposehandle(), disposemenubarstack(), hmenulist, tymenulistrecord::nextlist, nil, and return().

Referenced by disposeallmenulists(), langipcdisposemenuarray(), langipcmenubarchanged(), and langipcsymbolchanged().

Here is the call graph for this function:

static boolean getappmenurecord long  id,
hdlmenurecord hrecord
[static]
 

Definition at line 209 of file langipcmenus.c.

References bigstring, getmenubartable(), menugetmenubar(), and ostypetostring().

Referenced by langipcgetmenuarray().

Here is the call graph for this function:

static boolean getmenubarid hdlhashtable  htable,
const bigstring  bs,
tyapplicationid id
[static]
 

Definition at line 775 of file langipcmenus.c.

References getmenubartable(), and stringtoostype().

Referenced by langipcsymbolchanged().

Here is the call graph for this function:

static boolean getmenubartable hdlhashtable htable  )  [static]
 

Definition at line 201 of file langipcmenus.c.

References menubartable, and nil.

Referenced by getappmenurecord(), getmenubarid(), langipcmenushutdown(), and langipcmenustartup().

boolean langipccheckformulas long  id  ) 
 

Definition at line 445 of file langipcmenus.c.

References tymenulistrecord::hstack, i, langipcfindmenubarstack(), mecheckformulas(), popmenubarglobals(), and pushmenubarglobals().

Referenced by CheckFormulas().

Here is the call graph for this function:

void langipcdisposemenuarray long  id,
Handle  hmenusarray
 

Definition at line 636 of file langipcmenus.c.

References disposehandle(), and disposemenulist().

Here is the call graph for this function:

static boolean langipcfindmenubarstack long  id,
hdlmenubarstack hstack
[static]
 

Definition at line 94 of file langipcmenus.c.

References tymenulistrecord::hstack, langipcfindmenus(), and nil.

Referenced by langipccheckformulas(), langipcgetitemlangtext(), langipcgetmenuarray(), langipcgetmenuhandle(), langipcrunitem(), and notifyappvisit().

Here is the call graph for this function:

static boolean langipcfindmenus long  id,
hdloutlinerecord  houtline,
hdlmenulistrecord hmenus
[static]
 

Definition at line 66 of file langipcmenus.c.

References fl, hmenulist, tymenulistrecord::houtline, tymenulistrecord::nextlist, and nil.

Referenced by langipcfindmenubarstack(), and langipcmenubarchanged().

boolean langipcgetitemlangtext long  id,
short  idmenu,
short  iditem,
Handle htext,
long signature
 

Definition at line 399 of file langipcmenus.c.

References fl, hnode, tymenulistrecord::hstack, langipcfindmenubarstack(), langipcshowmenunode(), megetnodelangtext(), memenuhit(), menudata, nil, optionkeydown(), popmenubarglobals(), and pushmenubarglobals().

Referenced by osaRunSharedMenuItem().

Here is the call graph for this function:

boolean langipcgetmenuarray long  id,
short  firstmenuid,
boolean  flclientowned,
Handle hmenuarray
 

Definition at line 573 of file langipcmenus.c.

References buildmenuarray(), buildmenubarstack(), disposemenubarstack(), fl, fldisableyield, flshuttingmenusdown, getappmenurecord(), tymenulistrecord::hstack, langipcfindmenubarstack(), and pushmenulist().

Referenced by GetSharedMenus().

Here is the call graph for this function:

boolean langipcgetmenuhandle OSType  id,
short  ixarray,
Handle hmenu
 

Definition at line 109 of file langipcmenus.c.

References copyhandle(), tymenulistrecord::hstack, and langipcfindmenubarstack().

Here is the call graph for this function:

static boolean langipcmenubarchanged hdloutlinerecord  houtline  )  [static]
 

Definition at line 661 of file langipcmenus.c.

References disposemenulist(), tymenulistrecord::houtline, tymenulistrecord::id, idupdatemenus, langipcfindmenus(), and langipcsendmenumessage().

Referenced by langipcmenuinit().

Here is the call graph for this function:

boolean langipcmenuinit void   ) 
 

Definition at line 817 of file langipcmenus.c.

References langipcmenubarchanged(), menubarcallbacks, and tymenubarcallbacks::menubarchangedroutine.

Referenced by langipcstart().

Here is the call graph for this function:

static boolean langipcmenuprocesskilled void   )  [static]
 

Definition at line 371 of file langipcmenus.c.

References bigstring, bserror, idscriptcompleted, landdisposeparamrecord(), landsendverb(), landverbgetsnoreply(), and tyverbrecord::verbtoken.

Referenced by langipcrunitem().

Here is the call graph for this function:

static boolean langipcmenuprocessstarted void   )  [static]
 

Definition at line 356 of file langipcmenus.c.

References processnotbusy().

Referenced by langipcrunitem().

Here is the call graph for this function:

boolean langipcmenushutdown void   ) 
 

Definition at line 746 of file langipcmenus.c.

References disposeallmenulists(), flshuttingmenusdown, getmenubartable(), hashtablevisit(), nil, and notifyappvisit().

Here is the call graph for this function:

boolean langipcmenustartup void   ) 
 

Definition at line 728 of file langipcmenus.c.

References getmenubartable(), hashtablevisit(), nil, and notifyappvisit().

Here is the call graph for this function:

boolean langipcrunitem long  id,
short  idmenu,
short  iditem,
long refcon
 

Definition at line 467 of file langipcmenus.c.

References addprocess(), fl, hnode, tymenulistrecord::hstack, idscriptcompleted, landnewverb(), langipcerrorroutine(), langipcfindmenubarstack(), langipcmenuprocesskilled(), langipcmenuprocessstarted(), long, memenuhit(), meshownode(), meuserselected(), newlyaddedprocess, nil, optionkeydown(), popmenubarglobals(), processkill(), typrocessrecord::processrefcon, pushmenubarglobals(), and shellactivate().

Here is the call graph for this function:

static boolean langipcsendmenumessage tyapplicationid  id,
tyverbtoken  message
[static]
 

Definition at line 325 of file langipcmenus.c.

References bigstring, bserror, landdisposeparamrecord(), landnewverb(), landsendverb(), landverbgetsnoreply(), and nil.

Referenced by langipcmenubarchanged(), langipcsymbolchanged(), and notifyappvisit().

Here is the call graph for this function:

boolean langipcsymbolchanged hdlhashtable  htable,
const bigstring  bs,
boolean  flvalue
 

Definition at line 789 of file langipcmenus.c.

References disposemenulist(), getmenubarid(), tymenulistrecord::id, idupdatemenus, and langipcsendmenumessage().

Here is the call graph for this function:

boolean langipcsymboldeleted hdlhashtable  htable,
const bigstring  bs
 

Definition at line 811 of file langipcmenus.c.

References langipcsymbolchanged().

Here is the call graph for this function:

boolean langipcsymbolinserted hdlhashtable  htable,
const bigstring  bs
 

Definition at line 805 of file langipcmenus.c.

References langipcsymbolchanged().

Here is the call graph for this function:

static boolean notifyappvisit hdlhashnode  hnode,
ptrvoid  refcon
[static]
 

Definition at line 694 of file langipcmenus.c.

References bigstring, gethashkey, h, hnode, tymenulistrecord::hstack, tymenulistrecord::id, idmenuprocessor, idupdatemenus, langexternalgettype(), langipcfindmenubarstack(), langipcsendmenumessage(), and stringtoostype().

Referenced by langipcmenushutdown(), and langipcmenustartup().

Here is the call graph for this function:

static boolean pushmenulist long  id,
hdloutlinerecord  houtline,
hdlmenubarstack  hstack
[static]
 

Definition at line 120 of file langipcmenus.c.

References h, hmenulist, tymenulistrecord::houtline, tymenulistrecord::hstack, and newclearhandle().

Referenced by langipcgetmenuarray().

Here is the call graph for this function:


Variable Documentation

boolean flshuttingmenusdown = false [static]
 

Definition at line 62 of file langipcmenus.c.

Referenced by langipcgetmenuarray(), and langipcmenushutdown().

hdlmenulistrecord hmenulist = nil [static]
 

Definition at line 60 of file langipcmenus.c.

Referenced by disposeallmenulists(), disposemenulist(), langipcfindmenus(), and pushmenulist().


Generated on Sun Jun 4 07:49:38 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6