shellmenu.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "cursor.h"
#include "dialogs.h"
#include "font.h"
#include "menu.h"
#include "resources.h"
#include "sounds.h"
#include "strings.h"
#include "popup.h"
#include "quickdraw.h"
#include "frontierwindows.h"
#include "kb.h"
#include "about.h"
#include "shell.h"
#include "shell.rsrc.h"
#include "shellhooks.h"
#include "shellmenu.h"
#include "shellprint.h"
#include "shellprivate.h"
#include "cancoon.h"
#include "tablestructure.h"
#include "ops.h"
#include "langinternal.h"

Include dependency graph for shellmenu.c:

Go to the source code of this file.

Functions

static boolean menudisablevisit (hdlmenu hmenu, short item)
static boolean visitonemenu (short idmenu, boolean(*visitproc)(hdlmenu, short))
static boolean visitmenuitems (boolean(*visitproc)(hdlmenu, short))
hdlmenu shellmenuhandle (short idmenu)
boolean shelltgetmainmenu (bigstring bsmenu, hdlmenu *hmenu, short *idmenu)
static boolean pushmenustack (short idmenu, hdlmenu hmenu)
static boolean installmenu (short idmenu)
static boolean installhierarchicmenu (short idmenu)
static boolean installresitems (short idmenu, OSType restype)
boolean shellinitmenus (void)
void shellgetlastmenuid (short *id)
boolean shelleditcommand (tyeditcommand editcmd)
static boolean shellfontmenuchecker (hdlmenu hmenu, short itemnumber)
static boolean shellsizemenuchecker (hdlmenu hmenu, short itemnumber)
static boolean shellstylemenuchecker (hdlmenu hmenu, short itemnumber)
static boolean shellleadingmenuchecker (hdlmenu hmenu, short itemnumber)
static boolean shelljustifymenuchecker (hdlmenu hmenu, short itemnumber)
static void shellcheckfontsizestyle (void)
void shelladjustundo (void)
void shellforcemenuadjust (void)
void shellmodaldialogmenuadjust (void)
static boolean shellsetmenuitemstring (hdlmenu hmenu, short ixmenu, short ixitemstring)
void shelladjustmenus (void)
void shellupdatemenus (void)
boolean shellhandlemenu (long menucode)
void runfilemenuscript (short ixmenu)
void getfilemenuitemidentifier (short ixmenu, bigstring bsitem)
void runopenrecentmenuscript (short iditem)
void getcommonstylesmenuitemtext (short ixmenu, bigstring bsmenuitem)
void runeditmenuscript (short idmenu, short iditem)
void geteditmenuitemidentifier (short ixmenu, short ixitem, bigstring bsitem)
void shellupdateopenrecentmenu (void)

Variables

tymenuinfo menustack [ctmenustack]
short topmenustack = -1
static hdlmenu happlemenu
static tymenustate menustate = dirtymenus


Function Documentation

void getcommonstylesmenuitemtext short  ixmenu,
bigstring  bsmenuitem
 

Definition at line 2269 of file shellmenu.c.

References BIGSTRING, bigstring, copystring(), grabthreadglobals(), langrunstringnoerror(), nil, parsedialogstring(), releasethreadglobals(), and setemptystring.

Referenced by shelladjustmenus().

Here is the call graph for this function:

void geteditmenuitemidentifier short  ixmenu,
short  ixitem,
bigstring  bsitem
 

Definition at line 2353 of file shellmenu.c.

References BIGSTRING, copystring(), editmenu, and insertdatetimeitem.

Referenced by runeditmenuscript().

Here is the call graph for this function:

void getfilemenuitemidentifier short  ixmenu,
bigstring  bsitem
 

Definition at line 2151 of file shellmenu.c.

References assert, BIGSTRING, closeitem, copystring(), newitem, openitem, quititem, revertitem, saveasitem, and saveitem.

Referenced by runfilemenuscript().

Here is the call graph for this function:

static boolean installhierarchicmenu short  idmenu  )  [static]
 

Definition at line 290 of file shellmenu.c.

References getresourcemenu(), h, inserthierarchicmenu(), nil, and pushmenustack().

Referenced by initmenus(), and shellinitmenus().

Here is the call graph for this function:

static boolean installmenu short  idmenu  )  [static]
 

Definition at line 272 of file shellmenu.c.

References getresourcemenu(), h, insertatend, insertmenu(), nil, and pushmenustack().

Referenced by initmenus(), initwindowmenu(), and shellinitmenus().

Here is the call graph for this function:

static boolean installresitems short  idmenu,
OSType  restype
[static]
 

Definition at line 308 of file shellmenu.c.

