summaryrefslogtreecommitdiff
path: root/tvision/examples/tcombo/tsinputl.h
blob: 0ffdbfa78d8390cd63341309537716f20236349a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*************************************************************************/
/*                                                                       */
/* TSINPUTL.H                                                            */
/*                                                                       */
/* Copyright (c) 1992, Vincent J. Dentice                                */
/* All rights reserved                                                   */
/*                                                                       */
/*                                                                       */
/*   Date    Prg  Ver  Description                                       */
/* --------  ---  ---  ------------------------------------------------- */
/* 09/30/92  VJD  0.1  Initial module definition.                        */
/* 11/16/92  VJD  0.2  Added streamability to the TComboBox classes.     */
/*                     Rewrote header files to behave like original      */
/*                     Turbo Vision header files.                        */
/*                                                                       */
/*************************************************************************/

#define Uses_TCollection
#define Uses_TInputLine
#include <tv.h>


#if defined( Uses_TStaticInputLine ) && !defined( __TStaticInputLine )
#define __TStaticInputLine


class TStaticInputLine : public TInputLine {
   protected:
      TCollection *list;

      void *getNextMatch(char);

   public:
      TStaticInputLine(const TRect&, int, TCollection *aList);

      virtual void handleEvent(TEvent& event);
      virtual void newList(TCollection *aList);

   private:
      virtual const char *streamableName() const
	 { return name; }

   protected:
      TStaticInputLine(StreamableInit);
      virtual void write(opstream&);
      virtual void *read(ipstream&);

   public:
      static const char * const name;
      static TStreamable *build();
};


#endif