shellmenu.h File Reference

#include "shelltypes.h"

Include dependency graph for shellmenu.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tymenuinfo

Defines

#define shellmenuinclude
#define aboutitem   1
#define newitem   1
#define openitem   2
#define openrecentitem   3
#define closeitem   5
#define saveitem   6
#define saverunnableitem   7
#define saveasitem   8
#define revertitem   9
#define pagesetupitem   11
#define printitem   12
#define quititem   14
#define windowsitem   -1
#define undoitem   1
#define cutitem   3
#define copyitem   4
#define pasteitem   5
#define clearitem   6
#define selectallitem   8
#define findandreplaceitem   10
#define fontitem   12
#define sizeitem   13
#define styleitem   14
#define leadingitem   15
#define justifyitem   16
#define commonstylesitem   17
#define insertdatetimeitem   19
#define hidewindowitem   1
#define aboutitem   1
#define plainitem   1
#define bolditem   3
#define italicitem   4
#define underlineitem   5
#define outlineitem   6
#define shadowitem   7
#define superscriptitem   8
#define subscriptitem   9
#define point9item   1
#define point10item   2
#define point12item   3
#define point14item   4
#define point18item   5
#define point24item   6
#define pointupitem   8
#define pointdownitem   9
#define pointcustomitem   11
#define leading0item   1
#define leading1item   3
#define leading2item   4
#define leading3item   5
#define leading4item   6
#define leading5item   7
#define leadingcustomitem   9
#define leftjustifyitem   1
#define rightjustifyitem   2
#define centerjustifyitem   3
#define fulljustifyitem   4
#define helpitem   1
#define homeitem   2
#define enditem   3
#define pageupitem   4
#define pagedownitem   5
#define moveupitem   6
#define movedownitem   7
#define moveleftitem   8
#define moverightitem   9
#define clearrecentmenuitem   2
#define ctmenustack

Enumerations

enum  tyeditcommand {
  undocommand, cutcommand = 2, copycommand, pastecommand,
  clearcommand, selectallcommand = 7
}

Functions

hdlmenu shellmenuhandle (short)
boolean shelltgetmainmenu (bigstring, hdlmenu *, short *)
boolean shellinitmenus (void)
void shellgetlastmenuid (short *)
boolean shellapplemenu (bigstring)
boolean shelleditcommand (tyeditcommand)
void shellforcemenuadjust (void)
void shellmodaldialogmenuadjust (void)
void shellupdatemenus (void)
boolean shellhandlemenu (long)
void runfilemenuscript (short)
void runeditmenuscript (short, short)
void getcommonstylesmenuitemtext (short, bigstring)
void getfilemenuitemidentifier (short, bigstring)
void geteditmenuitemidentifier (short, short, bigstring)
void runopenrecentmenuscript (short)
boolean shellupdatewindowmenu (void)
void shellwindowmenuselect (short)
void shelladjustundo (void)
boolean pikequit (void)
void shellupdateopenrecentmenu (void)

Variables

tymenuinfo menustack [ctmenustack]
short topmenustack


Define Documentation

#define aboutitem   1
 

Definition at line 242 of file shellmenu.h.

#define aboutitem   1
 

Definition at line 242 of file shellmenu.h.

Referenced by getmenutobuild(), handlemenu(), and shellhandlemenu().

#define bolditem   3
 

Definition at line 246 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellstylemenuchecker(), and stylemenuchecker().

#define centerjustifyitem   3
 

Definition at line 280 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), justifymenuchecker(), shellhandlemenu(), and shelljustifymenuchecker().

#define clearitem   6
 

Definition at line 220 of file shellmenu.h.

