Fix enums as reported by coverity
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveFileDialog.h
CommitLineData
2e29a658 1// Author: Mihai Niculescu 2013
2
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 **************************************************************************/
8
9#ifndef AliEveFileDialog_H
10#define AliEveFileDialog_H
11
12#include <TString.h>
13#include <TGFrame.h>
14
15class TGLabel;
16class TGFileInfo;
17class TGTextButton;
18class TGTextEntry;
19class TGComboBox;
20
21//______________________________________________________________________________
22// AliEveMainWindow
23//
24enum EAliEveFileDialogMode
25{
26 kAliEveFDLocal,
27 kAliEveFDRemote
28};
29
30class AliEveFileDialog : public TGTransientFrame
31{
32public:
33 AliEveFileDialog(const TGWindow* p = 0, const TGWindow* main = 0, EAliEveFileDialogMode mode= kAliEveFDLocal);
34 ~AliEveFileDialog();
35
36 //const TString GetDirectory(); // directory where the ESD resides
37 const TString GetPathESD() const;
be736e6d 38 const TString GetPathESDfriend() const;
2e29a658 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; }
44
45 const TString GetCDBStoragePath() const;
46
47 void onBrowseESDFile();
be736e6d 48 void onBrowseESDfriendFile();
2e29a658 49 void onBrowseAODFile();
50 void onBrowseAODfriendFile();
51 void onBrowseRawFile();
52
53 Bool_t accepted() const { return fIsAccepted; } // true if clicked the OK button, false otherwise
54
55 void onAccept();// ok button was clicked
56 void onReject();// cancel button was clicked
57
58 void setMode(EAliEveFileDialogMode mode);
59 void showAdvancedOpts(Bool_t shown=kTRUE);
60
61 void CloseWindow();
62 void MapWindow();
63 void UnmapWindow();
64 void MapSubwindows();
65private:
66 AliEveFileDialog(const AliEveFileDialog&); // not implemented
67 AliEveFileDialog& operator=(const AliEveFileDialog&); // not implemented
68
69 TGHorizontalFrame* fESDFilesFrame;
2e29a658 70 TGCheckButton* fAdvancedOptsButton;
be736e6d 71
72 TGGroupFrame* fAdvancedOptsFrame;
73 TGHorizontalFrame* fESDfriendFilesFrame;
2e29a658 74 TGHorizontalFrame* fAODFilesFrame;
75 TGHorizontalFrame* fAODfriendFilesFrame;
76 TGHorizontalFrame* fRawFilesFrame;
77 TGHorizontalFrame* fUrlFrame;
78 TGHorizontalFrame* fCDBFrame;
79 TGHorizontalFrame* fDialogButtonsFrame;
80 TGTextEntry* fPathEntryESD;
be736e6d 81 TGTextEntry* fPathEntryESDfriend;
2e29a658 82 TGTextEntry* fPathEntryAOD;
83 TGTextEntry* fPathEntryAODfriend;
84 TGTextEntry* fPathEntryRawFile;
85 TGTextEntry* fPathEntryUrl; // remote file
86 TGComboBox* fCDBPathCB;
87
88 Bool_t fIsAccepted; // true if clicked OK, false otherwise
89 EAliEveFileDialogMode fMode;
90
91public:
92
93 ClassDef(AliEveFileDialog, 0)
94};
95
96#endif
97