appletcardops.c File Reference

#include <iowacore.h>
#include "applet.h"
#include "appletmenu.h"
#include "appletmenuops.h"
#include "appletdate.h"
#include "appletasm.h"
#include "appletcardops.h"
#include "appletmain.h"
#include "appletfolder.h"
#include <ioapopup.h>
#include <ioacolorpopup.h>
#include <ioaedittext.h>

Include dependency graph for appletcardops.c:

Go to the source code of this file.

Data Structures

struct  tysetcardpopupfromfolderrecord

Functions

boolean cardobjectexists (bigstring name)
short getcardpopup (bigstring name)
boolean getcardcolorpopup (bigstring name, RGBColor *rgb)
boolean getcardstring (bigstring name, void *pstring)
boolean getcardpassword (bigstring name, void *pstring)
boolean getcardflag (bigstring name, boolean *fl)
boolean getcardbit (bigstring name)
static void invalobjecthandle (hdlobject hobj)
static boolean invalcardobject (bigstring name, boolean fl)
boolean setradiotext (bigstring name, Handle htext)
boolean setcardstring (bigstring name, void *pstring)
boolean emptycardpassword (bigstring name)
boolean setcardpassword (bigstring name, void *pstring)
boolean setcardflag (bigstring name, boolean fl)
boolean setcardtmpbit (bigstring name, boolean fl)
boolean setcardappbit (bigstring name, short bitnum, boolean fl)
boolean setcardtextcolor (bigstring name, RGBColor *rgb)
boolean setcardenable (bigstring name, boolean flenable)
static boolean disablevisit (hdlobject h)
boolean enableallcardobjects (boolean flenabled)
boolean setcardpopup (bigstring name, bigstring displaystring, Handle semicolonstring, short checkeditem)
static boolean getnthpopupitem (hdlobject h, short n, bigstring bs)
boolean setcardpopupcheckeditem (bigstring name, short checkeditem)
boolean getcardpopupstring (bigstring name, bigstring popupstring)
boolean setcardpopupfrommenu (bigstring name, MenuHandle hmenu, short checkeditem)
static boolean setpopupfoldervisit (bigstring fname, tyfileinfo *info, long refcon)
boolean setcardpopupfromfolder (bigstring name, ptrfilespec pfsfolder, bigstring fnamechecked)
boolean setcardicon (bigstring name, short align, short ixlabel, Handle iconsuite, tyiconclickcallback iconclick)
boolean setcardcolorpopup (bigstring name, RGBColor *rgb)
short getfontsizepopup (bigstring name)
void setfontsizepopup (bigstring name, short size)
void setfontpopup (bigstring name, diskfontstring fontname)
void getfontpopup (bigstring name, diskfontstring fontname)
void updatecard (void)
boolean getcardnumber (bigstring name, long *num)
boolean getcardshort (bigstring name, short *num)
boolean setcardnumber (bigstring name, long num)
boolean setcardtexthandle (bigstring name, Handle hvalue)
boolean replacecardtexthandle (bigstring name, Handle *hvalue)
boolean getcardtexthandle (bigstring name, Handle *hvalue)
boolean setcardrect (bigstring name, Rect r)
boolean getcardrect (bigstring name, Rect *r)
boolean setcarddate (bigstring name, tydaterecord date)
boolean getcarddate (bigstring name, tydaterecord *date)
static short getindex (short resnum)
static void getdialoginfo (short resnum, tydialoginfo *info)
static void setdialoginfo (short resnum, tydialoginfo *info)
void appcarddefaulteventhandler (EventRecord *ev)
void appscriptedmodalcardfilter (EventRecord *ev)
static boolean getcardresource (short id, Handle *hpackedcard)
void appopencardresource (short id, tycardeventcallback filter)
void apprunmodalresource (short id, tycardeventcallback filter)
void appsavedialoginfo (short id)
void appcardtofront (hdlcard hcard)

Variables

hdlcard currentcard = nil
tydialoginfo appdialoginfo [ctdialogs]
static boolean flglobal
static short fontsizemap [] = {9, 10, 12, 14, 18, 24, 36, 48, 72}


Function Documentation

void appcarddefaulteventhandler EventRecord ev  ) 
 

Definition at line 913 of file appletcardops.c.

References activateEvt, appleteventhandler(), and updateEvt.

Referenced by alertfilter(), appscriptedmodalcardfilter(), askfilter(), replaceexistingfilter(), threewayfilter(), and twowayfilter().

Here is the call graph for this function:

void appcardtofront hdlcard  hcard  ) 
 

Definition at line 1027 of file appletcardops.c.

Referenced by openaboutwindow().

void appopencardresource short  id,
tycardeventcallback  filter
 

