dialogs.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define dialogsinclude
#define okitem   1
#define cancelitem   2
#define quitdialogid   254
#define savedialogid   256
#define saveyesitem   1
#define savecancelitem   2
#define savenoitem   3
#define savefileprompt   4
#define savequitprompt   5
#define replacereplaceitem   1
#define replaceduplicateitem   2
#define replacecancelitem   3
#define askdialogid   262
#define askokitem   1
#define askcancelitem   2
#define askpromptitem   3
#define askansweritem   4
#define msgdialogid   263
#define msgokitem   1
#define msgcancelitem   2
#define msgmsgitem   3
#define twowaydialogid   263
#define twowayokitem   1
#define twowaycancelitem   2
#define twowaymsgitem   3
#define threewaydialogid   264
#define threewayyesitem   1
#define threewaynoitem   2
#define threewaycancelitem   3
#define threewaymsgitem   4
#define intdialogid   265
#define intokitem   1
#define intcancelitem   2
#define intpromptitem   3
#define intintitem   4
#define chardialogid   266
#define charokitem   1
#define charcancelitem   2
#define charpromptitem   3
#define charvalitem   4
#define sferrordialogid   260
#define alertdialogid   261
#define alertokitem   1
#define alertmsgitem   3
#define revertdialogid   269
#define revertokitem   1
#define newvaluedialogid   255
#define valuenameitem   4
#define firstkinditem   5
#define lastkinditem   10

Typedefs

typedef boolean(* dialogcallback )(DialogPtr, short)

Functions

short dialogcountitems (DialogPtr)
void boldenbutton (DialogPtr, short)
void positiondialogwindow (DialogPtr)
void disabledialogitem (DialogPtr, short)
void enabledialogitem (DialogPtr, short)
void hidedialogitem (DialogPtr, short)
void showdialogitem (DialogPtr, short)
void setdefaultitem (DialogPtr, short)
boolean dialogitemisbutton (DialogPtr, short)
DialogPtr newmodaldialog (short, short)
void disposemodaldialog (DialogPtr)
void setdialogcheckbox (DialogPtr, short, boolean)
boolean getdialogcheckbox (DialogPtr, short)
void toggledialogcheckbox (DialogPtr, short)
boolean setdialogradiovalue (DialogPtr, short, short, short)
short getdialogradiovalue (DialogPtr, short, short)
void setdialogicon (DialogPtr, short, short)
void setdialogtext (DialogPtr, short, bigstring)
void getdialogtext (DialogPtr, short, bigstring)
void selectdialogtext (DialogPtr, short)
short getdialogint (DialogPtr, short)
void setdialogint (DialogPtr, short, short)
OSType getdialogostype (DialogPtr, short)
void setdialogostype (DialogPtr, short, OSType)
void setdialogbutton (DialogPtr, short, bigstring)
void dialoggetobjectrect (DialogPtr, short, Rect *)
void dialogsetobjectrect (DialogPtr, short, Rect)
boolean dialogsetfontsize (DialogPtr, short, short)
boolean ptinuseritem (Point, DialogPtr, short)
boolean setuseritemdrawroutine (DialogPtr, short, dialogcallback)
pascal boolean modaldialogcallback (DialogPtr, EventRecord *, short *)
void dialogupdate (EventRecord *, DialogPtr)
boolean dialogevent (EventRecord *, DialogPtr, short *)
boolean dialogidle (DialogPtr)
boolean dialogactivate (DialogPtr, boolean)
boolean dialogsetselect (DialogPtr, short, short)
boolean dialogselectall (DialogPtr)
boolean dialoggetselect (DialogPtr, short *, short *)
short savedialog (bigstring)
short replacevariabledialog (bigstring)
boolean revertdialog (bigstring)
boolean askdialog (bigstring, bigstring)
boolean askpassword (bigstring, bigstring)
boolean twowaydialog (bigstring, bigstring, bigstring)
short threewaydialog (bigstring, bigstring, bigstring, bigstring)
boolean initdialogs (void)
boolean intdialog (bigstring, short *)
boolean chardialog (bigstring, short *)
boolean msgdialog (bigstring)
boolean alertdialog (bigstring)
boolean alertstring (short)
short customalert (short, bigstring)
boolean customdialog (short, short, dialogcallback)
char X0_p2cstrcpy (char *dst, StringPtr src)


Define Documentation

#define alertdialogid   261
 

Definition at line 84 of file dialogs.h.

Referenced by alertdialog().

#define alertmsgitem   3
 

Definition at line 86 of file dialogs.h.

Referenced by alertdialog().

