home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1998 August / macformat-066.iso / How-to's / Foreign Files / Creator Changer 2.8.4 / Code & Resource / Creator Changer.dialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-18  |  3.0 KB  |  73 lines  |  [TEXT/KAHL]

  1. #include "AppleEvents.h"
  2. #include "Drag.h"
  3.  
  4. pascal    OSErr            Handle_Drag_Tracking(short, WindowRef, void *test, unsigned long);
  5. pascal    OSErr            Handle_Drag_Receive_Drop(WindowRef, void *test, unsigned long);
  6. void                    Open_DLOG(Dialog_Info *);
  7. void                    Switch_Chng_Dialog(Dialog_Info *, short);
  8. void                     Switch_Pt_Dialog(Dialog_Info *, short);
  9. void                     Switch_Ac_Dialog(Dialog_Info *, short);
  10. void                    Switch_Gnrl_Dialog(Dialog_Info *, short);
  11. void                    Switch_Abot_Dialog(Dialog_Info *, short);
  12. void                    Switch_Pref_Dialog(Dialog_Info *, short);
  13. void                    Handle_Chng_OK(DialogRef, AEDescList *, long, short, short);
  14. void                    Set_Type_Long(Str4, OSType *, DialogRef, short);
  15. void                    Set_Type_Text(Str4, OSType);
  16. void                    Handle_Make_Like(DialogRef, short, short, short);
  17. void                     Handle_Pt_Add_Item(DialogRef, short, short, short);
  18. void                    Handle_Pt_Del_Item(void);
  19. void                     Handle_Ac_Add_Item(DialogRef, short, short, short);
  20. void                    Make_Ac_Name(StringPtr, StringPtr, StringPtr, StringPtr);
  21. void                    Handle_Ac_Del_Item(void);
  22. Boolean                     Handle_Check_Item(DialogRef, short);
  23. void                    Draw_Default_Border(DialogRef);
  24. void                    Draw_Chng_Crnt_Type(DialogRef);
  25. short                    Check_Data(DialogRef, short, short);
  26. void                    Set_DLOG_Text_Item(DialogRef, short, StringPtr);
  27. static pascal void        Draw_Chng_Dialog(DialogRef, short);
  28. static pascal void        Draw_Abot_Dialog(DialogRef, short);
  29. static pascal void        Draw_Pref_Dialog(DialogRef, short);
  30. static pascal void        Draw_Pref_Gnrl(DialogRef, short);
  31. void                    Handle_Pref_Pop_Up_Menu(Dialog_Info *, short);
  32. void                    Handle_Pref_Set_Up_DLOG(DialogRef, short, short *);
  33. void                    Handle_Pref_DITL_Item(Dialog_Info *, short);
  34. void                    Get_Dialog_Text(StringPtr, DialogRef, short);
  35. void                    Set_Dialog_Proc(Handle, DialogRef, short);
  36. void                    Get_Dialog_Item_Hndl(DialogRef, short, Handle *);
  37. void                    Get_Dialog_Item_Rect(DialogRef, short, Rect *);
  38. Boolean                    Get_Dialog_Item_In_Rect(DialogRef, short, Point);
  39.  
  40.  
  41. static DragTrackingHandlerUPP    drag_tracking=NIL_PTR;
  42. static DragReceiveHandlerUPP    drag_receiver=NIL_PTR;
  43. static UserItemUPP                proc_for_draw_Chng_dialog=NIL_PTR;
  44. static UserItemUPP                proc_for_draw_Abot_dialog=NIL_PTR;
  45. static UserItemUPP                proc_for_draw_Pref_dialog=NIL_PTR;
  46. Boolean                            Done_With_Dialog=NO;
  47. Str4                            F_Type, C_Type;
  48. Str4                            EMPTY_STR="\p";
  49.  
  50.  
  51. extern Boolean            All_Done;
  52. extern Boolean            Has_Drag_Mgr;
  53. extern Handle            The_Icons;
  54. extern short            The_pt_Type[100];
  55. extern short            The_ac_Type[100];
  56. extern short            Multiple_Files;
  57. extern short            CreatorChangerApp, CreatorChangerPref;
  58. extern short            PT_Item_To_Edit;
  59. extern short            AC_Item_To_Edit;
  60. extern short            Strt_Rsrc;
  61. extern Str63            Types_Error_1;
  62. extern Str32            Types_Error_2;
  63. extern Str32            Descr_Error;
  64. extern Str32            Bad_Item_Error;
  65. extern Str32            Bad_CF_Type_1;
  66. extern Str32            Bad_CF_Type_2;
  67. extern Str32            Bad_CF_Type_3;
  68. extern Str32            Bad_CF_Type_4;
  69. extern Dialog_Info        Chng, Edit, Auto, About, Pref;
  70. extern global_prefs        **Global;
  71. extern EventRecord        The_Event;
  72. extern FSSpec            The_File_Spec;
  73. extern FInfo            File_Info;