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

  1. /******************************************************************************
  2.  CDLOGDialog.h
  3.  
  4.         Interface for DLOGDialog class.
  5.  
  6.     SUPERCLASS = CDialog
  7.  
  8.     Copyright © 1991 Symantec Corporation. All rights reserved.
  9.     Copyright © 1992 NeoLogic Systems.  All rights reserved.
  10.  
  11.  
  12.  ******************************************************************************/
  13.  
  14. #ifndef __CNEODLOGDIALOG__
  15. #define __CNEODLOGDIALOG__
  16.  
  17. #include <CDialog.h>
  18.  
  19. class CNeoPopupPane;
  20. class CDirector;
  21.  
  22. class CNeoDLOGDialog : public CDialog
  23. {
  24. public:
  25.                         CNeoDLOGDialog(short DLOGid, CDesktop *anEnclosure, CDirector *aSupervisor);
  26.     virtual                ~CNeoDLOGDialog(void);
  27.     void                DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
  28.     Boolean                isZoomed(void);
  29.     short                NeoDLOGGetType(void);        /* return popup selection index */
  30.     virtual void        Update(void);
  31.  
  32. protected:
  33.     short                fStaticTextFont;            /* default font to use for static text items    */
  34.     short                fStaticTextSize;            /* default size to use for static text items    */
  35.     short                fEditTextFont;                /* default font for edit text items                */
  36.     short                fEditTextSize;                /* default size for edit text items                */
  37.     short                fDefaultBorderPen;            /* default border thickness for user items        */
  38.                                                     /* and RadioGroupPanes                            */
  39.  
  40.     virtual void        AddDITLItems(short DITLid, long baseID);
  41.     virtual CPane *        AddDITLPushBtn(short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem);
  42.     virtual CPane *        AddDITLRadioBtn(short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem, long anID);
  43.     virtual CPane *        AddDITLCheckBox(short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem);
  44.     virtual CPane *        AddDITLResControl(short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem);
  45.     virtual CPane *        AddDITLStatText(short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem);
  46.     virtual CPane *        AddDITLEditText(short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem);
  47.     virtual CPane *        AddDITLIcon(short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem);
  48.     virtual CPane *        AddDITLPicture(short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem);
  49.     virtual CPane *        AddDITLUserItem(short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem);
  50.     virtual CPane *        AddOverloadedItem(StringPtr itemText, short aWidth, short aHeight, short hEncl, short vEncl, CView *enclosure, tDITLItem *ditlItem);
  51.     virtual CView *        FindEnclosingView(Rect *boundsRect);
  52.     CNeoPopupPane *        makePopup(short aID, CView *aEnclosure, short aWidth, short aHeight, short aHEncl, short aVEncl, short aSpace);
  53.     virtual void         ProviderChanged(CCollaborator *aProvider, long reason, void* info);
  54.             void        DoCommand(long    theCommand);
  55. };
  56. #endif