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
22 class AliMUONPainterMatrix;
25 class AliMUONMchViewApplication : public TRint
28 AliMUONMchViewApplication(const char* name, int* argc, char** argv,
29 UInt_t w=0, UInt_t h=0, UInt_t ox=0, UInt_t oy=0);
30 virtual ~AliMUONMchViewApplication();
32 void HandleMenu(Int_t i);
34 /// Return the version number of the mchview application
35 static const char* Version() { return "1.08"; }
37 /// Return the SVN revision and version number of the mchview application
38 static const char* FullVersion() { return Form("mchview Version %s ($Id$)",Version()); }
40 void Open(const char* filename);
44 AliMUONMchViewApplication(const AliMUONMchViewApplication& rhs);
46 AliMUONMchViewApplication& operator=(const AliMUONMchViewApplication& rhs);
49 void CreateMenuBar(UInt_t w);
51 void Save(const char* filename);
55 void ReadDir(TDirectory& dir);
56 AliMUONPainterMatrix* GenerateStartupMatrix();
59 TGMainFrame* fMainFrame; ///< pointer to our mainframe
60 TList* fPainterMasterFrameList; ///< list of painterMasterFrame objects
61 TGTab* fTabs; ///< our tabs
63 static const Int_t fgkFILESAVEAS; ///< File/Save As... menu
64 static const Int_t fgkFILEOPEN; ///< File/Open... menu
65 static const Int_t fgkFILEEXIT; ///< File/Exit menu
66 static const Int_t fgkFILEPRINTAS; ///< File/Print As... menu
67 static const Int_t fgkABOUT; ///< About menu
68 static const Int_t fgkCOMPAREDATA; ///< Tools/Compare Data menu
70 static const char* fgkFileTypes[]; ///< For the open menu
72 ClassDef(AliMUONMchViewApplication,5) // mchview application