Definition at line 975 of file appletcardops.c.

References apppostcallback(), appprecallback(), getcardresource(), getdialoginfo(), info, and runModelessCard().

Referenced by openaboutwindow().

Here is the call graph for this function:

void apprunmodalresource short  id,
tycardeventcallback  filter
 

Definition at line 991 of file appletcardops.c.

References dialogmenuenabler(), getcardresource(), getdialoginfo(), info, and runModalCard().

Referenced by alertdialog(), infodialog(), onestringdialog(), replaceexistingdialog(), threewaydialog(), and twowaydialog().

Here is the call graph for this function:

void appsavedialoginfo short  id  ) 
 

Definition at line 1007 of file appletcardops.c.

References info, localtoglobalrect(), popmacport(), pushmacport(), r, and setdialoginfo().

Referenced by aboutfilter(), alertfilter(), askfilter(), replaceexistingfilter(), threewayfilter(), and twowayfilter().

Here is the call graph for this function:

void appscriptedmodalcardfilter EventRecord ev  ) 
 

Definition at line 933 of file appletcardops.c.

References appcarddefaulteventhandler(), iowaButtonHitEvent, and iowaRunScriptEvent.

Referenced by appruncard().

Here is the call graph for this function:

boolean cardobjectexists bigstring  name  ) 
 

Definition at line 32 of file appletcardops.c.

References currentcard, and getObjectHandle().

Here is the call graph for this function:

static boolean disablevisit hdlobject  h  )  [static]
 

Definition at line 387 of file appletcardops.c.

References flglobal.

Referenced by enableallcardobjects().

boolean emptycardpassword bigstring  name  ) 
 

Definition at line 197 of file appletcardops.c.

References currentcard, emptytextbehindbullets(), getObjectHandle(), and setcardstring().

Here is the call graph for this function:

boolean enableallcardobjects boolean  flenabled  ) 
 

Definition at line 400 of file appletcardops.c.

References disablevisit(), flglobal, and visitobjects().

Here is the call graph for this function:

boolean getcardbit bigstring  name  ) 
 

Definition at line 116 of file appletcardops.c.

References currentcard, and getObjectHandle().

Here is the call graph for this function:

boolean getcardcolorpopup bigstring  name,
RGBColor rgb
 

Definition at line 54 of file appletcardops.c.

References currentcard, getObjectHandle(), and return().

Here is the call graph for this function:

boolean getcarddate bigstring  name,
tydaterecord date
 

Definition at line 880 of file appletcardops.c.

References bigstring, getcardstring(), and stringtoappletdate().

Here is the call graph for this function:

boolean getcardflag bigstring  name,
boolean fl
 

Definition at line 103 of file appletcardops.c.

References currentcard, and getObjectHandle().

Here is the call graph for this function:

boolean getcardnumber bigstring  name,
long num
 

Definition at line 717 of file appletcardops.c.

References bigstring, getcardstring(), and stringtonumber().

Referenced by getcardshort().

Here is the call graph for this function:

boolean getcardpassword bigstring  name,
void *  pstring
 

Definition at line 86 of file appletcardops.c.

References bigstring, copystring(), currentcard, getObjectHandle(), and gettextbehindbullets().

Referenced by setcardpassword().

Here is the call graph for this function:

short getcardpopup bigstring  name  ) 
 

Definition at line 40 of file appletcardops.c.

References currentcard, getObjectHandle(), and return().

Referenced by getfontpopup(), and getfontsizepopup().

Here is the call graph for this function:

boolean getcardpopupstring bigstring  name,
bigstring  popupstring
 

Definition at line 499 of file appletcardops.c.

References copystring(), currentcard, and getObjectHandle().

Here is the call graph for this function:

boolean getcardrect bigstring  name,
Rect r
 

Definition at line 819 of file appletcardops.c.

References bigstring, deletestring(), getcardstring(), i, pushchar(), setstringlength, and stringlength.

Here is the call graph for this function:

static boolean getcardresource short  id,
Handle hpackedcard
[static]
 

Definition at line 958 of file appletcardops.c.

References h, and nil.

Referenced by appopencardresource(), and apprunmodalresource().

boolean getcardshort bigstring  name,
short num
 

Definition at line 731 of file appletcardops.c.

References getcardnumber(), and short.

Here is the call graph for this function:

boolean getcardstring bigstring  name,
void *  pstring
 

Definition at line 70 of file appletcardops.c.

References currentcard, getObjectValue(), setstringlength, and texthandletostring().

Referenced by getcarddate(), getcardnumber(), getcardrect(), and setcardstring().

Here is the call graph for this function:

boolean getcardtexthandle bigstring  name,
Handle hvalue
 

