summaryrefslogtreecommitdiff
path: root/setedit/easydiag/tsview.h
blob: f356f9c06c84295736fa7e3c53461a13b4b8b223 (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
/* 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