menu.h

Go to the documentation of this file.
00001 
00002 /*  $Id: menu.h 467 2005-10-02 18:19:29Z icreedon $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define menuinclude /*so that other modules can tell that we've been included*/
00029 
00030 #ifndef shelltypesinclude
00031     
00032     #include "shelltypes.h"
00033 
00034 #endif
00035 
00036 
00037 #define chcommand commandMark
00038 
00039 #define insertsubmenu -1
00040 
00041 #define insertatend -2
00042 
00043 
00044 /*prototypes*/
00045 
00046 extern void drawmenubar (void);
00047 
00048 extern void disposemenu (hdlmenu);
00049 
00050 extern hdlmenu getresourcemenu (short);
00051 
00052 extern boolean getcommandkeystring (byte, tykeyflags, bigstring);
00053 
00054 //Code change by Timothy Paustian Saturday, April 29, 2000 9:30:20 PM
00055 //Changed for UH 3.3.1, newmenu conflicts with headers def in Menus.h
00056 extern hdlmenu Newmenu (short id, bigstring bstitle);
00057 
00058 extern hdlmenu getmenuhandle (short);
00059 
00060 extern boolean insertmenu (hdlmenu, long);
00061 
00062 extern boolean inserthierarchicmenu (hdlmenu, short);
00063 
00064 extern void removemenu (short);
00065 
00066 extern long trackmenu (Point);
00067 
00068 extern boolean sethierarchicalmenuitem (hdlmenu hmenu, short itemnumber, hdlmenu hsubmenu, short idsubmenu);
00069 
00070 extern boolean gethierarchicalmenuitem (hdlmenu hmenu, short ixmenu, hdlmenu *hsubmenu);
00071 
00072 extern void setmenutitleenable (hdlmenu, short, boolean);
00073 
00074 extern void setmenuitemenable (hdlmenu, short, boolean);
00075 
00076 extern boolean getmenutitleenable (hdlmenu, short);
00077 
00078 extern boolean getmenuitemenable (hdlmenu, short);
00079 
00080 extern void disablemenuitem (hdlmenu, short);
00081 
00082 extern void enablemenuitem (hdlmenu, short);
00083 
00084 extern short countmenuitems (hdlmenu);
00085 
00086 extern void enableallmenuitems (hdlmenu, boolean);
00087 
00088 extern void hilitemenu (short);
00089 
00090 extern void checkmenuitem (hdlmenu, short, boolean);
00091 
00092 extern boolean menuitemmarked (hdlmenu, short);
00093 
00094 extern void markmenuitem (hdlmenu, short, short);
00095 
00096 extern void stylemenuitem (hdlmenu, short, short);
00097 
00098 extern boolean setmenutitle (hdlmenu, bigstring);
00099 
00100 extern boolean setmenuitem (hdlmenu, short, bigstring);
00101 
00102 extern boolean getmenuitem (hdlmenu, short, bigstring);
00103 
00104 extern boolean setmenuitemcommandkey (hdlmenu, short, short);
00105 
00106 extern void getmenuitemcommandkey (hdlmenu, short, short *);
00107 //Code change by Timothy Paustian Saturday, April 29, 2000 9:31:06 PM
00108 //Changed for UH 3.3.1 conflicts with insertmenuitem in Menus.h
00109 extern boolean Insertmenuitem (hdlmenu, short, bigstring);
00110 
00111 extern boolean deletemenuitem (hdlmenu, short);
00112 
00113 extern boolean deleteallmenuitems (hdlmenu, short);
00114 
00115 extern boolean deletelastmenuitem (hdlmenu);
00116 
00117 extern boolean pushmenuitem (hdlmenu, short, bigstring, short);
00118 
00119 extern boolean pushresourcemenuitems (hdlmenu, short, OSType);
00120 
00121 extern boolean pushdottedlinemenuitem (hdlmenu);
00122 
00123 extern boolean newtempmenu (hdlmenu *, short *);
00124 
00125 extern short getprevmenuitem (hdlmenu);
00126 
00127 extern short getnextmenuitem (hdlmenu);
00128 
00129 extern boolean initmenusystem (void);
00130 
00131 extern boolean deletemenuitems (hdlmenu, short, short); /* 2005-10-01 creedon */
00132 
00133 extern void disableallmenuitems (hdlmenu hmenu); /* 2005-10-01 creedon */
00134 

Generated on Wed May 31 18:19:55 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6