ioapopup.c File Reference

#include "frontier.h"
#include "standard.h"
#include <iac.h>
#include <ioa.h>
#include "ioapopup.h"
#include "appletmemory.h"
#include "quickdraw.h"

Include dependency graph for ioapopup.c:

Go to the source code of this file.

Data Structures

struct  typackedpopupdata
struct  typackedB14popupdata

Defines

#define idpopupmenu   25000
#define popuparrowwidth   16
#define popupdrawinset   5
#define horizinset   3

Typedefs

typedef char smalliconbits [32]
typedef smalliconbitsptrsmalliconbits
typedef smalliconbits ** hdlsmalliconbits

Functions

static boolean plotsmallicon (Rect r, short iconlist, short iconnum, boolean flinvert)
static void disposehandle (Handle h)
static boolean pushchar (byte ch, bigstring bs)
static boolean getmenuitem (MenuHandle hmenu, short ixmenu, bigstring bs)
static void uncheckallmenuitems (MenuHandle hmenu)
static boolean equalstrings (bigstring bs1, bigstring bs2)
static boolean pushpopupitem (hdlobject h, bigstring bs, boolean flenabled)
boolean getnthpopupitem (hdlobject h, short n, bigstring bs)
static boolean getpopupmenu (hdlobject h)
static void idealpopupsize (hdlobject hobject, short *height, short *width)
static boolean cleanpopup (hdlobject h, short height, short width, Rect *r)
static void getpopuprects (hdlobject h, Rect *rtext, Rect *rpopup)
static boolean clickpopup (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click)
static boolean drawpopup (hdlobject h)
static boolean newpopupdata (hdlpopupdata *hdata)
static boolean initpopup (tyobject *obj)
static boolean recalcpopup (hdlobject h, boolean flmajorrecalc)
static boolean getpopupinvalrect (hdlobject h, Rect *r)
static boolean canreplicatepopup (hdlobject h)
static boolean getpopupeditrect (hdlobject h, Rect *redit)
static boolean getpopupvalue (hdlobject h, Handle *hvalue)
static boolean debugpopup (hdlobject h, bigstring errorstring)
static boolean getpopupattributes (hdlobject h, AppleEvent *event)
static boolean setpopupattributes (hdlobject h, AppleEvent *event)
static boolean packpopupdata (hdlobject hobject, Handle *hpackeddata)
static boolean disposepopupdata (hdlobject h)
static boolean unpackpopupdata (hdlobject h)
void setuppopup (tyioaconfigrecord *)


Define Documentation

#define horizinset   3
 

Definition at line 43 of file ioapopup.c.

Referenced by cleanpopup(), getpopuprects(), and gettextdisplayinfo().

#define idpopupmenu   25000
 

Definition at line 37 of file ioapopup.c.

Referenced by clickpopup(), and getpopupmenu().

#define popuparrowwidth   16
 

Definition at line 39 of file ioapopup.c.

#define popupdrawinset   5
 

Definition at line 41 of file ioapopup.c.

Referenced by drawpopup().


Typedef Documentation

typedef smalliconbits ** hdlsmalliconbits
 

Definition at line 100 of file ioapopup.c.

typedef smalliconbits* ptrsmalliconbits
 

Definition at line 100 of file ioapopup.c.

typedef char smalliconbits[32]
 

Definition at line 98 of file ioapopup.c.


Function Documentation

static boolean canreplicatepopup hdlobject  h  )  [static]
 

Definition at line 733 of file ioapopup.c.

Referenced by setuppopup().

static boolean cleanpopup hdlobject  h,
short  height,
short  width,
Rect r
[static]
 

Definition at line 365 of file ioapopup.c.

References h, horizinset, idealpopupsize(), and IOAmakemultiple().

Referenced by setuppopup().

Here is the call graph for this function:

static boolean clickpopup hdlobject  listhead,
hdlobject  h,
Point  pt,
boolean  flshiftkey,
boolean  fl2click
[static]
 

Definition at line 422 of file ioapopup.c.

References bigstring, getmenuitem(), getpopupmenu(), getpopuprects(), h, HiWord, idpopupmenu, IOAcopystring(), IOAinvalobject(), IOArunbuttonscript(), LoWord, pt, r, and uncheckallmenuitems().

Referenced by setuppopup().

Here is the call graph for this function:

static boolean debugpopup hdlobject  h,
bigstring  errorstring
[static]
 

Definition at line 771 of file ioapopup.c.

References setstringlength.

Referenced by setuppopup().

static void disposehandle Handle  h  )  [static]
 

Definition at line 153 of file ioapopup.c.

References DisposeHandle, and nil.

static boolean disposepopupdata hdlobject  h  )  [static]
 

Definition at line 895 of file ioapopup.c.

References disposehandle().

Referenced by setuppopup().

Here is the call graph for this function:

static boolean drawpopup hdlobject  h  )  [static]
 

Definition at line 542 of file ioapopup.c.

References bigstring, tyFontInfo::descent, getpopuprects(), h, IOAcopystring(), IOAeditdrawtexthandle(), IOAellipsize(), nil, plotsmallicon(), popuparrowwidth, and r.

Here is the call graph for this function:

static boolean equalstrings bigstring  bs1,
bigstring  bs2
[static]
 

Definition at line 200 of file ioapopup.c.

References ct.

static boolean getmenuitem MenuHandle  hmenu,
short  ixmenu,
bigstring  bs
[static]
 

