uisharing.h

Go to the documentation of this file.
00001 
00002 /*  $Id: uisharing.h 355 2005-01-11 22:48:55Z 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 uisharinginclude
00029 
00030 
00031 #define noMenuSharing 0x1 /*masks for uisInit*/
00032 #define noWindowSharing 0x2
00033 
00034 
00035 /*core routines for UI Sharing clients*/
00036 
00037     Boolean uisInit (ProcPtr, short, OSType, unsigned short);
00038     
00039     Boolean uisHandleEvent (EventRecord *, Boolean *);
00040     
00041     Boolean uisEdit (short);
00042     
00043     Boolean uisSharedMenuHit (short, short);
00044     
00045     Boolean uisIsSharedWindow (WindowPtr);
00046     
00047     Boolean uisCloseSharedWindow (WindowPtr);
00048     
00049     void uisCloseAllSharedWindows (void);
00050     
00051     void uisClose (void);
00052     
00053 
00054 /*for apps that want to use Iowa Runtime as their dialog manager*/
00055 
00056     #define uisInitEvent 1000 /*constants for (*ev).what in callbacks*/
00057     #define uisMajorRecalcEvent 1001
00058     #define uisMinorRecalcEvent 1002
00059     #define uisButtonHitEvent 1003
00060     #define uisCloseEvent 1004
00061     #define uisRunScriptEvent 1005
00062     #define uisCancelEvent 1006
00063     #define uisSetHandleEvent 1007
00064 
00065     typedef void (*uisEventCallback) (EventRecord *);
00066 
00067     Boolean uisRunModalHandle (Handle, Boolean, Str255, short, short, uisEventCallback);
00068 
00069     Boolean uisRunModalResource (short, Boolean, Str255, short, short, uisEventCallback);
00070 
00071     Boolean uisOpenCardResource (short, Boolean, Str255, short, short, uisEventCallback);
00072 
00073     Boolean uisOpenHandle (Handle, Boolean, Str255, short, short, uisEventCallback);
00074 
00075     Boolean uisSetObjectValue (Handle, Str255, Handle);
00076 
00077     Boolean uisGetObjectValue (Handle, Str255, Handle *);
00078 
00079     Boolean uisGetObjectHandle (Handle, Str255, Handle *);
00080 
00081     Boolean uisRecalcObject (Handle);
00082     
00083     Boolean uisUpdate (Handle);
00084     
00085 /*for a stub app whose sole purpose is to run a card*/
00086 
00087     Boolean uisStubStart (void);
00088 
00089 
00090 
00091 
00092 

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