home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / NeoIntroTCL3.0 folder / TCL / NeoDemo / Includes / CNeoDemoDoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-31  |  3.1 KB  |  85 lines  |  [TEXT/KAHL]

  1. /****
  2.  * CNeoDemoDoc.h
  3.  *
  4.  *    Document class for a typical application.
  5.  *  Copyright © 1992 NeoLogic Systems.  All rights reserved.
  6.  *
  7.  ****/
  8.  
  9. #define    _H_CNeoDemoDoc            /* Include this file only once */
  10. #include CNeoDocRootH
  11.  
  12. class CNeoPopupPane;
  13. class CNDFilePicture;
  14. class CNeoDemoScrollPane;
  15. class CNeoDialogText;
  16. class CEditText;
  17. class CNDPicture;
  18. class CNDImage;
  19. class CNeoKeywordSelect;
  20.  
  21. enum{
  22.     kNDImagePICT=1,
  23.     kNDImageTIFF,
  24.     kNDImageGIF,
  25.     kNDImage
  26. };   /* item indices in type popup */
  27.  
  28. struct CNeoDemoDoc : public CNeoDocRoot {
  29. public:
  30.  
  31.                         // Instance Methods
  32.                         CNeoDemoDoc(CApplication *aSupervisor, const Boolean printable, const Boolean aNewFile, const Boolean aRemote);
  33.     virtual                ~CNeoDemoDoc(void);
  34.  
  35.     virtual void        buildWindow(void);
  36.     virtual Boolean        DoSave(void);
  37.      virtual void        NewFile(void);
  38.     virtual void        OpenFile(SFReply *macSFReply);
  39.     virtual void        UpdateMenus(void);
  40.     virtual void        Zoom(Boolean aOut);
  41.  
  42.     void                buildCameraMenu(void);
  43.     void                buildShutterMenu(const NeoID aCameraID);
  44.     Boolean                doCutCopy(const Boolean aCut);
  45.     Boolean                doPaste(void);
  46.     void                emptyImageArray(void);
  47.     NeoID                getCameraID(void);
  48.     CNDImage *            getImage(const short aIndex);    /* return image from fImageArray at fIndex */
  49.     short                getImageCount(void);
  50.     short                getImageType(void);
  51.     CNeoKeywordSelect *    getKeywordKey(char *aKey);
  52.     void                 gotoImage(short index, const Boolean aRedraw);
  53.     void                removeImage(const short aIndex);
  54.     void                setCameraID(const NeoID aID);
  55.     void                setImageDirty(CCollaborator *aProvider, void* info, const Boolean aMenu);
  56.     void                setItems(CNDImage *aImage);
  57.     short                setSelectionByID(const NeoID aClassID, const NeoID aID);
  58.     short                setSelectionByKeyword(const NeoID aBaseClassID, char *aKey);
  59.     void                showBorders(const Boolean aShow);
  60.     void                 updateImage(CNDImage *aImage);
  61.  
  62.  
  63.     short                fDivideLine;                /* Y coord for cutting off lower fields */
  64.     short                fBottomLine;                /* original Y coord includes all fields */
  65.     short                fIndex;                        /* index into fImageArray for current image object */
  66.     CArray *            fImageArray;                /* array of image objects to scroll through */
  67.     CNeoKeywordSelect *    fSelectKey;                    /* current keyword select key */
  68.     CNDFilePicture *    fPictObj;                    /* need to set its picture handle on scroll */
  69.     CNeoDemoScrollPane *fScrollObj;                 /* need to reset maximum as items are cut/pasted */
  70.     CNeoDialogText *    fTextName;                    /* name of the picture */
  71.     CEditText *            fTextInfo;                    /* object which displays <pict#>/<max#> */
  72.     CEditText *            fTextType;                    /* displays the current type */
  73.     CNeoDialogText *    fTextBy;                    /* save text to the CNDImage type object */
  74.     CNeoDialogText *    fTextDate;
  75.     CNeoDialogText *    fTextCatalog;
  76.     CNeoDialogText *    fTextKeywords;                /* parse strings into 'fkey' array */
  77.     CNeoPopupPane *        fPopObj;                    /* checked item is the type to find */
  78.     CNeoPopupPane *        fPopFilm;                    /* save selected item number to image type object */
  79.     CNeoPopupPane *        fPopBody;
  80.     CNeoPopupPane *        fPopFocal;
  81.     CNeoPopupPane *        fPopFStop;
  82.     CNeoPopupPane *        fPopExposure;
  83.     CNDPicture *        fSignal;
  84.     CNeoDialogText *    fSearchText;                /* text used in search */
  85. };