]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONMchViewApplication.h
Version number incremented
[u/mrichter/AliRoot.git] / MUON / AliMUONMchViewApplication.h
1 #ifndef ALIMUONMCHVIEWAPPLICATION_H
2 #define ALIMUONMCHVIEWAPPLICATION_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 /// \ingroup graphics
10 /// \class AliMUONMchViewApplication
11 /// \brief Main class for the mchview program
12 ///
13 // Author Laurent Aphecetche, Subatech
14
15 #ifndef ROOT_TRint
16 #   include <TRint.h>
17 #endif
18
19 class AliMUONPainterMasterFrame;
20 class TGMainFrame;
21
22 class AliMUONMchViewApplication : public TRint
23 {
24 public:
25   AliMUONMchViewApplication(const char* name, int* argc, char** argv, 
26                             Float_t wfraction, Float_t hfraction);
27   virtual ~AliMUONMchViewApplication();
28
29   void HandleMenu(Int_t i);
30
31   /// Return the version number of the mchview application
32   static const char* Version() { return "0.93"; }
33   
34   /// Return the SVN revision  and version number of the mchview application
35   static const char* FullVersion() { return Form("mchview Version %s ($Id$)",Version()); }
36   
37   void Open(const char* filename);
38
39 private:
40   /// Not implemented
41   AliMUONMchViewApplication(const AliMUONMchViewApplication& rhs);
42   /// Not implemented
43   AliMUONMchViewApplication& operator=(const AliMUONMchViewApplication& rhs);
44   
45   void CompareData();  
46   void CreateMenuBar(UInt_t w);
47   void Save();
48   void Save(const char* filename);
49   void Open();
50   void PrintAs();
51   void ReleaseNotes();
52   
53 private:
54   TGMainFrame* fMainFrame; ///< pointer to our mainframe
55   AliMUONPainterMasterFrame* fPainterMasterFrame; ///< pointer to our main object
56   
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
63   
64   static const char* fgkFileTypes[]; ///< For the open menu
65   
66   ClassDef(AliMUONMchViewApplication,4) // mchview application
67 };
68
69 #endif