uisharing.c File Reference

#include "frontier.h"
#include "standard.h"
#include <uisharing.h>
#include <uisinternal.h>

Include dependency graph for uisharing.c:

Go to the source code of this file.

Defines

#define glue   static pascal ComponentResult

Functions

Boolean uisDisposeSharedMenus (void)
Boolean uisIsSharedMenu (short)
void uisEnableSharedMenus (Boolean)
Boolean uisRunSharedMenuItem (short, short)
static Boolean HaveComponentManager (void)
static Boolean isFrontProcess ()
glue windoweventGlue (ComponentInstance comp, EventRecord *ev, tyWindowSharingGlobals *wsGlobals) ComponentCallNow(wsEventHandlerCommand
glue sizeof (EventRecord *)
Boolean uisSharedMenuHit (short idmenu, short iditem)
Boolean uisHandleEvent (EventRecord *ev, Boolean *flcloseallwindows)
Boolean uisIsSharedWindow (WindowPtr w)
Boolean uisCloseSharedWindow (WindowPtr w)
void uisCloseAllSharedWindows (void)
static Boolean IACgetbinaryparam (AppleEvent *event, OSType keyword, Handle *hbinary, OSType *binarytype, OSErr *errcode)
static Boolean IACgetstringparam (AppleEvent *event, OSType keyword, Str255 s, OSErr *errcode)
static Boolean IACgetlongparam (AppleEvent *event, OSType keyword, long *val, OSErr *errcode)
static void IACreturnboolean (AppleEvent *event, Boolean fl)
static pascal OSErr handleopencardwindow (AppleEvent *event, AppleEvent *reply, long refcon)
Boolean uisStubStart (void)
Boolean uisOpenHandle (Handle h, Boolean flscriptedcard, Str255 windowname, short top, short pleft, uisEventCallback filter)
Boolean uisOpenCardResource (short id, Boolean flscriptedcard, Str255 windowname, short top, short pleft, uisEventCallback filter)
Boolean uisRunModalHandle (Handle h, Boolean flscriptedcard, Str255 windowname, short top, short pleft, uisEventCallback filter)
Boolean uisRunModalResource (short id, Boolean flscriptedcard, Str255 windowname, short top, short pleft, uisEventCallback filter)
Boolean uisSetObjectValue (Handle hcard, Str255 name, Handle hvalue)
Boolean uisGetObjectValue (Handle hcard, Str255 name, Handle *hvalue)
Boolean uisUpdate (Handle hcard)
Boolean uisGetObjectHandle (Handle hcard, Str255 name, Handle *hvalue)
Boolean uisRecalcObject (Handle hobject)
Boolean uisEdit (short editcommand)
Boolean uisInit (ProcPtr pcallback, short idinsertafter, OSType idclientapp, unsigned short bitarray)
void uisClose (void)

Variables

tyWindowSharingGlobals wsGlobals = {0, 0, false}
tyMenuSharingGlobals msGlobals = {0, 0}


Define Documentation

#define glue   static pascal ComponentResult
 

Definition at line 35 of file uisharing.c.


Function Documentation

static pascal OSErr handleopencardwindow AppleEvent event,
AppleEvent reply,
long  refcon
[static]
 

Definition at line 1260 of file uisharing.c.

References binarytype, IACgetbinaryparam(), IACgetlongparam(), IACgetstringparam(), IACreturnboolean(), keyDirectObject, nil, noErr, and uisOpenHandle().

Referenced by uisInit().

Here is the call graph for this function:

static Boolean HaveComponentManager void   )  [static]
 

Definition at line 53 of file uisharing.c.

References noErr.

Referenced by uisInit().

static Boolean IACgetbinaryparam AppleEvent event,
OSType  keyword,
Handle hbinary,
OSType binarytype,
OSErr errcode
[static]
 

Definition at line 1175 of file uisharing.c.

References copydatahandle(), tyAEDesc::dataHandle, tyAEDesc::descriptorType, noErr, and typeWildCard.

Referenced by editverb(), handleopencardwindow(), IACgettableparam(), and putpictverb().

Here is the call graph for this function:

static Boolean IACgetlongparam AppleEvent event,
OSType  keyword,
long val,
OSErr errcode
[static]
 

Definition at line 1235 of file uisharing.c.

References noErr, and typeLongInteger.

Referenced by handleopencardwindow(), IACsetcardattributes(), and IACsetobjectattributes().

