]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | #ifndef REVE_RGBrowser_H |
2 | #define REVE_RGBrowser_H | |
3 | ||
32e219c2 | 4 | #include "TGNewBrowser.h" |
5a5a1232 | 5 | #include <TGListTree.h> |
5a5a1232 | 6 | |
5a5a1232 | 7 | #include <TContextMenu.h> |
8 | ||
32e219c2 | 9 | class TGFileBrowser; |
10 | class TGSplitter; | |
11 | ||
5a5a1232 | 12 | namespace Reve { |
13 | ||
14 | class RGEditor; | |
15 | ||
32e219c2 | 16 | class RGLTEFrame : public TGMainFrame |
5a5a1232 | 17 | { |
32e219c2 | 18 | RGLTEFrame(const RGLTEFrame&); // Not implemented |
19 | RGLTEFrame& operator=(const RGLTEFrame&); // Not implemented | |
20 | ||
21 | friend class ReveManager; | |
ef6dd14a | 22 | |
5a5a1232 | 23 | protected: |
32e219c2 | 24 | TGCompositeFrame *fFrame; |
25 | TGCompositeFrame *fLTFrame; | |
26 | ||
27 | TGCanvas *fLTCanvas; | |
28 | TGListTree *fListTree; | |
29 | TGSplitter *fSplitter; | |
30 | RGEditor *fEditor; | |
31 | ||
32 | TContextMenu *fCtxMenu; | |
33 | ||
34 | TGListTreeItem *fNewSelected; | |
35 | ||
36 | void ResetSelectedTimer(TGListTreeItem* lti); | |
37 | ||
38 | public: | |
39 | RGLTEFrame(const Text_t* name, Int_t width=250, Int_t height=700); | |
40 | virtual ~RGLTEFrame(); | |
41 | ||
42 | void ReconfToHorizontal(); | |
43 | void ReconfToVertical(); | |
44 | ||
45 | TGListTree* GetListTree() { return fListTree; } | |
46 | ||
47 | void ItemChecked(TObject* obj, Bool_t state); | |
48 | void ItemClicked(TGListTreeItem *entry, Int_t btn, Int_t x, Int_t y); | |
49 | void ItemDblClicked(TGListTreeItem* item, Int_t btn); | |
50 | void ItemKeyPress(TGListTreeItem *entry, UInt_t keysym, UInt_t mask); | |
51 | ||
52 | void ResetSelected(); | |
53 | ||
54 | ClassDef(RGLTEFrame, 0); | |
55 | }; | |
5a5a1232 | 56 | |
32e219c2 | 57 | // ---------------------------------------------------------------- |
5a5a1232 | 58 | |
32e219c2 | 59 | class RGBrowser : public TGNewBrowser |
60 | { | |
61 | RGBrowser(const RGBrowser&); // Not implemented | |
62 | RGBrowser& operator=(const RGBrowser&); // Not implemented | |
5a5a1232 | 63 | |
32e219c2 | 64 | protected: |
5a5a1232 | 65 | void SetupCintExport(TClass* cl); |
d8b49185 | 66 | void CalculateReparentXY(TGObject* parent, Int_t& x, Int_t& y); |
5a5a1232 | 67 | |
32e219c2 | 68 | TGFileBrowser *fFileBrowser; |
69 | TGPopupMenu *fRevePopup; | |
70 | ||
5a5a1232 | 71 | public: |
32e219c2 | 72 | RGBrowser(UInt_t w, UInt_t h); |
5a5a1232 | 73 | virtual ~RGBrowser() {} |
74 | ||
32e219c2 | 75 | void InitPlugins(); |
5a5a1232 | 76 | |
32e219c2 | 77 | TGFileBrowser *GetFileBrowser() const { return fFileBrowser; } |
5a5a1232 | 78 | |
32e219c2 | 79 | void ReveMenu(Int_t id); |
5a5a1232 | 80 | |
32e219c2 | 81 | ClassDef(RGBrowser, 0); |
5a5a1232 | 82 | }; |
83 | ||
84 | } // namespace Reve | |
85 | ||
86 | #endif |