shellprivate.h

Go to the documentation of this file.
00001 
00002 /*  $Id: shellprivate.h 1290 2006-04-17 10:53:56Z andreradke $    */
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 shellprivateinclude /*so other includes can tell if we've been loaded*/
00029 
00030 
00031 /*
00032 names that communicate between the various files that make up the shell level.
00033 
00034 handlers are not supposed to include this file.
00035 */
00036 
00037 #define jugglerEvt 15
00038 
00039 #define tickstoupdatemenus 20 /*update menus one-third second after last event*/
00040 
00041 #define tickstoidle 6 /*only call idle callback routine every tenth second*/
00042 
00043 
00044 #define ctglobals 32 /*we can remember globals up to ctglobals levels deep*/
00045 
00046 
00047 typedef struct tyglobalsstack {
00048     
00049     short top;
00050     
00051     WindowPtr stack [ctglobals];
00052     } tyglobalsstack;
00053 
00054 
00055 typedef enum tymenustate {
00056     dirtymenus,
00057     
00058     normalmenus,
00059     
00060     optionmenus,
00061     
00062     modaldialogmenus
00063     } tymenustate;
00064 
00065 
00066 #ifdef version42orgreater
00067     #define cteditors 14
00068 #else
00069     #define cteditors 12
00070 #endif
00071 
00072 
00073 /*globals*/
00074 
00075 extern tyshellglobals globalsarray [cteditors];
00076 
00077 extern short topglobalsarray; /*initially empty*/
00078 
00079 extern tyglobalsstack globalsstack; /*for push/pop globals*/
00080 
00081 extern boolean flexitmainloop;
00082 
00083 // 2006-03-31 kw & aradke: menustate is declared static in shellmenu.c
00084 //extern tymenustate menustate;
00085 
00086 extern unsigned long timelastkeystroke;
00087 
00088 // 2006-03-31 kw & aradke: flshellimmediatebackground is declared static in shell.c
00089 //extern boolean flshellimmediatebackground; /*service the background queue immediately*/
00090 
00091 
00092 /*prototypes*/
00093 
00094 extern boolean shellfindcallbacks (short, short *); /*shellcallbacks.c*/
00095 
00096 extern void shellpatchnilroutines (void);
00097 
00098 extern void shellinithandlers (void);
00099 
00100 extern void shellloadbuttonlists (void);
00101 
00102 extern void shellclearwindowdata (void);
00103 
00104 
00105 extern boolean shellautoopen (bigstring, short); /*shellfile.c*/
00106 
00107 extern void killownedundo (WindowPtr);
00108 
00109 
00110 extern void shellhandlejugglerevent (void); /*shelljuggler.c*/
00111 
00112 
00113 extern void shelladjustmenus (void); /*shellmenu.c*/
00114 
00115 
00116 /* 5.0a5 dmb - no longer needed: extern void shellsetscrollbarinfo (void); /%shellops.c*/
00117 
00118 
00119 extern boolean shellgetgrowiconrect (hdlwindowinfo, Rect *); /*shellwindow.c*/
00120 
00121 extern void shelldrawgrowicon (hdlwindowinfo);
00122 
00123 extern void shellerasegrowicon (hdlwindowinfo);
00124 
00125 extern boolean isshellwindow (WindowPtr);
00126 
00127 extern boolean frontshellwindow (WindowPtr *);
00128 
00129 extern boolean shellsavewindowresource (WindowPtr, ptrfilespec, short);
00130 
00131 extern boolean shellsavewindowposition (WindowPtr);
00132 
00133 extern boolean loadwindowposition (ptrfilespec, short, tywindowposition *);
00134 
00135 extern boolean shellsavefontresource (WindowPtr, ptrfilespec, short);
00136 
00137 extern boolean shellsavedefaultfont (WindowPtr);
00138 
00139 extern boolean loaddefaultfont (WindowPtr);
00140 
00141 extern void getdefaultwindowrect (Rect *);
00142 
00143 extern void shellresetwindowrects (hdlwindowinfo);
00144 
00145 extern void windowresetrects (hdlwindowinfo);
00146 
00147 extern boolean emptywindowlist (void);
00148 
00149 extern short countwindowlist (void);
00150 
00151 extern boolean indexwindowlist (short, hdlwindowinfo *);
00152 
00153 extern short counttypedwindows (short);
00154 
00155 extern boolean shellfirstchildwindow (hdlwindowinfo, hdlwindowinfo *);
00156 
00157 extern void grayownedwindows (WindowPtr);
00158 
00159 extern boolean defaultselectioninfo (hdlwindowinfo);
00160 
00161 extern boolean newshellwindowinfo (WindowPtr w, hdlwindowinfo *hinfo);
00162 
00163 extern void disposeshellwindowinfo (hdlwindowinfo hinfo);
00164 
00165 extern boolean newshellwindow (WindowPtr *, hdlwindowinfo *, tywindowposition *);
00166 
00167 extern boolean windowinit (WindowPtr);
00168 
00169 extern boolean zoomfilewindow (WindowPtr);
00170 
00171 extern boolean getwindowmessage (WindowPtr, bigstring);
00172 
00173 extern boolean drawwindowmessage (WindowPtr);
00174 
00175 extern boolean setwindowmessage (WindowPtr, bigstring);
00176 
00177 extern boolean lockwindowmessage (WindowPtr, boolean);
00178 
00179 extern void shellerasemessagearea (hdlwindowinfo);
00180 
00181 extern boolean windowmadechanges (WindowPtr);
00182 
00183 extern boolean windowgetcontentrect (WindowPtr, Rect *);
00184 
00185 extern void disposeshellwindow (WindowPtr);
00186 
00187 extern boolean shellhidewindow (hdlwindowinfo);
00188 
00189 extern boolean shellunhidewindow (hdlwindowinfo);
00190 
00191 extern void closewindowfile (WindowPtr);
00192 
00193 extern boolean shellfrontrootwindowmessage (bigstring);
00194 
00195 extern boolean shellrunwindowconfirmationscript (WindowPtr, short);
00196 
00197 
00198 extern boolean shellpushtargetglobals (void); /*shellverbs.c*/
00199 
00200 extern boolean shellinitverbs (void);
00201 
00202 #ifdef WIN95VERSION
00203     extern boolean shellprocessfindmessage (FINDREPLACE *);
00204 #endif
00205 
00206 
00207 

Generated on Wed May 31 18:20:01 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6