References h, nil, pushresourcemenuitems(), and shellmenuhandle().

Referenced by shellinitmenus().

Here is the call graph for this function:

static boolean menudisablevisit hdlmenu  hmenu,
short  item
[static]
 

Definition at line 93 of file shellmenu.c.

References disablemenuitem(), and happlemenu.

Referenced by shelladjustmenus(), and shellinitmenus().

Here is the call graph for this function:

static boolean pushmenustack short  idmenu,
hdlmenu  hmenu
[static]
 

Definition at line 255 of file shellmenu.c.

References ctmenustack, tymenuinfo::idmenu, tymenuinfo::macmenu, menustack, and topmenustack.

Referenced by installhierarchicmenu(), and installmenu().

void runeditmenuscript short  idmenu,
short  iditem
 

Definition at line 2322 of file shellmenu.c.

References bigstring, geteditmenuitemidentifier(), getsystemtablescript(), grabthreadglobals(), idruneditmenuscript, langrunstringnoerror(), nil, parsedialogstring(), releasethreadglobals(), and roottable.

Referenced by shellhandlemenu().

Here is the call graph for this function:

void runfilemenuscript short  ixmenu  ) 
 

Definition at line 2119 of file shellmenu.c.

References bigstring, getfilemenuitemidentifier(), getsystemtablescript(), grabthreadglobals(), idrunfilemenuscript, langrunstringnoerror(), nil, parsedialogstring(), releasethreadglobals(), and roottable.

Referenced by shellhandlemenu().

Here is the call graph for this function:

void runopenrecentmenuscript short  iditem  ) 
 

Definition at line 2243 of file shellmenu.c.

References bigstring, getsystemtablescript(), grabthreadglobals(), idrunopenrecentmenuscript, langrunstringnoerror(), nil, numbertostring(), parsedialogstring(), and releasethreadglobals().

Referenced by shellhandlemenu().

Here is the call graph for this function:

void shelladjustmenus void   ) 
 

Definition at line 1038 of file shellmenu.c.

References bigstring, ccfindrootwindow(), ccinexpertmode(), clearbytes(), clearitem, closeitem, commonstylesitem, copyitem, cutitem, editmenu, enableallmenuitems(), enablemenuitem(), filemenu, findandreplaceitem, tyselectioninfo::flcansetfont, tyselectioninfo::flcansetjust, tyselectioninfo::flcansetleading, tyselectioninfo::flcansetsize, tyselectioninfo::flcansetstyle, tywindowinfo::flmadechanges, fontitem, getcommonstylesmenuitemtext(), getfrontwindow(), getrootwindow(), idcancoonconfig, iddefaultconfig, idscriptprocessor, insertdatetimeitem, justifyitem, leadingitem, menudisablevisit(), menustate, modaldialogmenus, newitem, nil, NULL, openitem, openrecentitem, pagesetupitem, pasteitem, printitem, quititem, revertitem, saveasitem, savedatabaseitemstring, saveitem, saveitemstring, saverunnableitem, selectallitem, setemptystring, setmenuitem(), setmenuitemenable(), shellcheckfontsizestyle(), shellgetexternaldata(), shellmenuhandle(), shellsetmenuitemstring(), shellwindow, shellwindowinfo, shellwindowmenudirty(), sizeitem, styleitem, undoitem, and visitmenuitems().

Referenced by shellmodaldialogmenuadjust(), shellstart(), and shellupdatemenus().

Here is the call graph for this function:

void shelladjustundo void   ) 
 

Definition at line 849 of file shellmenu.c.

References bigstring, cantundoitem, copyheapstring(), editmenu, getstringlist(), nil, setmenuitem(), setmenuitemenable(), tyshellglobals::setundostatusroutine, shellglobals, shellmenuhandle(), shellwindow, undoitem, and undolistnumber.

Referenced by pushundoaction().

Here is the call graph for this function:

static void shellcheckfontsizestyle void   )  [static]
 

Definition at line 803 of file shellmenu.c.

References tyselectioninfo::flcansetfont, tyselectioninfo::flcansetjust, tyselectioninfo::flcansetleading, tyselectioninfo::flcansetsize, tyselectioninfo::flcansetstyle, tyselectioninfo::fldirty, fontmenu, justifymenu, nil, shellfontmenuchecker(), shelljustifymenuchecker(), shellleadingmenuchecker(), shellsetselectioninfo(), shellsizemenuchecker(), shellstylemenuchecker(), shellwindowinfo, sizemenu, stylemenu, and visitonemenu().

Referenced by shelladjustmenus(), and shellupdatemenus().

Here is the call graph for this function:

boolean shelleditcommand tyeditcommand  editcmd  ) 
 

