1 #ifndef REVE_RGBrowser_H
2 #define REVE_RGBrowser_H
6 #include <TGListTree.h>
7 #include <TGNumberEntry.h>
8 #include <TGColorSelect.h>
10 #include <TParticle.h>
13 #include <TGeoVolume.h>
14 #include <TContextMenu.h>
20 class RGBrowser : public TGCompositeFrame
22 RGBrowser(const RGBrowser&); // Not implemented
23 RGBrowser& operator=(const RGBrowser&); // Not implemented
26 TGCompositeFrame* fMainFrame;
30 TGCompositeFrame* fSelectionFrame; // in fact list-tree frame
33 TGCanvas* fCanvasWindow;
34 TGCompositeFrame* fDisplayFrame; // detailed-vire frame, used in Classic look
36 TGListTree* fListTree;
37 TContextMenu* fCtxMenu;
40 void SetupCintExport(TClass* cl);
41 void CalculateReparentXY(TGObject* parent, Int_t& x, Int_t& y);
44 RGBrowser(const TGWindow *p, UInt_t w, UInt_t h);
45 virtual ~RGBrowser() {}
47 void SetupClassicLook(RGEditor*& editor, TCanvas* glpad);
48 void SetupEditorLook(RGEditor*& editor, TCanvas* glpad);
49 void SetupGLViewerLook(RGEditor*& editor, TCanvas* glpad);
51 void RedrawListTree();
53 void ItemClicked(TGListTreeItem *entry, Int_t btn, Int_t x, Int_t y);
54 void ExportToCINT(Text_t* var_name, TObject* obj);
56 void DbClickListItem(TGListTreeItem* item, Int_t btn);
57 void UpdateListItems(TGListTreeItem* item, Int_t btn);
59 TGListTree* GetListTree() { return fListTree; }
61 ClassDef(RGBrowser, 1);