appletmenu.c File Reference

#include <iac.h>
#include "appletinternal.h"
#include "appletcardops.h"
#include "appletops.h"
#include "appletmenuops.h"
#include "appletmenu.h"
#include "appletwindowmenu.h"
#include "appletmain.h"

Include dependency graph for appletmenu.c:

Go to the source code of this file.

Defines

#define cutCmd   3
#define copyCmd   4
#define pasteCmd   5
#define clearCmd   6

Functions

void dialogmenuenabler (boolean flbeforedialog)
static boolean fontmenuchecker (MenuHandle hmenu, short itemnumber)
static boolean sizemenuchecker (MenuHandle hmenu, short itemnumber)
static boolean stylemenuchecker (MenuHandle hmenu, short itemnumber)
static boolean justifymenuchecker (MenuHandle hmenu, short itemnumber)
static void checkfontsizestyle (void)
void adjustmenus (void)
static void aboutfilter (EventRecord *ev)
static void openaboutwindow (void)
static void undocommand (void)
static boolean pushscrap (Handle h, OSType type)
void appcopycommand (void)
static void clearcommand (void)
static void pastecommand (void)
static void cutcommand (void)
static void UpdateSharedMenus (void)
static void testmenus (void)
void handlemenu (long codeword)
boolean flipcustommenu (hdlappwindow appwindow, boolean flactivate)
void disableeditmenuitems (void)
void initmenus (void)

Variables

MenuHandle hdlapplemenu
MenuHandle hdlfilemenu
MenuHandle hdleditmenu
MenuHandle hdlfontmenu
MenuHandle hdlsizemenu
MenuHandle hdlstylemenu
MenuHandle hdljustifymenu
static hdlcard aboutcard = nil


Define Documentation

#define clearCmd   6
 

Definition at line 20 of file appletmenu.c.

#define copyCmd   4
 

Definition at line 18 of file appletmenu.c.

#define cutCmd   3
 

Definition at line 17 of file appletmenu.c.

#define pasteCmd   5
 

Definition at line 19 of file appletmenu.c.


Function Documentation

static void aboutfilter EventRecord ev  )  [static]
 

Definition at line 486 of file appletmenu.c.

References aboutcard, appsavedialoginfo(), currentcard, iowaCloseEvent, iowaInitEvent, and nil.

Referenced by openaboutwindow().

Here is the call graph for this function:

void adjustmenus void   ) 
 

Definition at line 346 of file appletmenu.c.

References adjustwindowmenu(), app, tyappletrecord::appwindow, bigstring, bolditem, centerjustifyitem, checkfontsizestyle(), clearbytes(), closeitem, enablemenuitem(), fontitem, fulljustifyitem, getundomenuitem(), tyappletrecord::haswindowmenu, hdleditmenu, hdlfilemenu, hdljustifymenu, hdlsizemenu, hdlstylemenu, italicitem, justifyitem, leftjustifyitem, longsizeof, newitem, nil, openitem, outlineitem, pagesetupitem, plainitem, point10item, point12item, point14item, point18item, point24item, point36item, point48item, point72item, point9item, pointcustomitem, printitem, quititem, revertitem, rightjustifyitem, saveasitem, saveitem, setmenuitem(), setmenuitemenable(), shadowitem, sizeitem, styleitem, underlineitem, and undoitem.

Here is the call graph for this function:

void appcopycommand void   ) 
 

Definition at line 568 of file appletmenu.c.

References alertdialog(), app, apppostcallback(), appprecallback(), cardEditCommand(), tyappletrecord::commanderror, tyappletrecord::copycallback, copyCmd, tyappletrecord::creator, fl, tyappletrecord::getpictcallback, tyappletrecord::gettextcallback, nil, and pushscrap().

Referenced by cutcommand(), and handlemenu().

Here is the call graph for this function:

static void checkfontsizestyle void   )  [static]
 

Definition at line 311 of file appletmenu.c.

References app, apppostcallback(), appprecallback(), tyappletrecord::appwindow, tyselectioninfo::flcansetfont, tyselectioninfo::flcansetjust, tyselectioninfo::flcansetsize, tyselectioninfo::flcansetstyle, tyselectioninfo::fldirty, fontmenu, fontmenuchecker(), justifymenu, justifymenuchecker(), nil, tyappletrecord::setselectioninfocallback, sizemenu, sizemenuchecker(), stylemenu, stylemenuchecker(), and visitonemenu().