Definition at line 444 of file shellmenu.c.

References clearcommand, tyshellglobals::clearroutine, copycommand, tyshellglobals::copyroutine, cutcommand, tyshellglobals::cutroutine, fl, nil, pastecommand, tyshellglobals::pasteroutine, selectallcommand, tyshellglobals::selectallroutine, shellglobals, shellreadscrap(), shellwindow, undocommand, and tyshellglobals::undoroutine.

Referenced by editmenufunctionvalue(), shellhandlemenu(), and windoweditcommand().

Here is the call graph for this function:

static boolean shellfontmenuchecker hdlmenu  hmenu,
short  itemnumber
[static]
 

Definition at line 507 of file shellmenu.c.

References bigstring, checkmenuitem(), fl, fontgetnumber(), and getmenuitem().

Referenced by shellcheckfontsizestyle().

Here is the call graph for this function:

void shellforcemenuadjust void   ) 
 

Definition at line 881 of file shellmenu.c.

References dirtymenus, and menustate.

Referenced by medirtymenubar(), meprocesscallback(), meuserselected(), processnotbusy(), and shellhandleevent().

void shellgetlastmenuid short id  ) 
 

Definition at line 381 of file shellmenu.c.

References editmenu.

boolean shellhandlemenu long  menucode  ) 
 

PIKE

Definition at line 1497 of file shellmenu.c.

References aboutcommand(), aboutitem, applemenu, BIGSTRING, bigstring, bold, bolditem, ccfindrootwindow(), centerjustified, centerjustifyitem, clearbytes(), clearitem, closeitem, customleadingstring, customsizestring, down, editmenu, enditem, filemenu, tykeystrokerecord::floptionkey, fontgetnumber(), fontmenu, tyshellglobals::fontroutine, fulljustified, fulljustifyitem, getfrontwindow(), getmenuitem(), helpitem, hilitemenu(), HiWord, homeitem, idlangerrorconfig, intdialog(), italic, italicitem, justifymenu, tyshellglobals::justifyroutine, keyboardstatus, langrunstringnoerror(), leading0item, leading1item, leading2item, leading3item, leading4item, leading5item, leadingcustomitem, tyshellglobals::leadingroutine, leftjustified, leftjustifyitem, longinfinity, LoWord, min, newitem, nil, openitem, ouch(), outline, outlineitem, pagedownitem, pagesetupitem, pageupitem, plainitem, point10item, point12item, point14item, point18item, point24item, point9item, pointcustomitem, pointdownitem, pointupitem, printitem, quititem, revertitem, rightjustified, rightjustifyitem, runeditmenuscript(), runfilemenuscript(), runopenrecentmenuscript(), saveasitem, saveitem, saverunnableitem, tyshellglobals::scrollroutine, selectallitem, shadow, shadowitem, shellapplemenu(), shellcallmenuhooks(), shellclose(), shellcloseall(), shelleditcommand(), shellfindwindow(), shellgetstring(), shellglobals, shellmenuhandle(), shellnew(), shellopen(), shellpagesetup(), shellprint(), shellquit(), shellrevert(), shellsave(), shellsaveas(), shellwindow, shellwindowinfo, shellwindowmenuselect(), sizemenu, tyshellglobals::sizeroutine, stylemenu, tyshellglobals::styleroutine, uisEdit(), underline, underlineitem, undoitem, unknownjustification, and up.

Referenced by shellhandleevent(), shellhandlekeystroke(), and shellhandlemouse().

Here is the call graph for this function:

boolean shellinitmenus void   ) 
 

Definition at line 329 of file shellmenu.c.

References applemenu, bigstring, clearbytes(), fontmenu, getprogramname(), happlemenu, installhierarchicmenu(), installmenu(), installresitems(), menudisablevisit(), menustack, nil, setparseparams(), shellmenuhandle(), topmenustack, and visitmenuitems().

Referenced by shellinit().

Here is the call graph for this function:

static boolean shelljustifymenuchecker hdlmenu  hmenu,
short  itemnumber
[static]
 

Definition at line 763 of file shellmenu.c.

References centerjustified, centerjustifyitem, checkmenuitem(), fulljustified, fulljustifyitem, leftjustified, leftjustifyitem, rightjustified, rightjustifyitem, and unknownjustification.

Referenced by shellcheckfontsizestyle().

Here is the call graph for this function:

static boolean shellleadingmenuchecker hdlmenu  hmenu,
short  itemnumber
[static]
 

Definition at line 709 of file shellmenu.c.

References checkmenuitem(), leading0item, leading1item, leading2item, leading3item, leading4item, leading5item, and leadingcustomitem.

Referenced by shellcheckfontsizestyle().