static Boolean IACgetstringparam AppleEvent event,
OSType  keyword,
Str255  s,
OSErr errcode
[static]
 

Definition at line 1201 of file uisharing.c.

References copydatahandle(), tyAEDesc::dataHandle, GetHandleSize, noErr, and typeChar.

Referenced by alertdialogverb(), appscriptcomplete(), askdialogverb(), confirmdialogverb(), editverb(), handleopencardwindow(), IACsetobjectattributes(), newwindowverb(), openverb(), saveasverb(), selectwindowverb(), setfontverb(), settargetverb(), setwindowtitleverb(), and windowmessageverb().

Here is the call graph for this function:

static void IACreturnboolean AppleEvent event,
Boolean  fl
[static]
 

Definition at line 1254 of file uisharing.c.

References keyDirectObject, and typeBoolean.

Referenced by alertdialogverb(), askdialogverb(), closewindowverb(), confirmdialogverb(), editverb(), enablealertverb(), getCardAttributesVerb(), getObjectAttributesVerb(), handleopencardwindow(), haveselectionverb(), madechangesverb(), movewindowverb(), openverb(), printwindowverb(), putbinaryverb(), putpictverb(), puttextverb(), quitverb(), revertverb(), saveasverb(), scrollwindowverb(), selectallverb(), selectwindowverb(), setCardAttributesVerb(), setfontsizeverb(), setfontverb(), setObjectAttributesVerb(), setwindowtitleverb(), windowmessageverb(), and zoomwindowverb().

static Boolean isFrontProcess  )  [static]
 

Definition at line 66 of file uisharing.c.

References currentprocess, and fl.

Referenced by uisHandleEvent().

glue sizeof EventRecord  ) 
 

Definition at line 897 of file uisharing.c.

void uisClose void   ) 
 

Definition at line 1525 of file uisharing.c.

References tyMenuSharingGlobals::menuserver, msGlobals, tyWindowSharingGlobals::windowserver, and wsGlobals.

Referenced by langipcshutdown(), and uisInit().

void uisCloseAllSharedWindows void   ) 
 

Definition at line 1152 of file uisharing.c.

References nil, uisCloseSharedWindow(), and uisIsSharedWindow().

Referenced by shellcloseall().

Here is the call graph for this function:

Boolean uisCloseSharedWindow WindowPtr  w  ) 
 

Definition at line 1140 of file uisharing.c.

References uisIsSharedWindow(), tyWindowSharingGlobals::windowserver, and wsGlobals.

Referenced by shellclose(), and uisCloseAllSharedWindows().

Here is the call graph for this function:

Boolean uisDisposeSharedMenus void   ) 
 

Boolean uisEdit short  editcommand  ) 
 

Definition at line 1427 of file uisharing.c.

References tyWindowSharingGlobals::windowserver, and wsGlobals.

Referenced by shellhandlemenu().

void uisEnableSharedMenus Boolean   ) 
 

Definition at line 1057 of file uisharing.c.

References tyMenuSharingGlobals::menuserver, and msGlobals.

Boolean uisGetObjectHandle Handle  hcard,
Str255  name,
Handle hvalue
 

Definition at line 1408 of file uisharing.c.

References tyWindowSharingGlobals::windowserver, and wsGlobals.

Boolean uisGetObjectValue Handle  hcard,
Str255  name,
Handle hvalue
 

Definition at line 1390 of file uisharing.c.

References tyWindowSharingGlobals::windowserver, and wsGlobals.

Boolean uisHandleEvent EventRecord ev,
Boolean flcloseallwindows
 

Definition at line 1092 of file uisharing.c.

References fl, tyWindowSharingGlobals::flcloseallwindows, tyMenuSharingGlobals::idinsertafter, isFrontProcess(), tyMenuSharingGlobals::menuserver, msGlobals, windoweventGlue(), tyWindowSharingGlobals::windowserver, and wsGlobals.

Here is the call graph for this function:

Boolean uisInit ProcPtr  pcallback,
short  idinsertafter,
OSType  idclientapp,
unsigned short  bitarray
 

Definition at line 1436 of file uisharing.c.

References error, handleopencardwindow(), HaveComponentManager(), tyMenuSharingGlobals::idinsertafter, tyMenuSharingGlobals::menuserver, msComponentSubType, msComponentType, msGlobals, noErr, noMenuSharing, noWindowSharing, uisClose(), tyWindowSharingGlobals::windowserver, wsComponentSubType, wsComponentType, and wsGlobals.

