diff options
Diffstat (limited to 'dldialog/src/DLD_TV/tsinputl.h')
-rw-r--r-- | dldialog/src/DLD_TV/tsinputl.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dldialog/src/DLD_TV/tsinputl.h b/dldialog/src/DLD_TV/tsinputl.h new file mode 100644 index 0000000..ee64d37 --- /dev/null +++ b/dldialog/src/DLD_TV/tsinputl.h @@ -0,0 +1,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 <tvision/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); + virtual void newData(char *val); + + 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 |