Referenced by dialogmenuenabler(), disableeditmenuitems(), filterfunctionkey(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define clearrecentmenuitem   2
 

Definition at line 295 of file shellmenu.h.

#define closeitem   5
 

Definition at line 173 of file shellmenu.h.

Referenced by adjustmenus(), getfilemenuitemidentifier(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define commonstylesitem   17
 

Definition at line 228 of file shellmenu.h.

Referenced by shelladjustmenus().

#define copyitem   4
 

Definition at line 218 of file shellmenu.h.

Referenced by dialogmenuenabler(), disableeditmenuitems(), filterfunctionkey(), handlemenu(), and shelladjustmenus().

#define ctmenustack
 

Value:

( (lastmainmenu - firstmainmenu) / mainmenuincrement \
                    + (lasthiermenu - firsthiermenu) / hiermenuincrement \
                    + 2)

Definition at line 303 of file shellmenu.h.

Referenced by pushmenustack().

#define cutitem   3
 

Definition at line 217 of file shellmenu.h.

Referenced by dialogmenuenabler(), disableeditmenuitems(), filterfunctionkey(), handlemenu(), and shelladjustmenus().

#define enditem   3
 

Definition at line 286 of file shellmenu.h.

Referenced by filterfunctionkey(), handlemenu(), and shellhandlemenu().

#define findandreplaceitem   10
 

Definition at line 222 of file shellmenu.h.

Referenced by shelladjustmenus().

#define fontitem   12
 

Definition at line 223 of file shellmenu.h.

Referenced by adjustmenus(), disableeditmenuitems(), and shelladjustmenus().

#define fulljustifyitem   4
 

Definition at line 281 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), justifymenuchecker(), shellhandlemenu(), and shelljustifymenuchecker().

#define helpitem   1
 

Definition at line 284 of file shellmenu.h.

Referenced by ccmenuroutine(), filterfunctionkey(), handlemenu(), and shellhandlemenu().

#define hidewindowitem   1
 

Definition at line 235 of file shellmenu.h.

Referenced by shellupdatewindowmenu(), and shellwindowmenuselect().

#define homeitem   2
 

Definition at line 285 of file shellmenu.h.

Referenced by filterfunctionkey(), handlemenu(), and shellhandlemenu().

#define insertdatetimeitem   19
 

Definition at line 229 of file shellmenu.h.

Referenced by geteditmenuitemidentifier(), and shelladjustmenus().

#define italicitem   4
 

Definition at line 247 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellstylemenuchecker(), and stylemenuchecker().

#define justifyitem   16
 

Definition at line 227 of file shellmenu.h.

Referenced by adjustmenus(), disableeditmenuitems(), and shelladjustmenus().

#define leading0item   1
 

Definition at line 269 of file shellmenu.h.

Referenced by shellhandlemenu(), and shellleadingmenuchecker().

#define leading1item   3
 

Definition at line 270 of file shellmenu.h.

Referenced by shellhandlemenu(), and shellleadingmenuchecker().

#define leading2item   4
 

Definition at line 271 of file shellmenu.h.

Referenced by shellhandlemenu(), and shellleadingmenuchecker().

#define leading3item   5
 

Definition at line 272 of file shellmenu.h.

Referenced by shellhandlemenu(), and shellleadingmenuchecker().

#define leading4item   6
 

Definition at line 273 of file shellmenu.h.

Referenced by shellhandlemenu(), and shellleadingmenuchecker().

#define leading5item   7
 

Definition at line 274 of file shellmenu.h.

Referenced by shellhandlemenu(), and shellleadingmenuchecker().

#define leadingcustomitem   9
 

Definition at line 275 of file shellmenu.h.

Referenced by shellhandlemenu(), and shellleadingmenuchecker().

#define leadingitem   15
 

Definition at line 226 of file shellmenu.h.

Referenced by shelladjustmenus().

#define leftjustifyitem   1
 

Definition at line 278 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), justifymenuchecker(), shellhandlemenu(), and shelljustifymenuchecker().

#define movedownitem   7
 

Definition at line 290 of file shellmenu.h.

Referenced by opmenuroutine().

#define moveleftitem   8
 

Definition at line 291 of file shellmenu.h.

Referenced by opmenuroutine().

#define moverightitem   9
 

Definition at line 292 of file shellmenu.h.

Referenced by opmenuroutine().

#define moveupitem   6
 

Definition at line 289 of file shellmenu.h.

Referenced by opmenuroutine().

#define newitem   1
 

Definition at line 170 of file shellmenu.h.

