ioacolorpopup.c File Reference

#include "frontier.h"
#include "standard.h"
#include <iac.h>
#include <ioa.h>
#include "ioacolorpopup.h"

Include dependency graph for ioacolorpopup.c:

Go to the source code of this file.

Data Structures

struct  Jump68kDescriptor

Defines

#define colorpopuptype   -3
#define mPopupMsg   3
#define outsetsize   1
#define itemsize   10
#define boxinset   5
#define textvertinset   2
#define gestalttrap   0xA1AD
#define unimplementedtrap   0xA09F
#define BUILD_JUMP68K_DESCRIPTOR(procedure)

Functions

static boolean gestaltavailable (void)
static boolean getgestaltattr (OSType selector, long *response)
static boolean systemhascolor (void)
static void getitemrect (short item, Rect *ritem)
static void frameitem (short item, Rect menurect)
static pascal void colormenuhandler (short msg, MenuHandle hmenu, Rect *menurect, Point pt, short *item)
static void DebugNum (long num)
static boolean colormenuclick (Point pt, RGBColor *rgb)
static void getcolorrect (hdlobject h, Rect r, Rect *rbox)
static boolean getcoloreditrect (hdlobject h, Rect *r)
static boolean clickcolorpopup (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click)
static boolean cleancolorpopup (hdlobject h, short height, short width, Rect *r)
static boolean canreplicatecolorpopup (hdlobject h)
static void pushlong (long num, bigstring bs)
static boolean getcolorpopupvalue (hdlobject h, Handle *hvalue)
static void poplong (bigstring bs, unsigned short *x)
static boolean setcolorpopupvalue (hdlobject h, Handle hvalue)
static boolean debugcolorpopup (hdlobject h, bigstring errorstring)
static boolean drawcolorobject (hdlobject h)
static boolean newcolordata (hdlcolordata *hdata)
static boolean initcolorpopup (tyobject *obj)
static boolean unpackcolordata (hdlobject h)
static boolean getcolorattributes (hdlobject h, AppleEvent *event)
static boolean setcolorattributes (hdlobject h, AppleEvent *event)
static boolean recalccolorpopup (hdlobject h, boolean flmajorrecalc)
void setupcolorpopup (tyioaconfigrecord *)


Define Documentation

#define boxinset   5
 

Definition at line 45 of file ioacolorpopup.c.

Referenced by cleancolorpopup(), and getcoloreditrect().

#define BUILD_JUMP68K_DESCRIPTOR procedure   ) 
 

Value:

{                               \
    0x4EF9,                         \
    (ProcPtr)(procedure),           \
    }

Definition at line 296 of file ioacolorpopup.c.

Referenced by colormenuclick().

#define colorpopuptype   -3
 

Definition at line 37 of file ioacolorpopup.c.

Referenced by setupcolorpopup().

#define gestalttrap   0xA1AD
 

Definition at line 49 of file ioacolorpopup.c.

Referenced by gestaltavailable().

#define itemsize   10
 

Definition at line 43 of file ioacolorpopup.c.

Referenced by getitemrect(), shellsizemenuchecker(), and sizemenuchecker().

#define mPopupMsg   3
 

Definition at line 39 of file ioacolorpopup.c.

Referenced by colormenuhandler().

#define outsetsize   1
 

Definition at line 41 of file ioacolorpopup.c.

#define textvertinset   2
 

Definition at line 47 of file ioacolorpopup.c.

#define unimplementedtrap   0xA09F
 

Definition at line 51 of file ioacolorpopup.c.

Referenced by gestaltavailable().


Function Documentation

static boolean canreplicatecolorpopup hdlobject  h  )  [static]
 

Definition at line 477 of file ioacolorpopup.c.

Referenced by setupcolorpopup().

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

Definition at line 462 of file ioacolorpopup.c.

References boxinset, and IOAmakemultiple().

Referenced by setupcolorpopup().

Here is the call graph for this function:

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

Definition at line 438 of file ioacolorpopup.c.

References colormenuclick(), h, IOAinvalobject(), IOArunbuttonscript(), pt, and systemhascolor().

Referenced by setupcolorpopup().

Here is the call graph for this function:

static boolean colormenuclick Point  pt,
RGBColor rgb
[static]
 

Definition at line 305 of file ioacolorpopup.c.

References BUILD_JUMP68K_DESCRIPTOR, colormenu, colormenuhandler(), ctable, DisposeHandle, HiWord, IOAcloseresfile(), IOAopenresfile(), LoWord, NewHandle, pt, and systemhascolor().

Referenced by clickcolorpopup().

Here is the call graph for this function:

static pascal void colormenuhandler short  msg,
MenuHandle  hmenu,
Rect menurect,
Point  pt,
short item
[static]
 

Definition at line 149 of file ioacolorpopup.c.

References blackcolor, ctable, getitemrect(), i, IOApopforecolor(), IOApushforecolor(), lightbluecolor, and r.

Referenced by colormenuclick(), and initcolorpopup().

Here is the call graph for this function:

static boolean debugcolorpopup hdlobject  h,
bigstring  errorstring
[static]
 

Definition at line 595 of file ioacolorpopup.c.

References setstringlength.

