home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Audio / FrontEnd / Source / FrontEnd.h < prev    next >
Encoding:
Text File  |  1990-05-26  |  2.1 KB  |  56 lines

  1.  
  2. /* ---------------------------------------- */
  3. /* FrontEnd.m -- Copyright (c) 1990 Ed Hill */
  4. /* ---------------------------------------- */
  5.  
  6. #import <objc/Object.h>
  7.  
  8. @interface FrontEnd:Object
  9. {
  10.     id         FrontEndWindow;        /* Program display window            */
  11.     id         IconBox;        /* Box were Mac icon is displayed        */
  12.     id         IconBox2;        /* Box were NeXT icon is displayed        */
  13.     id        NameView;        /* Textfield were Mac file name is displayed    */
  14.     id        NameView2;        /* Textfield were NeXT file name is displayed    */
  15.     id        SampleButton;        /* Button that represents the PopUpList        */
  16.     id        ConvertButton;        /* Button that starts the Converting process    */
  17.     id        ErrorText;        /* Text that shows any Errors            */
  18.     id        currentSound;        /* The current NeXT sound            */
  19.     id        myGNULicense;        /* GNU Liscense display                       */
  20.     id         popup;            /* Actual PopUpList that shows Sampling Rates      */
  21.     char    *macSoundName;        /* The current path list of the Mac sound          */
  22.     char    *nextSoundName;        /* The current path list of the NeXT sound         */
  23.     char    *iconPath;        /* The path of the file that has been selected     */
  24.     BOOL    isPaused;        /* Current status of the sound (ON/OFF)               */
  25.     BOOL    NothingHere;        /* Tells there's a file that needs converting      */
  26.     int        sampleRate;        /* Current Sampling Rate (1=22 KHz, 0=11 KHz)      */
  27. }
  28.  
  29. /* Set up any visual objects through the Interface Builder                           */
  30. -setFrontEndWindow:anObject;
  31. -setNameView:anObject;
  32. -setNameView2:anObject;
  33. -setIconBox:anObject;
  34. -setIconBox2:anObject;
  35. -setSampleButton:anObject;
  36. -setConvertButton:anObject;
  37. -setErrorText:anObject;
  38.  
  39. /* Interacting with the WorkSpace Manager                                      */
  40. -setUpDraggedInFiles:sender;
  41.  
  42. /* Manipulating the converted sound so the user can verify the conversion                 */
  43. -playsound:sender;
  44. -stopsound:sender;
  45. -pausesound:sender;
  46.  
  47. /* Internal methods that handle converting the sound                              */
  48. -changeSampleRate:sender;
  49. -convertMactoNeXT:sender;
  50. -_actualMactoNeXTcode:(int)sampleRate;
  51.  
  52. /* Public method that shows the GNU Public License                              */
  53. -showGNULicense:sender;
  54.  
  55. @end
  56.