Definition at line 786 of file appletcardops.c.

References copyhandle(), currentcard, disposehandle(), getObjectValue(), and nil.

Here is the call graph for this function:

static void getdialoginfo short  resnum,
tydialoginfo info
[static]
 

Definition at line 901 of file appletcardops.c.

References appdialoginfo, getindex(), and info.

Referenced by appopencardresource(), and apprunmodalresource().

Here is the call graph for this function:

void getfontpopup bigstring  name,
diskfontstring  fontname
 

Definition at line 696 of file appletcardops.c.

References bigstring, copystring(), getcardpopup(), getmenuitem(), and hdlfontmenu.

Here is the call graph for this function:

short getfontsizepopup bigstring  name  ) 
 

Definition at line 649 of file appletcardops.c.

References fontsizemap, and getcardpopup().

Here is the call graph for this function:

static short getindex short  resnum  )  [static]
 

Definition at line 891 of file appletcardops.c.

References assert, and ctdialogs.

Referenced by getdialoginfo(), and setdialoginfo().

static boolean getnthpopupitem hdlobject  h,
short  n,
bigstring  bs
[static]
 

Definition at line 438 of file appletcardops.c.

References GetHandleSize, i, and setstringlength.

static boolean invalcardobject bigstring  name,
boolean  fl
[static]
 

Definition at line 142 of file appletcardops.c.

References currentcard, getObjectHandle(), and invalobjecthandle().

Here is the call graph for this function:

static void invalobjecthandle hdlobject  hobj  )  [static]
 

Definition at line 132 of file appletcardops.c.

Referenced by invalcardobject(), setcardcolorpopup(), setcardflag(), setcardicon(), setcardpopupcheckeditem(), setcardtextcolor(), and setradiotext().

boolean replacecardtexthandle bigstring  name,
Handle hvalue
 

Definition at line 765 of file appletcardops.c.

References copyhandle(), currentcard, disposehandle(), equalhandles(), and getObjectValue().

Here is the call graph for this function:

boolean setcardappbit bigstring  name,
short  bitnum,
boolean  fl
 

Definition at line 271 of file appletcardops.c.

References currentcard, and getObjectHandle().

Here is the call graph for this function:

boolean setcardcolorpopup bigstring  name,
RGBColor rgb
 

Definition at line 631 of file appletcardops.c.

References currentcard, getObjectHandle(), invalobjecthandle(), and tycolordata::rgb.

Here is the call graph for this function:

boolean setcarddate bigstring  name,
tydaterecord  date
 

Definition at line 870 of file appletcardops.c.

References appletdatetostring(), bigstring, and setcardstring().

Here is the call graph for this function:

boolean setcardenable bigstring  name,
boolean  flenable
 

Definition at line 332 of file appletcardops.c.

References clearactivetextobject(), currentcard, edittexttype, getObjectHandle(), iowadata, nil, and setactivetextobject().

Here is the call graph for this function:

boolean setcardflag bigstring  name,
boolean  fl
 

Definition at line 235 of file appletcardops.c.

References currentcard, getObjectHandle(), and invalobjecthandle().

Here is the call graph for this function:

boolean setcardicon bigstring  name,
short  align,
short  ixlabel,
Handle  iconsuite,
tyiconclickcallback  iconclick
 

Definition at line 602 of file appletcardops.c.

References tyicondata::align, currentcard, getObjectHandle(), and invalobjecthandle().

Here is the call graph for this function:

boolean setcardnumber bigstring  name,
long  num
 

Definition at line 744 of file appletcardops.c.

References bigstring, and setcardstring().

Here is the call graph for this function:

boolean setcardpassword bigstring  name,
void *  pstring
 

Definition at line 211 of file appletcardops.c.

References bigstring, currentcard, equalstrings(), filledstring(), getcardpassword(), getObjectHandle(), setcardstring(), settextbehindbullets(), stringlength, and value.

Here is the call graph for this function:

boolean setcardpopup bigstring  name,
bigstring  displaystring,
Handle  semicolonstring,
short  checkeditem
 

Definition at line 416 of file appletcardops.c.

References copystring(), currentcard, disposehandle(), and getObjectHandle().

Referenced by setcardpopupfromfolder().

Here is the call graph for this function:

boolean setcardpopupcheckeditem bigstring  name,
short  checkeditem
 

Definition at line 479 of file appletcardops.c.

References typopupdata::checkeditem, currentcard, getnthpopupitem(), getObjectHandle(), and invalobjecthandle().

Referenced by setfontpopup().

Here is the call graph for this function:

boolean setcardpopupfromfolder bigstring  name,
ptrfilespec  pfsfolder,
bigstring  fnamechecked
 

Definition at line 580 of file appletcardops.c.