Referenced by adjustmenus(), getfilemenuitemidentifier(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define openitem   2
 

Definition at line 171 of file shellmenu.h.

Referenced by adjustmenus(), getfilemenuitemidentifier(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define openrecentitem   3
 

Definition at line 172 of file shellmenu.h.

Referenced by shelladjustmenus().

#define outlineitem   6
 

Definition at line 249 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellstylemenuchecker(), and stylemenuchecker().

#define pagedownitem   5
 

Definition at line 288 of file shellmenu.h.

Referenced by filterfunctionkey(), handlemenu(), and shellhandlemenu().

#define pagesetupitem   11
 

Definition at line 181 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define pageupitem   4
 

Definition at line 287 of file shellmenu.h.

Referenced by filterfunctionkey(), handlemenu(), and shellhandlemenu().

#define pasteitem   5
 

Definition at line 219 of file shellmenu.h.

Referenced by dialogmenuenabler(), disableeditmenuitems(), filterfunctionkey(), handlemenu(), and shelladjustmenus().

#define plainitem   1
 

Definition at line 245 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellstylemenuchecker(), and stylemenuchecker().

#define point10item   2
 

Definition at line 259 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellsizemenuchecker(), and sizemenuchecker().

#define point12item   3
 

Definition at line 260 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellsizemenuchecker(), and sizemenuchecker().

#define point14item   4
 

Definition at line 261 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellsizemenuchecker(), and sizemenuchecker().

#define point18item   5
 

Definition at line 262 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellsizemenuchecker(), and sizemenuchecker().

#define point24item   6
 

Definition at line 263 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellsizemenuchecker(), and sizemenuchecker().

#define point9item   1
 

Definition at line 258 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellsizemenuchecker(), and sizemenuchecker().

#define pointcustomitem   11
 

Definition at line 266 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellsizemenuchecker(), and sizemenuchecker().

#define pointdownitem   9
 

Definition at line 265 of file shellmenu.h.

Referenced by handlemenu(), and shellhandlemenu().

#define pointupitem   8
 

Definition at line 264 of file shellmenu.h.

Referenced by handlemenu(), and shellhandlemenu().

#define printitem   12
 

Definition at line 182 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define quititem   14
 

Definition at line 183 of file shellmenu.h.

Referenced by adjustmenus(), getfilemenuitemidentifier(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define revertitem   9
 

Definition at line 177 of file shellmenu.h.

Referenced by adjustmenus(), getfilemenuitemidentifier(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define rightjustifyitem   2
 

Definition at line 279 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), justifymenuchecker(), shellhandlemenu(), and shelljustifymenuchecker().

#define saveasitem   8
 

Definition at line 176 of file shellmenu.h.

Referenced by adjustmenus(), getfilemenuitemidentifier(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define saveitem   6
 

Definition at line 174 of file shellmenu.h.

Referenced by adjustmenus(), getfilemenuitemidentifier(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define saverunnableitem   7
 

Definition at line 175 of file shellmenu.h.

Referenced by shelladjustmenus(), and shellhandlemenu().

#define selectallitem   8
 

Definition at line 221 of file shellmenu.h.

Referenced by disableeditmenuitems(), handlemenu(), shelladjustmenus(), and shellhandlemenu().

#define shadowitem   7
 

Definition at line 250 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellstylemenuchecker(), and stylemenuchecker().

#define shellmenuinclude
 

Definition at line 29 of file shellmenu.h.

#define sizeitem   13
 

Definition at line 224 of file shellmenu.h.

Referenced by adjustmenus(), disableeditmenuitems(), and shelladjustmenus().

#define styleitem   14
 

Definition at line 225 of file shellmenu.h.

Referenced by adjustmenus(), disableeditmenuitems(), and shelladjustmenus().

#define subscriptitem   9
 

Definition at line 255 of file shellmenu.h.

#define superscriptitem   8
 

Definition at line 254 of file shellmenu.h.

#define underlineitem   5
 

Definition at line 248 of file shellmenu.h.

Referenced by adjustmenus(), handlemenu(), shellhandlemenu(), shellstylemenuchecker(), and stylemenuchecker().

#define undoitem   1
 

Definition at line 216 of file shellmenu.h.

Referenced by adjustmenus(), disableeditmenuitems(), filterfunctionkey(), handlemenu(), shelladjustmenus(), shelladjustundo(), and shellhandlemenu().

#define windowsitem   -1
 

Definition at line 189 of file shellmenu.h.


Enumeration Type Documentation

enum tyeditcommand
 

Enumerator:
undocommand 
cutcommand 
copycommand 
pastecommand 
clearcommand 
selectallcommand 

Definition at line 318 of file shellmenu.h.


Function Documentation

void getcommonstylesmenuitemtext short  ,
bigstring 
 

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  ,
short  ,
bigstring 
 

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  ,
bigstring 
 

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:

boolean pikequit void   ) 
 

void runeditmenuscript short  ,
short 
 

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   ) 
 

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   ) 
 

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 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:

boolean shellapplemenu bigstring   ) 
 

Referenced by launchfunctionvalue(), and shellhandlemenu().

boolean shelleditcommand tyeditcommand   ) 
 

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:

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  ) 
 

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:

hdlmenu shellmenuhandle short   ) 
 

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:

boolean shelltgetmainmenu bigstring  ,
hdlmenu *  ,
short
 

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:

boolean shellupdatewindowmenu void   ) 
 

Definition at line 179 of file shellwindowmenu.c.

References ccfindrootwindow(), ccinexpertmode(), countmenuitems(), deleteallmenuitems(), deletelastmenuitem(), drawmenubar(), fllastwasdottedline, flwindowmenudirty, getfrontwindow(), hidewindowitem, hwindowsmenu, idaboutconfig, idcancoonconfig, idcommandconfig, idiowaconfig, idlangdialogconfig, idlangerrorconfig, idmenueditorconfig, idoutlineconfig, idpictconfig, idscriptconfig, idstatsconfig, idtableconfig, idwpconfig, isshellwindow(), nil, pushdottedlinemenuitem(), setmenuitemenable(), shellmenuhandle(), shellpushmajortype(), and shellpushminortype().

Referenced by shellupdatemenus(), and shellwindowmenuselect().

Here is the call graph for this function:

void shellwindowmenuselect short   ) 
 

Definition at line 317 of file shellwindowmenu.c.

References activateapplication(), flwindowmenudirty, getfrontwindowinfo(), hidewindowitem, hsearch, ixsearch, nil, ouch(), shellbringtofront(), shellhidewindow(), and shellupdatewindowmenu().

Referenced by shellhandlemenu().

Here is the call graph for this function:


Variable Documentation

tymenuinfo menustack[ctmenustack]
 

Definition at line 60 of file shellmenu.c.

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

short topmenustack
 

Definition at line 62 of file shellmenu.c.

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


Generated on Tue Jun 13 03:16:30 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6