Referenced by adjustmenus().

Here is the call graph for this function:

static void clearcommand void   )  [static]
 

Definition at line 637 of file appletmenu.c.

References app, apppostcallback(), appprecallback(), cardEditCommand(), tyappletrecord::clearcallback, and clearCmd.

Here is the call graph for this function:

static void cutcommand void   )  [static]
 

Definition at line 737 of file appletmenu.c.

References app, appcopycommand(), cardEditCommand(), clearcommand, tyappletrecord::commanderror, and cutCmd.

Here is the call graph for this function:

void dialogmenuenabler boolean  flbeforedialog  ) 
 

Definition at line 29 of file appletmenu.c.

References clearitem, copyitem, cutitem, disableallmenuitems(), disableallmenus(), enableallmenus(), enablemenuitem(), hdleditmenu, and pasteitem.

Referenced by apprunmodalresource().

Here is the call graph for this function:

void disableeditmenuitems void   ) 
 

Definition at line 1211 of file appletmenu.c.

References clearitem, copyitem, cutitem, disablemenuitem(), fontitem, hdleditmenu, justifyitem, pasteitem, selectallitem, sizeitem, styleitem, and undoitem.

Referenced by appleteventhandler().

Here is the call graph for this function:

boolean flipcustommenu hdlappwindow  appwindow,
boolean  flactivate
 

Definition at line 1171 of file appletmenu.c.

References deletemenu(), installmenubefore(), nil, and windowmenu.

Referenced by appleteventhandler(), and handleactivate().

Here is the call graph for this function:

static boolean fontmenuchecker MenuHandle  hmenu,
short  itemnumber
[static]
 

Definition at line 62 of file appletmenu.c.

References app, tyappletrecord::appwindow, bigstring, checkmenuitem(), enablemenuitem(), fl, and getmenuitem().

Referenced by checkfontsizestyle().

Here is the call graph for this function:

void handlemenu long  codeword  ) 
 

Definition at line 805 of file appletmenu.c.

References aboutitem, app, appcopycommand(), applemenu, apppostcallback(), appprecallback(), appsetfont(), appsetfontsize(), tyappletrecord::appwindow, askdialog(), bigstring, bolditem, centerjustified, centerjustifyitem, clearbytes(), clearcommand, clearitem, closeallwindows(), closefrontwindow(), closeitem, copyitem, cutcommand, cutitem, down, editmenu, enditem, exitmainloop(), extendedmenu, filemenu, fl, fontmenu, fulljustified, fulljustifyitem, getmenuitem(), hdlapplemenu, hdlfontmenu, helpitem, HiWord, homeitem, infinity, italicitem, justifymenu, leftjustified, leftjustifyitem, longsizeof, LoWord, tyappletrecord::menucallback, newitem, newuntitledappwindow(), openaboutwindow(), openfrontwindow(), openitem, optionkeydown(), outlineitem, pagedownitem, pagesetup(), pagesetupitem, pageupitem, pastecommand, pasteitem, plainitem, point10item, point12item, point14item, point18item, point24item, point36item, point48item, point72item, point9item, pointcustomitem, pointdownitem, pointupitem, printappwindow(), printitem, quititem, revertfrontwindow(), revertitem, rightjustified, rightjustifyitem, saveasfrontwindow(), saveasitem, savefrontwindow(), saveitem, tyappletrecord::scrollcallback, selectallcommand, selectallitem, selectwindowmenu(), tyappletrecord::setjustifycallback, setselectionstyleinfo(), tyappletrecord::setstylecallback, shadowitem, short, sizemenu, stylemenu, underlineitem, undocommand, undoitem, unknownjustification, up, and windowmenu.

Referenced by handlekeystroke(), and handlemousedown().

Here is the call graph for this function:

void initmenus void   ) 
 

Definition at line 1235 of file appletmenu.c.

References app, applemenu, editmenu, filemenu, fontmenu, hdlapplemenu, hdleditmenu, hdlfilemenu, hdlfontmenu, hdljustifymenu, hdlsizemenu, hdlstylemenu, initwindowmenu(), tyappletrecord::insertmenucallback, installhierarchicmenu(), installmenu(), justifymenu, nil, sizemenu, and stylemenu.

