home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / POV-Ray 3.0.2 / src / MacSource / DialogUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-14  |  3.0 KB  |  82 lines  |  [TEXT/CWIE]

  1. /*==============================================================================
  2. Project:    POV-Ray
  3.  
  4. Version:    3
  5.  
  6. File:    DialogUtils.h
  7.  
  8. Description:
  9.     Various System 7 dialog handling routines.
  10. ------------------------------------------------------------------------------
  11. Author:
  12.     Eduard [esp] Schwan
  13. ------------------------------------------------------------------------------
  14.     from Persistence of Vision(tm) Ray Tracer
  15.     Copyright 1996 Persistence of Vision Team
  16. ------------------------------------------------------------------------------
  17.     NOTICE: This source code file is provided so that users may experiment
  18.     with enhancements to POV-Ray and to port the software to platforms other 
  19.     than those supported by the POV-Ray Team.  There are strict rules under
  20.     which you are permitted to use this file.  The rules are in the file
  21.     named POVLEGAL.DOC which should be distributed with this file. If 
  22.     POVLEGAL.DOC is not available or for more info please contact the POV-Ray
  23.     Team Coordinator by leaving a message in CompuServe's Graphics Developer's
  24.     Forum.  The latest version of POV-Ray may be found there as well.
  25.  
  26.     This program is based on the popular DKB raytracer version 2.12.
  27.     DKBTrace was originally written by David K. Buck.
  28.     DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
  29. ------------------------------------------------------------------------------
  30. Change History:
  31.     941221    [esp]    Created
  32. ==============================================================================*/
  33.  
  34. #ifndef DIALOGUTILS_H
  35. #define DIALOGUTILS_H
  36.  
  37. #include "config.h"
  38.  
  39. /*==== Macintosh-specific headers ====*/
  40. #include <Types.h>
  41. #include <Dialogs.h>
  42.  
  43. /*==== POV Mac Library routines =====*/
  44. #include "ScreenUtils.h"
  45.  
  46.  
  47. /*==== Prototypes =====*/
  48.  
  49. pascal void OutlineButtonDrawProc(DialogPtr theDialog, short theItem);
  50. void InstallUserDrawProc(DialogPtr theDialog, short theItem, void * theDrawProc);
  51. void EraseItemRect(DialogPtr theDialog, short theDItem);
  52. OSErr OverlayDITLOnDialog(DialogPtr theDialog, short theNewDITLID, short relItem);
  53.  
  54. void TruncStaticTextItem(DialogPtr theDialog, short itemID);
  55.  
  56. void SetCurrMModalDialog(DialogPtr dp, void * handlerFn);
  57. WindowPtr GetCurrMModalDialog(void);
  58. Boolean IsMModalDialogDisplayed(void);
  59. DialogPtr GetMModalDialog(short dialogID);
  60. void ShowMModalDialog(void);
  61. void HandleMModalDialogEvent(EventRecord *eventPtr);
  62. void CloseMModalDialog(void);
  63.  
  64. void SetupStdModalFilter(void);
  65. ModalFilterUPP GetStdModalFilter(void);
  66. void SetupDefaultDialogButtons(DialogPtr pDialog, short defaultItem, short cancelItem);
  67. ControlHandle GrabDItemHandle(DialogPtr theDialog, short theGetItem);
  68. short GetDialogItemValue(DialogPtr theDialog, short theGetItem);
  69. void SetDialogItemValue(DialogPtr theDialog, short theGetItem, short theVal);
  70. void FlashDItem(DialogPtr theDialog, short theItem);
  71. void GetBestDialogPos(Point * wherep, WindowPtr otherWindow);
  72. short DisplayModalDialog(short dlogID,
  73.                         short defaultItem,
  74.                         short cancelItem,
  75.                         char * s,
  76.                         short err,
  77.                         WindCentering_t doCentering,
  78.                         WindPositioning_t whereToShow);
  79.  
  80. #endif //  DIALOGUTILS_H
  81.  
  82.