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;
22 class AliMUONMchViewApplication : public TRint
25 AliMUONMchViewApplication(const char* name, int* argc, char** argv,
26 Float_t wfraction, Float_t hfraction);
27 virtual ~AliMUONMchViewApplication();
29 void HandleMenu(Int_t i);
31 /// Return the version number of the mchview application
32 static const char* Version() { return "0.92a"; }
34 /// Return the SVN revision and version number of the mchview application
35 static const char* FullVersion() { return Form("mchview Version %s ($Id$)",Version()); }
37 void Open(const char* filename);
41 AliMUONMchViewApplication(const AliMUONMchViewApplication& rhs);
43 AliMUONMchViewApplication& operator=(const AliMUONMchViewApplication& rhs);
45 void CreateMenuBar(UInt_t w);
47 void Save(const char* filename);
52 TGMainFrame* fMainFrame; ///< pointer to our mainframe
53 AliMUONPainterMasterFrame* fPainterMasterFrame; ///< pointer to our main object
55 static const Int_t fgkFILESAVEAS; ///< File/Save As... menu
56 static const Int_t fgkFILEOPEN; ///< File/Open... menu
57 static const Int_t fgkFILEEXIT; ///< File/Exit menu
58 static const Int_t fgkFILEPRINTAS; ///< File/Print As... menu
60 static const char* fgkFileTypes[]; ///< For the open menu
62 ClassDef(AliMUONMchViewApplication,2) // mchview application