source: trunk/Cosy/gui/MGEmbeddedCanvas.h@ 12582

Last change on this file since 12582 was 8820, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 947 bytes
Line 
1#ifndef COSY_MGEmbeddedCanvas
2#define COSY_MGEmbeddedCanvas
3
4#ifndef ROOT_TRootEmbeddedCanvas
5#include <TRootEmbeddedCanvas.h>
6#endif
7
8class TList;
9class TCanvas;
10
11class MGEmbeddedCanvas : public TRootEmbeddedCanvas
12{
13private:
14 Bool_t fModified;
15
16protected:
17
18 TCanvas *fCanvas;
19 TList *fList;
20
21 UInt_t fWidth; // const: rootcint/TMemberInspector
22 Float_t fRange; // const: rootcint/TMemberInspector
23 Float_t fPix; // const: rootcint/TMemberInspector
24
25 void InitCanvas();
26
27public:
28 MGEmbeddedCanvas(const char *name, const TGWindow* p,
29 UInt_t width, Double_t range);
30 ~MGEmbeddedCanvas();
31
32 void Resize(TGDimension size);
33 void Resize(UInt_t w, UInt_t h);
34 void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h);
35
36 void UpdateCanvas();
37
38 void SetModified() { fModified = kTRUE; }
39
40 void SetNoContextMenu();
41
42 ClassDef(MGEmbeddedCanvas, 0)
43};
44
45#endif // MGSKYPOSITION_H
Note: See TracBrowser for help on using the repository browser.