You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*
* Turbo Vision - Version 2.0 * * Copyright (c) 1994 by Borland International * All Rights Reserved. *
Modified by Robert H�hne to be used for RHIDE.
* * */
#if defined( Uses_TSortedListBox ) && !defined( __TSortedListBox )
#define __TSortedListBox
class TRect;class TScrollBar;struct TEvent;class TSortedCollection;
class TSortedListBox: public TListBox{
public:
TSortedListBox( const TRect& bounds, ushort aNumCols, TScrollBar *aScrollBar ); TSortedListBox( const TRect& bounds, ushort aNumCols, TScrollBar *aHScrollBar, TScrollBar *aVScrollBar );
virtual void handleEvent( TEvent& event ); void newList( TSortedCollection *aList );
TSortedCollection *list();
protected:
uchar shiftState; ushort searchPos; // SET: made protected not private
virtual void *getKey( const char *s );
private:
#if !defined( NO_STREAM )
virtual const char *streamableName() const { return name; }
protected:
TSortedListBox( StreamableInit ) : TListBox ( streamableInit ) {} virtual void *read( ipstream & is);
public:
static const char * const name; static TStreamable *build();#endif // NO_STREAM
};
inline ipstream& operator >> ( ipstream& is, TSortedListBox& cl ) { return is >> (TStreamable&)cl; }inline ipstream& operator >> ( ipstream& is, TSortedListBox*& cl ) { return is >> (void *&)cl; }
inline opstream& operator << ( opstream& os, TSortedListBox& cl ) { return os << (TStreamable&)cl; }inline opstream& operator << ( opstream& os, TSortedListBox* cl ) { return os << (TStreamable *)cl; }
inline TSortedCollection *TSortedListBox::list(){ return (TSortedCollection *)TListBox::list();}
#endif // Uses_TSortedListBox
|