Referenced by setupcolorpopup().

static void DebugNum long  num  )  [static]
 

Definition at line 278 of file ioacolorpopup.c.

References bigstring, and DebugStr().

Here is the call graph for this function:

static boolean drawcolorobject hdlobject  h  )  [static]
 

Definition at line 603 of file ioacolorpopup.c.

References getcoloreditrect(), getcolorrect(), h, IOAeditdrawtexthandle(), IOApopbackcolor(), and IOApushbackcolor().

Referenced by setupcolorpopup().

Here is the call graph for this function:

static void frameitem short  item,
Rect  menurect
[static]
 

Definition at line 123 of file ioacolorpopup.c.

References blackcolor, getitemrect(), IOApopforecolor(), IOApushforecolor(), and r.

Referenced by colormenuhandler().

Here is the call graph for this function:

static boolean gestaltavailable void   )  [static]
 

Definition at line 54 of file ioacolorpopup.c.

References gestalttrap, and unimplementedtrap.

Referenced by gestalt(), and getgestaltattr().

static boolean getcolorattributes hdlobject  h,
AppleEvent event
[static]
 

Definition at line 699 of file ioacolorpopup.c.

References tyIACglobals::event, IACglobals, and IACpushRGBColorparam().

Referenced by setupcolorpopup().

Here is the call graph for this function:

static boolean getcoloreditrect hdlobject  h,
Rect r
[static]
 

Definition at line 428 of file ioacolorpopup.c.

References boxinset.

Referenced by drawcolorobject(), and setupcolorpopup().

static boolean getcolorpopupvalue hdlobject  h,
Handle hvalue
[static]
 

Definition at line 507 of file ioacolorpopup.c.

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

Referenced by setupcolorpopup().

Here is the call graph for this function:

static void getcolorrect hdlobject  h,
Rect  r,
Rect rbox
[static]
 

Definition at line 401 of file ioacolorpopup.c.

References tyFontInfo::ascent, tyFontInfo::descent, tyFontInfo::leading, and textvertinset.

Referenced by drawcolorobject().

static boolean getgestaltattr OSType  selector,
long response
[static]
 

Definition at line 74 of file ioacolorpopup.c.

References gestaltavailable(), and noErr.

Referenced by systemhascolor().

Here is the call graph for this function:

static void getitemrect short  item,
Rect ritem
[static]
 

Definition at line 100 of file ioacolorpopup.c.

References itemsize, and r.

Referenced by colormenuhandler(), drawcolorpopup(), and frameitem().

static boolean initcolorpopup tyobject obj  )  [static]
 

Definition at line 673 of file ioacolorpopup.c.

References newcolordata().

Referenced by clickcolorpopup(), and setupcolorpopup().

Here is the call graph for this function:

static boolean newcolordata hdlcolordata hdata  )  [static]
 

Definition at line 654 of file ioacolorpopup.c.

References h, lightbluecolor, longsizeof, and nil.

Referenced by initcolorpopup(), and unpackcolordata().

static void poplong bigstring  bs,
unsigned short x
[static]
 

Definition at line 531 of file ioacolorpopup.c.

References bigstring.

Referenced by setcolorpopupvalue().

static void pushlong long  num,
bigstring  bs
[static]
 

Definition at line 497 of file ioacolorpopup.c.

References bigstring, and IOApushstring().

Here is the call graph for this function:

static boolean recalccolorpopup hdlobject  h,
boolean  flmajorrecalc
[static]
 

Definition at line 729 of file ioacolorpopup.c.

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

Referenced by setupcolorpopup().

Here is the call graph for this function:

static boolean setcolorattributes hdlobject  h,
AppleEvent event
[static]
 

Definition at line 713 of file ioacolorpopup.c.

References tyIACglobals::event, IACgetRGBColorparam(), IACglobals, and tyIACglobals::nextparamoptional.

Referenced by setupcolorpopup().

Here is the call graph for this function:

static boolean setcolorpopupvalue hdlobject  h,
Handle  hvalue
[static]
 

Definition at line 570 of file ioacolorpopup.c.

References bigstring, DisposeHandle, IOAtexthandletostring(), nil, and poplong().

Referenced by recalccolorpopup().

Here is the call graph for this function:

void setupcolorpopup tyioaconfigrecord  ) 
 

Definition at line 747 of file ioacolorpopup.c.

References canreplicatecolorpopup(), cleancolorpopup(), clickcolorpopup(), colorpopuptype, debugcolorpopup(), drawcolorobject(), getcolorattributes(), getcoloreditrect(), getcolorpopupvalue(), initcolorpopup(), IOAcopystring(), recalccolorpopup(), setcolorattributes(), and unpackcolordata().

Referenced by main().

Here is the call graph for this function:

static boolean systemhascolor void   )  [static]
 

Definition at line 87 of file ioacolorpopup.c.

References getgestaltattr().

Here is the call graph for this function:

static boolean unpackcolordata hdlobject  h  )  [static]
 

Definition at line 681 of file ioacolorpopup.c.

References newcolordata(), and nil.

Referenced by setupcolorpopup().

Here is the call graph for this function:


Generated on Fri Jun 2 04:02:49 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6