Here is the call graph for this function:

Boolean uisIsSharedMenu short   ) 
 

Definition at line 1043 of file uisharing.c.

References tyMenuSharingGlobals::menuserver, msGlobals, and noErr.

Boolean uisIsSharedWindow WindowPtr  w  ) 
 

Definition at line 1128 of file uisharing.c.

References nil, tyWindowSharingGlobals::windowserver, and wsGlobals.

Referenced by shellclose(), uisCloseAllSharedWindows(), and uisCloseSharedWindow().

Boolean uisOpenCardResource short  id,
Boolean  flscriptedcard,
Str255  windowname,
short  top,
short  pleft,
uisEventCallback  filter
 

Definition at line 1327 of file uisharing.c.

References tyWindowSharingGlobals::errorcode, nil, uisOpenHandle(), and wsGlobals.

Here is the call graph for this function:

Boolean uisOpenHandle Handle  h,
Boolean  flscriptedcard,
Str255  windowname,
short  top,
short  pleft,
uisEventCallback  filter
 

Definition at line 1312 of file uisharing.c.

References tyWindowSharingGlobals::errorcode, noErr, pt, tyWindowSharingGlobals::windowserver, and wsGlobals.

Referenced by handleopencardwindow(), and uisOpenCardResource().

Boolean uisRecalcObject Handle  hobject  ) 
 

Definition at line 1417 of file uisharing.c.

References tyWindowSharingGlobals::windowserver, and wsGlobals.

Referenced by recalcbottleneck().

Boolean uisRunModalHandle Handle  h,
Boolean  flscriptedcard,
Str255  windowname,
short  top,
short  pleft,
uisEventCallback  filter
 

Definition at line 1346 of file uisharing.c.

References tyWindowSharingGlobals::errorcode, noErr, pt, tyWindowSharingGlobals::windowserver, and wsGlobals.

Referenced by uisRunModalResource().

Boolean uisRunModalResource short  id,
Boolean  flscriptedcard,
Str255  windowname,
short  top,
short  pleft,
uisEventCallback  filter
 

Definition at line 1361 of file uisharing.c.

References tyWindowSharingGlobals::errorcode, nil, uisRunModalHandle(), and wsGlobals.

Here is the call graph for this function:

Boolean uisRunSharedMenuItem short  ,
short 
 

Definition at line 1064 of file uisharing.c.

References tyMenuSharingGlobals::menuserver, msGlobals, and noErr.

Boolean uisSetObjectValue Handle  hcard,
Str255  name,
Handle  hvalue
 

Definition at line 1381 of file uisharing.c.

References tyWindowSharingGlobals::windowserver, and wsGlobals.

Boolean uisSharedMenuHit short  idmenu,
short  iditem
 

Definition at line 1077 of file uisharing.c.

References tyMenuSharingGlobals::menuserver, msGlobals, and noErr.

Boolean uisStubStart void   ) 
 

Definition at line 1300 of file uisharing.c.

References tyWindowSharingGlobals::errorcode, noErr, tyWindowSharingGlobals::windowserver, and wsGlobals.

Boolean uisUpdate Handle  hcard  ) 
 

Definition at line 1399 of file uisharing.c.

References tyWindowSharingGlobals::windowserver, and wsGlobals.

glue windoweventGlue ComponentInstance  comp,
EventRecord ev,
tyWindowSharingGlobals wsGlobals
 

Referenced by uisHandleEvent().


Variable Documentation

tyMenuSharingGlobals msGlobals = {0, 0}
 

Definition at line 40 of file uisharing.c.

Referenced by uisClose(), uisEnableSharedMenus(), uisHandleEvent(), uisInit(), uisIsSharedMenu(), uisRunSharedMenuItem(), and uisSharedMenuHit().

tyWindowSharingGlobals wsGlobals = {0, 0, false}
 

Definition at line 38 of file uisharing.c.

Referenced by langipcstart(), uisClose(), uisCloseSharedWindow(), uisEdit(), uisGetObjectHandle(), uisGetObjectValue(), uisHandleEvent(), uisInit(), uisIsSharedWindow(), uisOpenCardResource(), uisOpenHandle(), uisRecalcObject(), uisRunModalHandle(), uisRunModalResource(), uisSetObjectValue(), uisStubStart(), and uisUpdate().


Generated on Wed Jun 14 04:24:01 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6