1 #ifndef ALIMUONMCHVIEWAPPLICATION_H
2 #define ALIMUONMCHVIEWAPPLICATION_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONMchViewApplication
11 /// \brief Main class for the mchview program
13 // Author Laurent Aphecetche, Subatech
19 class AliMUONPainterMasterFrame;
23 class AliMUONMchViewApplication : public TRint
26 AliMUONMchViewApplication(const char* name, int* argc, char** argv,
27 UInt_t w=0, UInt_t h=0, UInt_t ox=0, UInt_t oy=0);
28 virtual ~AliMUONMchViewApplication();
30 void HandleMenu(Int_t i);
32 /// Return the version number of the mchview application
33 static const char* Version() { return "0.95"; }
35 /// Return the SVN revision and version number of the mchview application
36 static const char* FullVersion() { return Form("mchview Version %s ($Id$)",Version()); }
38 void Open(const char* filename);
42 AliMUONMchViewApplication(const AliMUONMchViewApplication& rhs);
44 AliMUONMchViewApplication& operator=(const AliMUONMchViewApplication& rhs);
47 void CreateMenuBar(UInt_t w);
49 void Save(const char* filename);
53 void ReadDir(TDirectory& dir);
56 TGMainFrame* fMainFrame; ///< pointer to our mainframe
57 AliMUONPainterMasterFrame* fPainterMasterFrame; ///< pointer to our main object
59 static const Int_t fgkFILESAVEAS; ///< File/Save As... menu
60 static const Int_t fgkFILEOPEN; ///< File/Open... menu
61 static const Int_t fgkFILEEXIT; ///< File/Exit menu
62 static const Int_t fgkFILEPRINTAS; ///< File/Print As... menu
63 static const Int_t fgkABOUT; ///< About menu
64 static const Int_t fgkCOMPAREDATA; ///< Tools/Compare Data menu
66 static const char* fgkFileTypes[]; ///< For the open menu
68 ClassDef(AliMUONMchViewApplication,4) // mchview application