ROOT logo
#include "Rtypes.h"
#include "TASImage.h"
#include "TEnv.h"
#include "GrCanvas.h"
#include "THprArc.h"
#include "TGMrbValuesAndText.h"

using std::cout;
using std::endl;

static const Int_t MAXL = 10;
class CDisc : public THprArc
{
private:
	Double_t fInnerRadiusRatio;
	TArc  *fInnerArc;
public:
	CDisc(Double_t x, Double_t y, Double_t r, Double_t ratio);
	virtual ~CDisc(){};
	void   ExecuteEvent(Int_t event, Int_t px, Int_t py);
	void Paint(const Option_t *opt);
	ClassDef(CDisc, 0)
};

class CreateCDlabel : public TObject
{
private:
	GrCanvas * fCanvas;
	GrCanvas * fImgCanvas;
	GEdit    * fEditor;
	CDisc    * fCDP;
   TImage   *fImage;
   Double_t fImageWidth;
   Double_t fImageHeight;
	Int_t    fRedFac;
	
	Double_t fXRange;
	Double_t fYRange;
	Double_t fInnerRadius;
	Double_t fOuterRadius;
	Int_t    fSmallInnerHole;
	Int_t    fBigInnerHole;
	Int_t    fUserWindowX;
	Int_t    fUserWindowY;
	Double_t fUserRX;
	TString  fProjectName;   // 
	TString	fPsSuffix;
	TString  fBGImage;       // name of background iomage file (gif, jpg..
	TString  fRootFileName;
	TString  fCanvasFromFile;
	Int_t    fLoadFileBid;
	Int_t    fSelectBgIBid;
	Double_t fPaperSizeX;
	Double_t fPaperSizeY;
	Int_t    fDrawCircles;
public:
	CreateCDlabel();
	~CreateCDlabel(){};
	void RecursiveRemove(TObject * obj);
	void Leave();
	void MakePS();
	void SetName();
	void NewProject(Int_t ww, Int_t wh, Double_t xr, Double_t yr);
	void NewCDlabel();
	void NewPortrait();
	void NewLandscape();
	void NewUserDef();
	void SelectBackgroundPicture();
	void CreateBackgroundPicture();
	void InsertBackgroundPicture();
	void CloseProject();
	void ExecuteGetProject();
	void ExecuteStoreProject();
	void CoverDeadArea();
	void SetPaperSizeX(Double_t ps) { fPaperSizeX = ps; };
	Double_t GetPaperSizeX() { return fPaperSizeX; };
	void SetPaperSizeY(Double_t ps) { fPaperSizeY = ps; };
	Double_t GetPaperSizeY() { return fPaperSizeY; };
	void SaveDefaults();
	void RestoreDefaults();
	void CloseDown(Int_t i) {if ((i)){};};
	void CRButtonPressed(Int_t wid, Int_t bid,TObject* obj);
	ClassDef(CreateCDlabel,0)
};
 CreateCDlabel.h:1
 CreateCDlabel.h:2
 CreateCDlabel.h:3
 CreateCDlabel.h:4
 CreateCDlabel.h:5
 CreateCDlabel.h:6
 CreateCDlabel.h:7
 CreateCDlabel.h:8
 CreateCDlabel.h:9
 CreateCDlabel.h:10
 CreateCDlabel.h:11
 CreateCDlabel.h:12
 CreateCDlabel.h:13
 CreateCDlabel.h:14
 CreateCDlabel.h:15
 CreateCDlabel.h:16
 CreateCDlabel.h:17
 CreateCDlabel.h:18
 CreateCDlabel.h:19
 CreateCDlabel.h:20
 CreateCDlabel.h:21
 CreateCDlabel.h:22
 CreateCDlabel.h:23
 CreateCDlabel.h:24
 CreateCDlabel.h:25
 CreateCDlabel.h:26
 CreateCDlabel.h:27
 CreateCDlabel.h:28
 CreateCDlabel.h:29
 CreateCDlabel.h:30
 CreateCDlabel.h:31
 CreateCDlabel.h:32
 CreateCDlabel.h:33
 CreateCDlabel.h:34
 CreateCDlabel.h:35
 CreateCDlabel.h:36
 CreateCDlabel.h:37
 CreateCDlabel.h:38
 CreateCDlabel.h:39
 CreateCDlabel.h:40
 CreateCDlabel.h:41
 CreateCDlabel.h:42
 CreateCDlabel.h:43
 CreateCDlabel.h:44
 CreateCDlabel.h:45
 CreateCDlabel.h:46
 CreateCDlabel.h:47
 CreateCDlabel.h:48
 CreateCDlabel.h:49
 CreateCDlabel.h:50
 CreateCDlabel.h:51
 CreateCDlabel.h:52
 CreateCDlabel.h:53
 CreateCDlabel.h:54
 CreateCDlabel.h:55
 CreateCDlabel.h:56
 CreateCDlabel.h:57
 CreateCDlabel.h:58
 CreateCDlabel.h:59
 CreateCDlabel.h:60
 CreateCDlabel.h:61
 CreateCDlabel.h:62
 CreateCDlabel.h:63
 CreateCDlabel.h:64
 CreateCDlabel.h:65
 CreateCDlabel.h:66
 CreateCDlabel.h:67
 CreateCDlabel.h:68
 CreateCDlabel.h:69
 CreateCDlabel.h:70
 CreateCDlabel.h:71
 CreateCDlabel.h:72
 CreateCDlabel.h:73
 CreateCDlabel.h:74
 CreateCDlabel.h:75
 CreateCDlabel.h:76
 CreateCDlabel.h:77
 CreateCDlabel.h:78
 CreateCDlabel.h:79
 CreateCDlabel.h:80
 CreateCDlabel.h:81
 CreateCDlabel.h:82
 CreateCDlabel.h:83
 CreateCDlabel.h:84