#define alertokitem   1
 

Definition at line 85 of file dialogs.h.

Referenced by alertdialog().

#define askansweritem   4
 

Definition at line 52 of file dialogs.h.

Referenced by askdialog(), and askpassword().

#define askcancelitem   2
 

Definition at line 50 of file dialogs.h.

Referenced by askdialog(), and askpassword().

#define askdialogid   262
 

Definition at line 48 of file dialogs.h.

Referenced by askdialog(), and askpassword().

#define askokitem   1
 

Definition at line 49 of file dialogs.h.

Referenced by askdialog(), and askpassword().

#define askpromptitem   3
 

Definition at line 51 of file dialogs.h.

#define cancelitem   2
 

Definition at line 32 of file dialogs.h.

#define charcancelitem   2
 

Definition at line 78 of file dialogs.h.

Referenced by chardialog().

#define chardialogid   266
 

Definition at line 76 of file dialogs.h.

Referenced by chardialog().

#define charokitem   1
 

Definition at line 77 of file dialogs.h.

Referenced by chardialog().

#define charpromptitem   3
 

Definition at line 79 of file dialogs.h.

Referenced by chardialog().

#define charvalitem   4
 

Definition at line 80 of file dialogs.h.

Referenced by chardialog().

#define dialogsinclude
 

Definition at line 29 of file dialogs.h.

#define firstkinditem   5
 

Definition at line 93 of file dialogs.h.

#define intcancelitem   2
 

Definition at line 72 of file dialogs.h.

#define intdialogid   265
 

Definition at line 70 of file dialogs.h.

Referenced by intdialog().

#define intintitem   4
 

Definition at line 74 of file dialogs.h.

Referenced by intdialog().

#define intokitem   1
 

Definition at line 71 of file dialogs.h.

Referenced by intdialog().

#define intpromptitem   3
 

Definition at line 73 of file dialogs.h.

Referenced by intdialog().

#define lastkinditem   10
 

Definition at line 94 of file dialogs.h.

#define msgcancelitem   2
 

Definition at line 56 of file dialogs.h.

#define msgdialogid   263
 

Definition at line 54 of file dialogs.h.

Referenced by msgdialog().

#define msgmsgitem   3
 

Definition at line 57 of file dialogs.h.

Referenced by msgdialog().

#define msgokitem   1
 

Definition at line 55 of file dialogs.h.

Referenced by msgdialog().

#define newvaluedialogid   255
 

Definition at line 91 of file dialogs.h.

Referenced by showpopupkinddialog().

#define okitem   1
 

Definition at line 31 of file dialogs.h.

#define quitdialogid   254
 

Definition at line 34 of file dialogs.h.

#define replacecancelitem   3
 

Definition at line 46 of file dialogs.h.

Referenced by replacevariabledialog().

#define replaceduplicateitem   2
 

Definition at line 45 of file dialogs.h.

Referenced by replacevariabledialog().

#define replacereplaceitem   1
 

Definition at line 44 of file dialogs.h.

Referenced by replacevariabledialog().

#define revertdialogid   269
 

Definition at line 88 of file dialogs.h.

Referenced by revertdialog().

#define revertokitem   1
 

Definition at line 89 of file dialogs.h.

Referenced by revertdialog().

#define savecancelitem   2
 

Definition at line 38 of file dialogs.h.

Referenced by savedialog().

#define savedialogid   256
 

Definition at line 36 of file dialogs.h.

Referenced by savedialog().

#define savefileprompt   4
 

Definition at line 40 of file dialogs.h.

#define savenoitem   3
 

Definition at line 39 of file dialogs.h.

Referenced by savedialog().

#define savequitprompt   5
 

Definition at line 41 of file dialogs.h.

#define saveyesitem   1
 

Definition at line 37 of file dialogs.h.

Referenced by savedialog().

#define sferrordialogid   260
 

Definition at line 82 of file dialogs.h.

#define threewaycancelitem   3
 

Definition at line 67 of file dialogs.h.

Referenced by threewaydialog().

#define threewaydialogid   264
 

Definition at line 64 of file dialogs.h.

Referenced by threewaydialog().

#define threewaymsgitem   4
 

Definition at line 68 of file dialogs.h.

Referenced by threewaydialog().

#define threewaynoitem   2
 

Definition at line 66 of file dialogs.h.

Referenced by threewaydialog().

#define threewayyesitem   1
 

Definition at line 65 of file dialogs.h.

Referenced by threewaydialog().

#define twowaycancelitem   2
 

Definition at line 61 of file dialogs.h.

Referenced by twowaydialog().