Here is the call graph for this function:

static boolean justifymenuchecker MenuHandle  hmenu,
short  itemnumber
[static]
 

Definition at line 271 of file appletmenu.c.

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

Referenced by checkfontsizestyle().

Here is the call graph for this function:

static void openaboutwindow void   )  [static]
 

Definition at line 512 of file appletmenu.c.

References aboutcard, aboutfilter(), appcardtofront(), appopencardresource(), apppostcallback(), appprecallback(), and nil.

Referenced by handlemenu().

Here is the call graph for this function:

static void pastecommand void   )  [static]
 

Definition at line 654 of file appletmenu.c.

References app, appnewhandle(), apppostcallback(), appprecallback(), cardEditCommand(), tyappletrecord::creator, DisposeHandle, fl, nil, offset, tyappletrecord::pastecallback, pasteCmd, tyappletrecord::putpictcallback, and tyappletrecord::puttextcallback.

Here is the call graph for this function:

static boolean pushscrap Handle  h,
OSType  type
[static]
 

Definition at line 544 of file appletmenu.c.

References alertdialog(), GetHandleSize, lockhandle(), nil, noErr, and unlockhandle().

Referenced by appcopycommand().

Here is the call graph for this function:

static boolean sizemenuchecker MenuHandle  hmenu,
short  itemnumber
[static]
 

Definition at line 82 of file appletmenu.c.

References app, tyappletrecord::appwindow, checkmenuitem(), itemsize, outline, point10item, point12item, point14item, point18item, point24item, point36item, point48item, point72item, point9item, pointcustomitem, style, and stylemenuitem().

Referenced by checkfontsizestyle().

Here is the call graph for this function:

static boolean stylemenuchecker MenuHandle  hmenu,
short  itemnumber
[static]
 

Definition at line 226 of file appletmenu.c.

References app, tyappletrecord::appwindow, bolditem, checkmenuitem(), tyselectioninfo::flbold, tyselectioninfo::flitalic, tyselectioninfo::floutline, tyselectioninfo::flplain, tyselectioninfo::flshadow, tyselectioninfo::flunderline, italicitem, outlineitem, plainitem, shadowitem, and underlineitem.

Referenced by checkfontsizestyle().

Here is the call graph for this function:

static void testmenus void   )  [static]
 

Definition at line 779 of file appletmenu.c.

References applemenu, deletemenu(), editmenu, filemenu, fontmenu, initmenus(), justifymenu, sizemenu, stylemenu, UpdateSharedMenus(), and windowmenu.

Here is the call graph for this function:

static void undocommand void   )  [static]
 

Definition at line 529 of file appletmenu.c.

References apppostcallback(), appprecallback(), getredoaction(), redolastaction(), and undolastaction().

Here is the call graph for this function:

static void UpdateSharedMenus void   )  [static]
 

Definition at line 755 of file appletmenu.c.

References nil, and typeProcessSerialNumber.

Referenced by testmenus().


Variable Documentation

hdlcard aboutcard = nil [static]
 

Definition at line 483 of file appletmenu.c.

Referenced by aboutfilter(), and openaboutwindow().

MenuHandle hdlapplemenu
 

Definition at line 23 of file appletmenu.c.

Referenced by handlemenu(), and initmenus().

MenuHandle hdleditmenu
 

Definition at line 23 of file appletmenu.c.

Referenced by adjustmenus(), dialogmenuenabler(), disableeditmenuitems(), and initmenus().

MenuHandle hdlfilemenu
 

Definition at line 23 of file appletmenu.c.

Referenced by adjustmenus(), and initmenus().

MenuHandle hdlfontmenu
 

Definition at line 25 of file appletmenu.c.

Referenced by getfontpopup(), handlemenu(), initmenus(), and setfontpopup().

MenuHandle hdljustifymenu
 

Definition at line 25 of file appletmenu.c.

Referenced by adjustmenus(), and initmenus().

MenuHandle hdlsizemenu
 

Definition at line 25 of file appletmenu.c.

Referenced by adjustmenus(), and initmenus().

MenuHandle hdlstylemenu
 

Definition at line 25 of file appletmenu.c.

Referenced by adjustmenus(), and initmenus().


Generated on Wed May 31 21:37:25 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6