/* $id:$
 */

#ifndef __MACHDLG_H 

#define __MACHDLG_H


#define Uses_TStreamable

#define Uses_TStreamableClass

#define Uses_TEvent

#define Uses_TRect

#define Uses_TDialog

#define Uses_TButton

#define Uses_TLabel

#define Uses_TListBox

#define Uses_TScrollBar

#include <tvision/tv.h>


//#if !defined(__TListBoxRec)

//#define __TListBoxRec

//struct TListBoxRec

//{

//    TCollection* collection;

//    short focused;

//};

//#endif


struct machiningRec  {
  TListBoxRec Cmd;   //ListBox

  };


class TMachining : public TDialog
{
private:
  TListBox *listBox;

public:

    TMachining( );
    TMachining( StreamableInit ) :
           TDialog (streamableInit),
           TWindowInit(TMachining::initFrame) {};
    virtual void handleEvent( TEvent& );
    virtual Boolean valid( ushort );



private:

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

protected:

    virtual void write( opstream& );
    virtual void *read( ipstream& );

public:

    static const char * const name;
    static TStreamable *build();

};

inline ipstream& operator >> ( ipstream& is, TMachining& cl )
    { return is >> (TStreamable&)cl; }
inline ipstream& operator >> ( ipstream& is, TMachining*& cl )
    { return is >> (void *&)cl; }
inline opstream& operator << ( opstream& os, TMachining& cl )
    { return os << (TStreamable&)cl; }
inline opstream& operator << ( opstream& os, TMachining* cl )
    { return os << (TStreamable *)cl; }


#endif  // __MACHDLG_H





syntax highlighted by Code2HTML, v. 0.9.1