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
21 //______________________________________________________________________________
24 enum EAliEveFileDialogMode
30 class AliEveFileDialog : public TGTransientFrame
33 AliEveFileDialog(const TGWindow* p = 0, const TGWindow* main = 0, EAliEveFileDialogMode mode= kAliEveFDLocal);
36 //const TString GetDirectory(); // directory where the ESD resides
37 const TString GetPathESD() const;
38 const TString GetPathESDfriend() const;
39 const TString GetPathAOD() const;
40 const TString GetPathAODfriend() const;
41 const TString GetPathRaw() const;
42 const TString GetUrl() const;
43 UInt_t GetMode() const { return fMode; }
45 const TString GetCDBStoragePath() const;
47 void onBrowseESDFile();
48 void onBrowseESDfriendFile();
49 void onBrowseAODFile();
50 void onBrowseAODfriendFile();
51 void onBrowseRawFile();
53 Bool_t accepted() const { return fIsAccepted; } // true if clicked the OK button, false otherwise
55 void onAccept();// ok button was clicked
56 void onReject();// cancel button was clicked
58 void setMode(EAliEveFileDialogMode mode);
59 void showAdvancedOpts(Bool_t shown=kTRUE);
66 AliEveFileDialog(const AliEveFileDialog&); // not implemented
67 AliEveFileDialog& operator=(const AliEveFileDialog&); // not implemented
69 TGHorizontalFrame* fESDFilesFrame;
70 TGCheckButton* fAdvancedOptsButton;
72 TGGroupFrame* fAdvancedOptsFrame;
73 TGHorizontalFrame* fESDfriendFilesFrame;
74 TGHorizontalFrame* fAODFilesFrame;
75 TGHorizontalFrame* fAODfriendFilesFrame;
76 TGHorizontalFrame* fRawFilesFrame;
77 TGHorizontalFrame* fUrlFrame;
78 TGHorizontalFrame* fCDBFrame;
79 TGHorizontalFrame* fDialogButtonsFrame;
80 TGTextEntry* fPathEntryESD;
81 TGTextEntry* fPathEntryESDfriend;
82 TGTextEntry* fPathEntryAOD;
83 TGTextEntry* fPathEntryAODfriend;
84 TGTextEntry* fPathEntryRawFile;
85 TGTextEntry* fPathEntryUrl; // remote file
86 TGComboBox* fCDBPathCB;
88 Bool_t fIsAccepted; // true if clicked OK, false otherwise
89 EAliEveFileDialogMode fMode;
93 ClassDef(AliEveFileDialog, 0)