appletcard.c File Reference

#include <iowacore.h>
#include "applet.h"
#include "appletmain.h"
#include "appletwires.h"
#include "appletcardops.h"
#include "appletcard.h"

Include dependency graph for appletcard.c:

Go to the source code of this file.

Defines

#define infocardid   157
#define twowaycardid   158
#define threewaycardid   159
#define alertcardid   160
#define askcardid   161
#define passwordcardid   173

Functions

static void alertfilter (EventRecord *ev)
boolean alertdialog (bigstring bs)
boolean infodialog (bigstring bs)
static void twowayfilter (EventRecord *ev)
boolean twowaydialog (bigstring bsprompt, bigstring defaultbutton, bigstring otherbutton)
boolean confirmdialog (bigstring bs)
boolean yesnodialog (bigstring bs)
static void threewayfilter (EventRecord *ev)
short threewaydialog (bigstring bsprompt, bigstring leftbutton, bigstring midbutton, bigstring rightbutton)
static void askfilter (EventRecord *ev)
static boolean onestringdialog (short id, bigstring prompt, bigstring answer)
boolean askdialog (bigstring prompt, bigstring answer)
boolean passworddialog (bigstring prompt, bigstring answer)
static void replaceexistingfilter (EventRecord *ev)
boolean replaceexistingdialog (bigstring fname)

Variables

static boolean alertshowing = false
static Handle dialogstring1
static Handle dialogstring2
static Handle dialogstring3
static Handle dialogstring4
static boolean flconfirmed
static short threewayvalue
boolean fldialogsenabled = true
bigstring bsalertstring


Define Documentation

#define alertcardid   160
 

Definition at line 18 of file appletcard.c.

Referenced by alertdialog(), and alertfilter().

#define askcardid   161
 

Definition at line 19 of file appletcard.c.

Referenced by askdialog(), and askfilter().

#define infocardid   157
 

Definition at line 15 of file appletcard.c.

Referenced by infodialog().

#define passwordcardid   173
 

Definition at line 20 of file appletcard.c.

Referenced by passworddialog().

#define threewaycardid   159
 

Definition at line 17 of file appletcard.c.

Referenced by threewaydialog(), and threewayfilter().

#define twowaycardid   158
 

Definition at line 16 of file appletcard.c.

Referenced by twowaydialog(), and twowayfilter().


Function Documentation

boolean alertdialog bigstring  bs  ) 
 

Definition at line 72 of file appletcard.c.

References alertcardid, alertfilter(), alertshowing, apprunmodalresource(), bsalertstring, copystring(), DebugStr(), dialogstring1, fldialogsenabled, newtexthandle(), optionkeydown(), and sysbeep.

Here is the call graph for this function:

static void alertfilter EventRecord ev  )  [static]
 

Definition at line 43 of file appletcard.c.

References alertcardid, appcarddefaulteventhandler(), appsavedialoginfo(), currentcard, dialogstring1, h, iowaButtonHitEvent, iowaCloseEvent, iowaInitEvent, and setObjectValue().

Referenced by alertdialog(), and infodialog().

Here is the call graph for this function:

boolean askdialog bigstring  prompt,
bigstring  answer
 

Definition at line 329 of file appletcard.c.

References askcardid, and onestringdialog().

Here is the call graph for this function:

static void askfilter EventRecord ev  )  [static]
 

Definition at line 258 of file appletcard.c.

References appcarddefaulteventhandler(), appsavedialoginfo(), askcardid, bigstring, copyhandle(), currentcard, dialogstring1, dialogstring2, equalstrings(), flconfirmed, getobjectnamestring(), getObjectValue(), iowaButtonHitEvent, iowaCloseEvent, iowaInitEvent, nil, and setObjectValue().

Referenced by onestringdialog().

Here is the call graph for this function:

boolean confirmdialog bigstring  bs  ) 
 

Definition at line 175 of file appletcard.c.

References twowaydialog().

Here is the call graph for this function:

boolean infodialog bigstring  bs  ) 
 

Definition at line 103 of file appletcard.c.

References alertfilter(), apprunmodalresource(), bsalertstring, copystring(), dialogstring1, fldialogsenabled, infocardid, and newtexthandle().

Here is the call graph for this function:

static boolean onestringdialog short  id,
bigstring  prompt,
bigstring  answer
[static]
 

Definition at line 308 of file appletcard.c.

References apprunmodalresource(), askfilter(), bsalertstring, copystring(), dialogstring1, dialogstring2, disposehandle(), flconfirmed, fldialogsenabled, newtexthandle(), and texthandletostring().

Referenced by askdialog(), and passworddialog().

Here is the call graph for this function:

boolean passworddialog bigstring  prompt,
bigstring  answer
 

Definition at line 335 of file appletcard.c.

