]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONMchViewApplication.h
6f3e5308fbdd30066acf9dc596e8013be05e348b
[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.92a"; }
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 CreateMenuBar(UInt_t w);
46   void Save();
47   void Save(const char* filename);
48   void Open();
49   void PrintAs();
50     
51 private:
52   TGMainFrame* fMainFrame; ///< pointer to our mainframe
53   AliMUONPainterMasterFrame* fPainterMasterFrame; ///< pointer to our main object
54   
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
59
60   static const char* fgkFileTypes[]; ///< For the open menu
61   
62   ClassDef(AliMUONMchViewApplication,2) // mchview application
63 };
64
65 #endif