home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 2.ddi / TVDEMOS.ZIP / LISTDLG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.7 KB  |  72 lines

  1. /*-------------------------------------------------------*/
  2. /*                                                       */
  3. /*   Turbo Vision 1.0                                    */
  4. /*   Turbo Vision Forms Demo                             */
  5. /*   Copyright (c) 1991 by Borland International         */
  6. /*                                                       */
  7. /*   Listdlg.h: Header file for Listdlg.cpp              */
  8. /*              (Support header file for TVFORMS Demo)   */
  9. /*-------------------------------------------------------*/
  10.  
  11. #if !defined( __LISTDLG_H )
  12. #define __LISTDLG_H
  13.  
  14. #define Uses_TSortedListBox
  15. #define Uses_TRect
  16. #define Uses_TScrollBar
  17. #define Uses_TDialog
  18. #define Uses_TResourceFile
  19. #include <tv.h>
  20.  
  21. #if !defined( __DATACOLL_H )
  22. #include "datacoll.h"
  23. #endif  __DATACOLL_H
  24.  
  25. #if !defined( __FORMS_H )
  26. #include "forms.h"
  27. #endif  __FORMS_H
  28.  
  29.  
  30. typedef char * (*ExpandFunc)(char *);
  31.  
  32. class TListKeyBox :  public TSortedListBox
  33. {
  34.  
  35. public:
  36.     
  37.     TListKeyBox( const TRect&, ushort, TScrollBar *);
  38.  
  39.     virtual void getText( char *, short, short );
  40. };
  41.  
  42.  
  43. class TListDialog :  public TDialog
  44. {
  45.  
  46. public:
  47.  
  48.     TListDialog( char *, char * );
  49.     ~TListDialog(void);
  50.  
  51.     virtual void close();
  52.     void deleteSelection();
  53.     TForm *editingForm();
  54.     void formOpen( Boolean );
  55.     virtual void handleEvent( TEvent& );
  56.     Boolean openDataFile( char *, TResourceFile *&, int );
  57.     Boolean saveList();
  58.     Boolean saveForm(TDialog *);
  59.     void stackOnPrev(TDialog *);
  60.     virtual Boolean valid( ushort );
  61.  
  62.  
  63.     TDataCollection *dataCollection;
  64.     char *fileName;
  65.     TResourceFile *formDataFile;
  66.     Boolean isValid;
  67.     TListKeyBox *list;
  68.     Boolean modified;
  69. };
  70.  
  71. #endif  // __LISTDLG_H
  72.