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.93"; }
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);
46 void CreateMenuBar(UInt_t w);
48 void Save(const char* filename);
54 TGMainFrame* fMainFrame; ///< pointer to our mainframe
55 AliMUONPainterMasterFrame* fPainterMasterFrame; ///< pointer to our main object
57 static const Int_t fgkFILESAVEAS; ///< File/Save As... menu
58 static const Int_t fgkFILEOPEN; ///< File/Open... menu
59 static const Int_t fgkFILEEXIT; ///< File/Exit menu
60 static const Int_t fgkFILEPRINTAS; ///< File/Print As... menu
61 static const Int_t fgkABOUT; ///< About menu
62 static const Int_t fgkCOMPAREDATA; ///< Tools/Compare Data menu
64 static const char* fgkFileTypes[]; ///< For the open menu
66 ClassDef(AliMUONMchViewApplication,4) // mchview application