Here is the call graph for this function:

hdlmenu shellmenuhandle short  idmenu  ) 
 

Definition at line 179 of file shellmenu.c.

References menustack, and topmenustack.

Referenced by installresitems(), mebuildmenubar(), shelladjustmenus(), shelladjustundo(), shellhandlemenu(), shellinitmenus(), shellupdateopenrecentmenu(), shellupdatewindowmenu(), and visitonemenu().

void shellmodaldialogmenuadjust void   ) 
 

Definition at line 887 of file shellmenu.c.

References menustate, modaldialogmenus, and shelladjustmenus().

Here is the call graph for this function:

static boolean shellsetmenuitemstring hdlmenu  hmenu,
short  ixmenu,
short  ixitemstring
[static]
 

Definition at line 897 of file shellmenu.c.

References bigstring, setmenuitem(), and shellgetstring().

Referenced by shelladjustmenus().

Here is the call graph for this function:

static boolean shellsizemenuchecker hdlmenu  hmenu,
short  itemnumber
[static]
 

Definition at line 532 of file shellmenu.c.

References checkmenuitem(), itemsize, outline, point10item, point12item, point14item, point18item, point24item, point9item, pointcustomitem, realfont(), style, and stylemenuitem().

Referenced by shellcheckfontsizestyle().

Here is the call graph for this function:

static boolean shellstylemenuchecker hdlmenu  hmenu,
short  itemnumber
[static]
 

Definition at line 646 of file shellmenu.c.

References bold, bolditem, checkmenuitem(), tyselectioninfo::fontstyle, italic, italicitem, outline, outlineitem, plainitem, shadow, shadowitem, underline, and underlineitem.

Referenced by shellcheckfontsizestyle().

Here is the call graph for this function:

boolean shelltgetmainmenu bigstring  bsmenu,
hdlmenu *  hmenu,
short idmenu
 

Definition at line 194 of file shellmenu.c.

References bigstring, equalstrings(), getmenuitem(), h, tymenuinfo::idmenu, menustack, and popleadingchars().

Referenced by getmainmenuvalue(), and getmenutobuild().

Here is the call graph for this function:

void shellupdatemenus void   ) 
 

Definition at line 1462 of file shellmenu.c.

References tyselectioninfo::fldirty, menustate, normalmenus, optionkeydown(), optionmenus, tywindowinfo::selectioninfo, shelladjustmenus(), shellcheckfontsizestyle(), shellupdateopenrecentmenu(), shellupdatewindowmenu(), and shellwindowinfo.

Referenced by shellhandlekeystroke(), shellhandlemouse(), and shellhandlenullevent().

Here is the call graph for this function:

void shellupdateopenrecentmenu void   ) 
 

Definition at line 2453 of file shellmenu.c.

References bigstring, countmenuitems(), deletemenuitems(), disableallmenuitems(), disablelangerror(), enablelangerror(), fl, getsystemtablescript(), hashsortedinversesearch(), tythreadglobals::htable, idopenrecentmenutable, langexpandtodotparams(), nil, pophashtable(), pushhashtable(), roottable, and shellmenuhandle().

Referenced by shellupdatemenus().

Here is the call graph for this function:

static boolean visitmenuitems boolean(*)(hdlmenu, short visitproc  )  [static]
 

Definition at line 125 of file shellmenu.c.

References countmenuitems(), i, menustack, and topmenustack.

Referenced by shelladjustmenus(), and shellinitmenus().

Here is the call graph for this function:

static boolean visitonemenu short  idmenu,
boolean(*)(hdlmenu, short visitproc
[static]
 

Definition at line 102 of file shellmenu.c.

References countmenuitems(), i, nil, and shellmenuhandle().

Referenced by checkfontsizestyle(), and shellcheckfontsizestyle().

Here is the call graph for this function:


Variable Documentation

hdlmenu happlemenu [static]
 

Definition at line 64 of file shellmenu.c.

Referenced by menudisablevisit(), and shellinitmenus().

tymenuinfo menustack[ctmenustack]
 

Definition at line 60 of file shellmenu.c.

Referenced by pushmenustack(), shellinitmenus(), shellmenuhandle(), shelltgetmainmenu(), and visitmenuitems().

tymenustate menustate = dirtymenus [static]
 

Definition at line 66 of file shellmenu.c.

Referenced by shelladjustmenus(), shellforcemenuadjust(), shellmodaldialogmenuadjust(), and shellupdatemenus().

short topmenustack = -1
 

Definition at line 62 of file shellmenu.c.

Referenced by pushmenustack(), shellinitmenus(), shellmenuhandle(), and visitmenuitems().


Generated on Tue Jun 13 02:42:35 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6