#define twowaydialogid   263
 

Definition at line 59 of file dialogs.h.

Referenced by twowaydialog().

#define twowaymsgitem   3
 

Definition at line 62 of file dialogs.h.

Referenced by twowaydialog().

#define twowayokitem   1
 

Definition at line 60 of file dialogs.h.

Referenced by twowaydialog().

#define valuenameitem   4
 

Definition at line 92 of file dialogs.h.


Typedef Documentation

typedef boolean(* dialogcallback)(DialogPtr, short)
 

Definition at line 111 of file dialogs.h.


Function Documentation

boolean alertdialog bigstring   ) 
 

Definition at line 1822 of file dialogs.c.

Referenced by alertdialogverb(), alertstring(), appcopycommand(), appscriptcomplete(), browserchecklinelength(), browserpredrag(), browservalidatepaste(), cardcheckinit(), cardFastScript(), ccstart(), checknilcallbacks(), checkprinterror(), compareforcopyvisit(), disposeundostack(), filesurefolder(), frontDeleteCardTable(), frontEditTable(), frontGetTable(), frontSetRuntimeCard(), frontStartCard(), initappletwires(), langfunctionvalue(), launchFrontier(), newwindowverb(), odbOpenFile(), openappwindow(), osaRunSharedMenuItem(), oserror(), pascalalertdialog(), pushscrap(), recalcclone(), runbuttonscript(), saveappwindow(), saveiacdata(), scriptnewprocess(), shelldatabasesaveas(), shellerrormessage(), syserror(), and verbmakefilespec().

boolean alertstring short   ) 
 

Definition at line 1855 of file dialogs.c.

References alertdialog(), alertstringlistnumber, bigstring, and getstringlist().

Referenced by ccloadfile(), postthreadsmessage(), shellrevert(), showerrorandexit(), tabledroppasteroutine(), and tablesetitemname().

Here is the call graph for this function:

boolean askdialog bigstring  ,
bigstring 
 

Definition at line 1530 of file dialogs.c.

Referenced by askdialogverb(), askfunc(), handlemenu(), and tabledroppasteroutine().

boolean askpassword bigstring  ,
bigstring 
 

Definition at line 1906 of file dialogs.c.

References hwndMDIClient, lenbigstring, and winAskDialog().

Referenced by askfunc().

Here is the call graph for this function:

void boldenbutton DialogPtr  ,
short 
 

Definition at line 91 of file dialogs.c.

Referenced by modaldialogcallback(), and newmodaldialog().

boolean chardialog bigstring  ,
short
 

Definition at line 1695 of file dialogs.c.

References bigstring, CharDialogCallback(), copyptocstring(), grabthreadglobals(), hInst, hwndMDIClient, IDD_DIALOGCOMMANDKEY, tyCharDialogInfo::prompt, releasethreadglobals(), tyCharDialogInfo::retBuffer, tyCharDialogInfo::retBufferLen, and setstringlength.

Referenced by mecmdkeypopupselect().

Here is the call graph for this function:

short customalert short  ,
bigstring 
 

Definition at line 1789 of file dialogs.c.

References newmodaldialog(), nil, runmodaldialog(), and setdialogtext().

Here is the call graph for this function:

boolean customdialog short  ,
short  ,
dialogcallback 
 

Definition at line 1865 of file dialogs.c.

References dialogselectall(), disposemodaldialog(), newmodaldialog(), nil, and runmodaldialog().

Referenced by langrundialog(), and showpopupkinddialog().

Here is the call graph for this function:

boolean dialogactivate DialogPtr  ,
boolean 
 

Definition at line 1258 of file dialogs.c.

References dialoggeteditbuffer(), and nil.

Referenced by langdialogactivate().

Here is the call graph for this function:

short dialogcountitems DialogPtr   ) 
 

Definition at line 62 of file dialogs.c.

Referenced by dialoghasedititems(), dialogmapkeystroke(), and langvaliddialogitem().

boolean dialogevent EventRecord ,
DialogPtr  ,
short
 

Definition at line 1220 of file dialogs.c.

References modaldialogcallback(), and nil.

Referenced by langdialogkeystroke(), and langdialogmousedown().

Here is the call graph for this function:

void dialoggetobjectrect DialogPtr  ,
short  ,
Rect
 

Definition at line 688 of file dialogs.c.

Referenced by drawabout(), drawtextitem(), and ptinuseritem().

boolean dialoggetselect DialogPtr  ,
short ,
short
 

Definition at line 1276 of file dialogs.c.

References dialoggeteditbuffer(), and nil.

Here is the call graph for this function:

boolean dialogidle DialogPtr   ) 
 

Definition at line 1245 of file dialogs.c.

References dialoggeteditbuffer(), and nil.

Referenced by langdialogidle().

Here is the call graph for this function:

boolean dialogitemisbutton DialogPtr  ,
short 
 

Definition at line 247 of file dialogs.c.

References dialogitemtypeiscontrol().

Referenced by dialogmapkeystroke(), dialogsimulatehit(), and langrunmodeless().

Here is the call graph for this function:

boolean dialogselectall DialogPtr   ) 
 

Definition at line 1311 of file dialogs.c.

References dialogsetselect(), infinity, and noErr.

Referenced by customdialog(), langdialogselectall(), langrunmodeless(), and setdialogtext().

Here is the call graph for this function:

boolean dialogsetfontsize DialogPtr  ,
short  ,
short 
 

Definition at line 723 of file dialogs.c.

References tyFontInfo::ascent, tyFontInfo::descent, dialoggeteditbuffer(), globalfontinfo, h, tyFontInfo::leading, popstyle(), and pushstyle().

Here is the call graph for this function:

void dialogsetobjectrect DialogPtr  ,
short  ,
Rect 
 

Definition at line 697 of file dialogs.c.

References dialoggeteditbuffer().

Here is the call graph for this function:

boolean dialogsetselect DialogPtr  ,
short  ,
short 
 

Definition at line 1294 of file dialogs.c.

References dialoggeteditbuffer(), and nil.

Referenced by dialogselectall().

Here is the call graph for this function:

void dialogupdate EventRecord ,
DialogPtr 
 

Definition at line 1186 of file dialogs.c.

References DisposeRgn, modaldialogcallback(), and NewRgn.

Referenced by langdialogupdate().

Here is the call graph for this function:

void disabledialogitem DialogPtr  ,
short 
 

Definition at line 173 of file dialogs.c.

Referenced by langsetdialogitemenable().

void disposemodaldialog DialogPtr   ) 
 

Definition at line 385 of file dialogs.c.

References flscriptrunning, langpartialeventloop(), shellpartialeventloop(), and windowevents.

Referenced by alertdialog(), askdialog(), askpassword(), chardialog(), customdialog(), intdialog(), msgdialog(), revertdialog(), savedialog(), threewaydialog(), and twowaydialog().

Here is the call graph for this function:

void enabledialogitem DialogPtr  ,
short 
 

Definition at line 195 of file dialogs.c.

Referenced by langsetdialogitemenable().

boolean getdialogcheckbox DialogPtr  ,
short 
 

Definition at line 428 of file dialogs.c.

References bitboolean.

Referenced by getdialogradiovalue(), and setdialogradiovalue().

short getdialogint DialogPtr  ,
short 
 

Definition at line 608 of file dialogs.c.

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

Here is the call graph for this function:

OSType getdialogostype DialogPtr  ,
short 
 

Definition at line 635 of file dialogs.c.

References bigstring, getdialogtext(), and stringtoostype().

Here is the call graph for this function:

short getdialogradiovalue DialogPtr  ,
short  ,
short 
 

Definition at line 482 of file dialogs.c.

References getdialogcheckbox().

Here is the call graph for this function:

void getdialogtext DialogPtr  ,
short  ,
bigstring 
 

Definition at line 503 of file dialogs.c.

Referenced by askdialog(), chardialog(), drawtextitem(), getdialogint(), getdialogostype(), intdialog(), and runurlscript().

void hidedialogitem DialogPtr  ,
short 
 

Definition at line 213 of file dialogs.c.

Referenced by langsetdialogitemvis().

boolean initdialogs void   ) 
 

Definition at line 1977 of file dialogs.c.

Referenced by shellinit().

boolean intdialog bigstring  ,
short
 

Definition at line 1658 of file dialogs.c.

References bigstring, hwndMDIClient, lenbigstring, numbertostring(), stringtoshort(), and winAskDialog().

Referenced by getintfunc(), and shellhandlemenu().

Here is the call graph for this function:

pascal boolean modaldialogcallback DialogPtr  ,
EventRecord ,
short
 

Definition at line 966 of file dialogs.c.

References autoKey, bigstring, boldenbutton(), cancelbuttonstring, chenter, chescape, chreturn, dialogmapkeystroke(), dialogsimulatehit(), keyDown, nil, passworditem, passwordprocesskey(), RestoreA5, setstringwithchar, SetUpAppA5, shellevent, shellgetstring(), updateEvt, and tyEventRecord::when.

Referenced by dialogevent(), dialogupdate(), and runmodaldialog().

