oppopup.c File Reference

#include "frontier.h"
#include "standard.h"
#include "quickdraw.h"
#include "op.h"
#include "opdisplay.h"
#include "opinternal.h"
#include "opicons.h"
#include "oplineheight.h"
#include "frontierwindows.h"
#include "popup.h"
#include "lang.h"
#include "menueditor.h"
#include "meprograms.h"
#include "tablestructure.h"
#include "threads.h"
#include "strings.h"
#include "mouse.h"
#include "dockmenu.h"
#include "menu.h"
#include "menuverbs.h"

Include dependency graph for oppopup.c:

Go to the source code of this file.

Defines

#define idgetmenuaddresscallback   39
#define maxsubmenus   40

Functions

static boolean opbuildpopupmenu (hdlheadrecord hnode, hdlmenu hmenu)
static boolean oppopupinsertmenuitem (hdlmenu hmenu, short itemnumber, hdlheadrecord hnode)
static boolean oppopupruncallbackscript (tyvaluerecord *val)
static void oppopupresetmenustack (void)
static void oppopupdisposemenusinstack (void)
static boolean oppopupaddtomenustack (hdlmenu hmenu, short idsubmenu)
static void oppopupinsertsubmenu (hdlmenu hmenu, short itemnumber, hdlheadrecord hnode)
static boolean oppopupgetaddresscallback (tyvaluerecord *val)
static boolean opfillpopup (hdlmenu hmenu, short *checkeditem)
static boolean oppopupselect (hdlmenu hmenu, short itemselected)
boolean oprmousedown (Point pt, tyclickflags flags)

Variables

static hdlmenurecord oppopupmenubar
short currmenuid


Define Documentation

#define idgetmenuaddresscallback   39
 

Definition at line 56 of file oppopup.c.

Referenced by oppopupruncallbackscript().

#define maxsubmenus   40
 

Definition at line 58 of file oppopup.c.


Function Documentation

static boolean opbuildpopupmenu hdlheadrecord  hnode,
hdlmenu  hmenu
[static]
 

Definition at line 218 of file oppopup.c.

References bigstring, currmenuid, getheadstring, hnode, opislastsubhead(), opnosubheads(), and oppopupinsertmenuitem().

Referenced by opfillpopup(), and oppopupinsertsubmenu().

Here is the call graph for this function:

static boolean opfillpopup hdlmenu  hmenu,
short checkeditem
[static]
 

Definition at line 299 of file oppopup.c.

References addressvaluetype, bigstring, tyvaluerecord::data, disposevaluerecord(), tyvaluedata::externalvalue, externalvaluetype, fl, getaddressvalue(), h, hnode, idmenuprocessor, langsymbolreference(), menuverbgetsize(), opbuildpopupmenu(), oppopupgetaddresscallback(), oppopupmenubar, and tyvaluerecord::valuetype.

Here is the call graph for this function:

static boolean oppopupaddtomenustack hdlmenu  hmenu,
short  idsubmenu
[static]
 

Definition at line 149 of file oppopup.c.

References maxsubmenus.

Referenced by oppopupinsertsubmenu().

static void oppopupdisposemenusinstack void   )  [static]
 

Definition at line 115 of file oppopup.c.

References disposemenu(), i, and nil.

Here is the call graph for this function:

static boolean oppopupgetaddresscallback tyvaluerecord val  )  [static]
 

Definition at line 285 of file oppopup.c.

References oppopupruncallbackscript().

Referenced by opfillpopup().

Here is the call graph for this function:

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

Definition at line 193 of file oppopup.c.

References bigstring, currmenuid, getheadstring, hnode, mereduceformula(), mereducemenucodes(), ophassubheads(), oppopupinsertsubmenu(), and pushpopupitem().

Referenced by opbuildpopupmenu().

Here is the call graph for this function:

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

Definition at line 170 of file oppopup.c.

References BIGSTRING, currmenuid, hnode, Newmenu(), opbuildpopupmenu(), oppopupaddtomenustack(), and sethierarchicalmenuitem().

Referenced by oppopupinsertmenuitem().

Here is the call graph for this function:

static void oppopupresetmenustack void   )  [static]
 

Definition at line 101 of file oppopup.c.

References nil.

Referenced by oprmousedown().

static boolean oppopupruncallbackscript tyvaluerecord val  )  [static]
 

Definition at line 252 of file oppopup.c.

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

Referenced by oppopupgetaddresscallback().

Here is the call graph for this function:

static boolean oppopupselect hdlmenu  hmenu,
short  itemselected
[static]
 

Definition at line 360 of file oppopup.c.

References flatdown, meuserselected(), nil, oppopoutline(), oppopupmenubar, oppushoutline(), and oprepeatedbump().

Here is the call graph for this function:

boolean oprmousedown Point  pt,
tyclickflags  flags
 

Definition at line 407 of file oppopup.c.

References currmenuid, i, opgetcurrentscreenlines(), opgetlinerect(), oppopupresetmenustack(), outlinedata, pointinrect(), and pt.

Referenced by memousedown(), menustart(), opmousedown(), opstart(), scriptstart(), and tablestart().

Here is the call graph for this function:


Variable Documentation

short currmenuid
 

Definition at line 68 of file oppopup.c.

Referenced by opbuildpopupmenu(), oppopupinsertmenuitem(), oppopupinsertsubmenu(), and oprmousedown().

hdlmenurecord oppopupmenubar [static]
 

Definition at line 60 of file oppopup.c.

Referenced by opfillpopup(), and oppopupselect().


Generated on Thu Jun 8 10:18:43 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6