References tysetcardpopupfromfolderrecord::checkeditem, copystring(), disposehandle(), tysetcardpopupfromfolderrecord::fnamechecked, folderloop(), tysetcardpopupfromfolderrecord::hsemistring, newtexthandle(), setcardpopup(), and setpopupfoldervisit().

Here is the call graph for this function:

boolean setcardpopupfrommenu bigstring  name,
MenuHandle  hmenu,
short  checkeditem
 

Definition at line 515 of file appletcardops.c.

References bigstring, copystring(), countmenuitems(), ct, getmenuitem(), i, newclearhandle(), pushchar(), pushtexthandle(), and setstringlength.

Here is the call graph for this function:

boolean setcardrect bigstring  name,
Rect  r
 

Definition at line 801 of file appletcardops.c.

References bigstring, pushchar(), pushlong(), setcardstring(), and setstringlength.

Here is the call graph for this function:

boolean setcardstring bigstring  name,
void *  pstring
 

Definition at line 179 of file appletcardops.c.

References bigstring, currentcard, equalstrings(), getcardstring(), newtexthandle(), setObjectValue(), and value.

Referenced by emptycardpassword(), setcarddate(), setcardnumber(), setcardpassword(), and setcardrect().

Here is the call graph for this function:

boolean setcardtextcolor bigstring  name,
RGBColor rgb
 

Definition at line 314 of file appletcardops.c.

References currentcard, equalcolors(), getObjectHandle(), and invalobjecthandle().

Here is the call graph for this function:

boolean setcardtexthandle bigstring  name,
Handle  hvalue
 

Definition at line 754 of file appletcardops.c.

References copyhandle(), currentcard, h, and setObjectValue().

Here is the call graph for this function:

boolean setcardtmpbit bigstring  name,
boolean  fl
 

Definition at line 258 of file appletcardops.c.

References currentcard, and getObjectHandle().

Here is the call graph for this function:

static void setdialoginfo short  resnum,
tydialoginfo info
[static]
 

Definition at line 907 of file appletcardops.c.

References appdialoginfo, getindex(), and info.

Referenced by appsavedialoginfo().

Here is the call graph for this function:

void setfontpopup bigstring  name,
diskfontstring  fontname
 

Definition at line 673 of file appletcardops.c.

References bigstring, copystring(), countmenuitems(), ct, fastunicaseequalstrings, getmenuitem(), hdlfontmenu, i, and setcardpopupcheckeditem().

Here is the call graph for this function:

void setfontsizepopup bigstring  name,
short  size
 

Definition at line 655 of file appletcardops.c.

References fontsizemap, and i.

static boolean setpopupfoldervisit bigstring  fname,
tyfileinfo info,
long  refcon
[static]
 

Definition at line 557 of file appletcardops.c.

References copystring(), pushtexthandle(), and unicaseequalstrings().

Referenced by setcardpopupfromfolder().

Here is the call graph for this function:

boolean setradiotext bigstring  name,
Handle  htext
 

Definition at line 155 of file appletcardops.c.

References currentcard, disposehandle(), getObjectHandle(), and invalobjecthandle().

Here is the call graph for this function:

void updatecard void   ) 
 

Definition at line 706 of file appletcardops.c.

References currentcard, and updateCard().

Here is the call graph for this function:


Variable Documentation

tydialoginfo appdialoginfo[ctdialogs]
 

Definition at line 24 of file appletcardops.c.

Referenced by getdialoginfo(), and setdialoginfo().

hdlcard currentcard = nil
 

Definition at line 22 of file appletcardops.c.

Referenced by aboutfilter(), alertfilter(), askfilter(), cardobjectexists(), claysetlinelayout(), emptycardpassword(), getcardbit(), getcardcolorpopup(), getcardflag(), getcardpassword(), getcardpopup(), getcardpopupstring(), getcardstring(), getcardtexthandle(), invalcardobject(), replacecardtexthandle(), replaceexistingfilter(), setcardappbit(), setcardcolorpopup(), setcardenable(), setcardflag(), setcardicon(), setcardpassword(), setcardpopup(), setcardpopupcheckeditem(), setcardstring(), setcardtextcolor(), setcardtexthandle(), setcardtmpbit(), setradiotext(), threewayfilter(), twowayfilter(), and updatecard().

boolean flglobal [static]
 

Definition at line 26 of file appletcardops.c.

Referenced by disablevisit(), and enableallcardobjects().

short fontsizemap[] = {9, 10, 12, 14, 18, 24, 36, 48, 72} [static]
 

Definition at line 28 of file appletcardops.c.

Referenced by getfontsizepopup(), and setfontsizepopup().


Generated on Wed May 31 20:02:13 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6