Here is the call graph for this function:

boolean msgdialog bigstring   ) 
 

Definition at line 1758 of file dialogs.c.

References copyptocstring(), and messagebox().

Referenced by browserdragcopy(), and osacomponentverifyshutdown().

Here is the call graph for this function:

DialogPtr newmodaldialog short  ,
short 
 

Definition at line 323 of file dialogs.c.

Referenced by alertdialog(), askdialog(), askpassword(), chardialog(), confirmdialog(), customalert(), customdialog(), intdialog(), msgdialog(), revertdialog(), savedialog(), threewaydialog(), twowaydialog(), and yesnodialog().

void positiondialogwindow DialogPtr   ) 
 

Definition at line 130 of file dialogs.c.

References getcurrentscreenbounds(), h, movewindow(), and v.

Referenced by myMoof(), and newmodaldialog().

Here is the call graph for this function:

boolean ptinuseritem Point  ,
DialogPtr  ,
short 
 

Definition at line 754 of file dialogs.c.

References dialoggetobjectrect(), pointinrect(), pt, and r.

Here is the call graph for this function:

short replacevariabledialog bigstring   ) 
 

Definition at line 1405 of file dialogs.c.

References copyptocstring(), messagebox(), and wsprintf.

Referenced by tableconfirmedinsert().

Here is the call graph for this function:

boolean revertdialog bigstring   ) 
 

Definition at line 1500 of file dialogs.c.

References bigstring, convertpstring(), messagebox(), nil, parsedialogstring(), and shellgetstring().

Referenced by shellrevert().

Here is the call graph for this function:

short savedialog bigstring   ) 
 

Definition at line 1341 of file dialogs.c.

Referenced by closeappwindow(), and shellclose().

void selectdialogtext DialogPtr  ,
short 
 

Definition at line 593 of file dialogs.c.

Referenced by askdialog(), chardialog(), and intdialog().

void setdefaultitem DialogPtr  ,
short 
 

Definition at line 225 of file dialogs.c.

Referenced by langdialognewwindow(), and newmodaldialog().

void setdialogbutton DialogPtr  ,
short  ,
bigstring 
 

Definition at line 662 of file dialogs.c.

References r.

void setdialogcheckbox DialogPtr  ,
short  ,
boolean 
 

Definition at line 412 of file dialogs.c.

Referenced by setdialogradiovalue().

void setdialogicon DialogPtr  ,
short  ,
short 
 

Definition at line 534 of file dialogs.c.

References nil.

void setdialogint DialogPtr  ,
short  ,
short 
 

Definition at line 625 of file dialogs.c.

References bigstring, and setdialogtext().

Here is the call graph for this function:

void setdialogostype DialogPtr  ,
short  ,
OSType 
 

Definition at line 652 of file dialogs.c.

References bigstring, ostypetostring(), and setdialogtext().

Here is the call graph for this function:

boolean setdialogradiovalue DialogPtr  ,
short  ,
short  ,
short 
 

Definition at line 460 of file dialogs.c.

References getdialogcheckbox(), and setdialogcheckbox().

Here is the call graph for this function:

void setdialogtext DialogPtr  ,
short  ,
bigstring 
 

Definition at line 553 of file dialogs.c.

Referenced by alertdialog(), askdialog(), askpassword(), chardialog(), confirmdialog(), customalert(), intdialog(), langsetdialogvalue(), msgdialog(), savedialog(), setdialogint(), setdialogostype(), threewaydialog(), twowaydialog(), and yesnodialog().

boolean setuseritemdrawroutine DialogPtr  ,
short  ,
dialogcallback 
 

Definition at line 765 of file dialogs.c.

References assert.

void showdialogitem DialogPtr  ,
short 
 

Definition at line 219 of file dialogs.c.

Referenced by langsetdialogitemvis().

short threewaydialog bigstring  ,
bigstring  ,
bigstring  ,
bigstring 
 

Definition at line 1615 of file dialogs.c.

Referenced by browsercollisiondialog(), replacevariabledialog(), savedialog(), and threewayfunc().

void toggledialogcheckbox DialogPtr  ,
short 
 

Definition at line 444 of file dialogs.c.

boolean twowaydialog bigstring  ,
bigstring  ,
bigstring 
 

Definition at line 1584 of file dialogs.c.

Referenced by confirmdialog(), twowayfunc(), and yesnodialog().

char X0_p2cstrcpy char *  dst,
StringPtr  src
 

Definition at line 1991 of file dialogs.c.

References i.

Referenced by setdialogtext().


Generated on Thu Jun 1 06:58:55 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6