diff options
Diffstat (limited to 'setedit/easydiag/tsview.h')
-rw-r--r-- | setedit/easydiag/tsview.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/setedit/easydiag/tsview.h b/setedit/easydiag/tsview.h new file mode 100644 index 0000000..f356f9c --- /dev/null +++ b/setedit/easydiag/tsview.h @@ -0,0 +1,33 @@ +/* Copyright (C) 1996-2004 by Salvador E. Tropea (SET), + see copyrigh file for details */ +#if defined(Uses_TSView) && !defined(__TSView_Defined__) +#define __TSView_Defined__ + +const int xTSCenter=-1,xTSLeft=-2,xTSRight=-3,xTSLeftOf=-4,xTSRightOf=-5; +const int yTSCenter=-1,yTSUp=-2,yTSDown=-3,yTSOver=-4,yTSUnder=-5,yTSUpSep=-6; +const int wSpan=1; + + +class TSView +{ +public: + TSView() { xSep=xDefSep; ySep=yDefSep; Flags=0; }; + virtual ~TSView() {}; + int w,h,x,y; + int xSep,ySep; + unsigned Flags; + TView *view; + virtual void insert(TDialog *); + virtual void setWidth(int aW) { w=aW; }; + virtual int howManyHz() { return 1; }; + virtual void setGrowMode(unsigned val) { view->growMode=val; }; + // Used to make two objects of the same width when they aren't part of a + // vertical group. + static void makeSameW(TSView *o1, TSView *o2); + static int xDefSep,yDefSep; +}; + + +int EDMaxWidth(TSView *first, ...); +void EDForceSameWidth(TSView *first, ...); +#endif |