]>
Commit | Line | Data |
---|---|---|
e9a38ea3 | 1 | // $Header$ |
2 | ||
3 | #ifndef ALIEVE_TPCLoaderEditor_H | |
4 | #define ALIEVE_TPCLoaderEditor_H | |
5 | ||
6 | #include <TGedFrame.h> | |
7 | ||
8 | class TGTextButton; | |
9 | class TGCheckButton; | |
10 | class TGNumberEntry; | |
11 | class TGColorSelect; | |
12 | class TGTextEntry; | |
13 | ||
14 | namespace Reve { | |
15 | class RGValuator; | |
16 | } | |
17 | ||
18 | namespace Alieve { | |
19 | ||
20 | class TPCLoader; | |
21 | ||
22 | class TPCLoaderEditor : public TGedFrame | |
23 | { | |
265ecb21 | 24 | TPCLoaderEditor(const TPCLoaderEditor&); // Not implemented |
25 | TPCLoaderEditor& operator=(const TPCLoaderEditor&); // Not implemented | |
26 | ||
e9a38ea3 | 27 | protected: |
28 | TPCLoader* fM; // fModel dynamic-casted to TPCLoaderEditor | |
29 | ||
30 | TGTextEntry* fFile; | |
31 | TGTextButton* fOpenFile; | |
32 | ||
33 | Reve::RGValuator* fEvent; | |
6e91772d | 34 | TGCheckButton* fDoubleSR; |
e9a38ea3 | 35 | |
36 | TGTextButton* fUpdateSectors; | |
37 | TGTextButton* fCreateSectors3D; | |
38 | TGTextButton* fDeleteSectors3D; | |
39 | ||
40 | public: | |
6e91772d | 41 | TPCLoaderEditor(const TGWindow* p=0, Int_t id=-1, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground()); |
e9a38ea3 | 42 | ~TPCLoaderEditor(); |
43 | ||
44 | virtual void SetModel(TVirtualPad* pad, TObject* obj, Int_t event); | |
45 | ||
46 | void FileSelect(); | |
47 | void FileChanged(); | |
48 | void DoOpen(); | |
49 | ||
50 | void DoEvent(); | |
6e91772d | 51 | void DoDoubleSR(); |
e9a38ea3 | 52 | |
53 | void DoUpdateSectors(); | |
54 | void DoCreateSectors3D(); | |
55 | void DoDeleteSectors3D(); | |
56 | ||
57 | ClassDef(TPCLoaderEditor, 0); // Editor for TPCLoader | |
58 | }; // endclass TPCLoaderEditor | |
59 | ||
60 | } | |
61 | ||
62 | #endif |