Definition at line 176 of file ioapopup.c.

boolean getnthpopupitem hdlobject  h,
short  n,
bigstring  bs
 

Definition at line 253 of file ioapopup.c.

References GetHandleSize, i, and setstringlength.

Referenced by getpopupmenu(), setcardpopupcheckeditem(), and setpopupattributes().

static boolean getpopupattributes hdlobject  h,
AppleEvent event
[static]
 

Definition at line 780 of file ioapopup.c.

References tyIACglobals::event, IACglobals, IACpushbooleanparam(), IACpushshortparam(), IACpushtextparam(), and IOAnewtexthandle().

Referenced by setuppopup().

Here is the call graph for this function:

static boolean getpopupeditrect hdlobject  h,
Rect redit
[static]
 

Definition at line 740 of file ioapopup.c.

References getpopuprects(), and h.

Referenced by setuppopup().

Here is the call graph for this function:

static boolean getpopupinvalrect hdlobject  h,
Rect r
[static]
 

Definition at line 721 of file ioapopup.c.

Referenced by setuppopup().

static boolean getpopupmenu hdlobject  h  )  [static]
 

Definition at line 294 of file ioapopup.c.

References bigstring, getnthpopupitem(), h, idpopupmenu, nil, and pushpopupitem().

Referenced by clickpopup(), and idealpopupsize().

Here is the call graph for this function:

static void getpopuprects hdlobject  h,
Rect rtext,
Rect rpopup
[static]
 

Definition at line 399 of file ioapopup.c.

References horizinset, IOAclearbytes(), and longsizeof.

Referenced by clickpopup(), drawpopup(), and getpopupeditrect().

Here is the call graph for this function:

static boolean getpopupvalue hdlobject  h,
Handle hvalue
[static]
 

Definition at line 756 of file ioapopup.c.

References bigstring, IOAcopystring(), IOAnewtexthandle(), and IOApushstring().

Referenced by setuppopup().

Here is the call graph for this function:

static void idealpopupsize hdlobject  hobject,
short height,
short width
[static]
 

Definition at line 320 of file ioapopup.c.

References bigstring, getmenuitem(), getpopupmenu(), h, and i.

Referenced by cleanpopup().

Here is the call graph for this function:

static boolean initpopup tyobject obj  )  [static]
 

Definition at line 655 of file ioapopup.c.

References IOAcopystring(), IOAnewtexthandle(), and newpopupdata().

Referenced by setuppopup().

Here is the call graph for this function:

static boolean newpopupdata hdlpopupdata hdata  )  [static]
 

Definition at line 636 of file ioapopup.c.

References h, longsizeof, and nil.

Referenced by initpopup(), and unpackpopupdata().

static boolean packpopupdata hdlobject  hobject,
Handle hpackeddata
[static]
 

Definition at line 841 of file ioapopup.c.

References GetHandleSize, HLock, HUnlock, info, IOAclearbytes(), IOAcopystring(), longsizeof, NewHandle, and nil.

Referenced by setuppopup().

Here is the call graph for this function:

static boolean plotsmallicon Rect  r,
short  iconlist,
short  iconnum,
boolean  flinvert
[static]
 

Definition at line 104 of file ioapopup.c.

References heightsmallicon, nil, and widthsmallicon.

static boolean pushchar byte  ch,
bigstring  bs
[static]
 

Definition at line 161 of file ioapopup.c.

References lenbigstring.

static boolean pushpopupitem hdlobject  h,
bigstring  bs,
boolean  flenabled
[static]
 

Definition at line 220 of file ioapopup.c.

References bigstring, chspace, equalstrings(), isemptystring, and setstringwithchar.

Here is the call graph for this function:

static boolean recalcpopup hdlobject  h,
boolean  flmajorrecalc
[static]
 

Definition at line 677 of file ioapopup.c.

References bigstring, disposehandle(), errorstring, h, and IOAevalscript().

Referenced by setuppopup().

Here is the call graph for this function:

static boolean setpopupattributes hdlobject  h,
AppleEvent event
[static]
 

Definition at line 807 of file ioapopup.c.

References disposehandle(), tyIACglobals::event, getnthpopupitem(), h, IACgetbooleanparam(), IACgetshortparam(), IACgettextparam(), IACglobals, and tyIACglobals::nextparamoptional.

Referenced by setuppopup().

Here is the call graph for this function:

void setuppopup tyioaconfigrecord  ) 
 

Definition at line 975 of file ioapopup.c.

References canreplicatepopup(), cleanpopup(), clickpopup(), debugpopup(), disposepopupdata(), drawpopup(), getpopupattributes(), getpopupeditrect(), getpopupinvalrect(), getpopupvalue(), initpopup(), IOAcopystring(), packpopupdata(), popuptype, recalcpopup(), setpopupattributes(), and unpackpopupdata().

Referenced by main().

Here is the call graph for this function:

static void uncheckallmenuitems MenuHandle  hmenu  )  [static]
 

Definition at line 187 of file ioapopup.c.

References ct, and i.

Referenced by clickpopup(), and popupclick().

static boolean unpackpopupdata hdlobject  h  )  [static]
 

Definition at line 905 of file ioapopup.c.

References disposehandle(), HLock, HUnlock, info, IOAcopystring(), longsizeof, newpopupdata(), nil, and setstringlength.

Referenced by setuppopup().

Here is the call graph for this function:


Generated on Fri Jun 2 04:03:16 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6