1 // Author: Mihai Niculescu 2013
3 /**************************************************************************
4 * Copyright(c) 1998-2009, ALICE Experiment at CERN, all rights reserved. *
5 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
6 * full copyright notice. *
7 **************************************************************************/
9 #ifndef AliEveFileDialog_H
10 #define AliEveFileDialog_H
22 //______________________________________________________________________________
25 enum EAliEveFileDialogMode
31 class AliEveFileDialog : public TGTransientFrame
34 AliEveFileDialog(const TGWindow* p = 0, const TGWindow* main = 0, EAliEveFileDialogMode mode= kAliEveFDLocal);
37 //const TString GetDirectory(); // directory where the ESD resides
38 const TString GetPathESD() const;
39 const TString GetPathESDfriend() const;
40 const TString GetPathAOD() const;
41 const TString GetPathAODfriend() const;
42 const TString GetPathRaw() const;
43 const TString GetUrl() const;
44 UInt_t GetMode() const { return fMode; }
46 const TString GetCDBStoragePath() const;
48 void onBrowseESDFile();
49 void onBrowseESDfriendFile();
50 void onBrowseAODFile();
51 void onBrowseAODfriendFile();
52 void onBrowseRawFile();
54 Bool_t accepted() const { return fIsAccepted; } // true if clicked the OK button, false otherwise
56 void onAccept();// ok button was clicked
57 void onReject();// cancel button was clicked
59 void setMode(EAliEveFileDialogMode mode);
60 void showAdvancedOpts(Bool_t shown=kTRUE);
67 AliEveFileDialog(const AliEveFileDialog&); // not implemented
68 AliEveFileDialog& operator=(const AliEveFileDialog&); // not implemented
70 TGHorizontalFrame* fESDFilesFrame;
71 TGCheckButton* fAdvancedOptsButton;
73 TGGroupFrame* fAdvancedOptsFrame;
74 TGHorizontalFrame* fESDfriendFilesFrame;
75 TGHorizontalFrame* fAODFilesFrame;
76 TGHorizontalFrame* fAODfriendFilesFrame;
77 TGHorizontalFrame* fRawFilesFrame;
78 TGHorizontalFrame* fUrlFrame;
79 TGHorizontalFrame* fCDBFrame;
80 TGHorizontalFrame* fDialogButtonsFrame;
81 TGTextEntry* fPathEntryESD;
82 TGTextEntry* fPathEntryESDfriend;
83 TGTextEntry* fPathEntryAOD;
84 TGTextEntry* fPathEntryAODfriend;
85 TGTextEntry* fPathEntryRawFile;
86 TGTextEntry* fPathEntryUrl; // remote file
87 TGComboBox* fCDBPathCB;
89 Bool_t fIsAccepted; // true if clicked OK, false otherwise
90 EAliEveFileDialogMode fMode;
94 ClassDef(AliEveFileDialog, 0)