References onestringdialog(), and passwordcardid.

Here is the call graph for this function:

boolean replaceexistingdialog bigstring  fname  ) 
 

Definition at line 375 of file appletcard.c.

References apprunmodalresource(), bigstring, copystring(), dialogstring1, flconfirmed, fldialogsenabled, left, localtoglobalrect(), newtexthandle(), popmacport(), pushmacport(), pushstring(), r, and replaceexistingfilter().

Here is the call graph for this function:

static void replaceexistingfilter EventRecord ev  )  [static]
 

Definition at line 341 of file appletcard.c.

References appcarddefaulteventhandler(), appsavedialoginfo(), bigstring, currentcard, dialogstring1, equalstrings(), flconfirmed, getobjectnamestring(), h, iowaButtonHitEvent, iowaCloseEvent, iowaInitEvent, and setObjectValue().

Referenced by replaceexistingdialog().

Here is the call graph for this function:

short threewaydialog bigstring  bsprompt,
bigstring  leftbutton,
bigstring  midbutton,
bigstring  rightbutton
 

Definition at line 237 of file appletcard.c.

References apprunmodalresource(), bsalertstring, copystring(), dialogstring1, dialogstring2, dialogstring3, dialogstring4, fldialogsenabled, newtexthandle(), threewaycardid, threewayfilter(), and threewayvalue.

Here is the call graph for this function:

static void threewayfilter EventRecord ev  )  [static]
 

Definition at line 187 of file appletcard.c.

References appcarddefaulteventhandler(), appsavedialoginfo(), bigstring, currentcard, dialogstring1, dialogstring2, dialogstring3, dialogstring4, equalstrings(), getobjectnamestring(), h, iowaButtonHitEvent, iowaCloseEvent, iowaInitEvent, setObjectValue(), threewaycardid, and threewayvalue.

Referenced by threewaydialog().

Here is the call graph for this function:

boolean twowaydialog bigstring  bsprompt,
bigstring  defaultbutton,
bigstring  otherbutton
 

Definition at line 156 of file appletcard.c.

References apprunmodalresource(), bsalertstring, copystring(), dialogsetbuttonstring(), dialogstring1, dialogstring2, dialogstring3, disposemodaldialog(), flconfirmed, fldialogsenabled, newmodaldialog(), newtexthandle(), nil, runmodaldialog(), setdialogtext(), twowaycancelitem, twowaycardid, twowaydialogid, twowayfilter(), twowaymsgitem, and twowayokitem.

Here is the call graph for this function:

static void twowayfilter EventRecord ev  )  [static]
 

Definition at line 118 of file appletcard.c.

References appcarddefaulteventhandler(), appsavedialoginfo(), bigstring, currentcard, dialogstring1, dialogstring2, dialogstring3, equalstrings(), flconfirmed, getobjectnamestring(), h, iowaButtonHitEvent, iowaCloseEvent, iowaInitEvent, setObjectValue(), and twowaycardid.

Referenced by twowaydialog().

Here is the call graph for this function:

boolean yesnodialog bigstring  bs  ) 
 

Definition at line 181 of file appletcard.c.

References twowaydialog().

Here is the call graph for this function:


Variable Documentation

boolean alertshowing = false [static]
 

Definition at line 23 of file appletcard.c.

Referenced by alertdialog().

bigstring bsalertstring
 

Definition at line 38 of file appletcard.c.

Handle dialogstring1 [static]
 

Definition at line 25 of file appletcard.c.

Referenced by alertdialog(), alertfilter(), askfilter(), infodialog(), onestringdialog(), replaceexistingdialog(), replaceexistingfilter(), threewaydialog(), threewayfilter(), twowaydialog(), and twowayfilter().

Handle dialogstring2 [static]
 

Definition at line 25 of file appletcard.c.

Referenced by askfilter(), onestringdialog(), threewaydialog(), threewayfilter(), twowaydialog(), and twowayfilter().

Handle dialogstring3 [static]
 

Definition at line 25 of file appletcard.c.

Referenced by threewaydialog(), threewayfilter(), twowaydialog(), and twowayfilter().

Handle dialogstring4 [static]
 

Definition at line 25 of file appletcard.c.

Referenced by threewaydialog(), and threewayfilter().

boolean flconfirmed [static]
 

Definition at line 27 of file appletcard.c.

Referenced by askfilter(), onestringdialog(), replaceexistingdialog(), replaceexistingfilter(), twowaydialog(), and twowayfilter().

boolean fldialogsenabled = true
 

Definition at line 37 of file appletcard.c.

short threewayvalue [static]
 

Definition at line 29 of file appletcard.c.

Referenced by threewaydialog(), and threewayfilter().


Generated on Wed May 31 19:37:04 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6