]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONMchViewApplication.h
Compilation on Windows/Cygwin. Corrected dependences
[u/mrichter/AliRoot.git] / MUON / AliMUONMchViewApplication.h
CommitLineData
90037e4e 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#ifndef ROOT_RQ_OBJECT
19# include <RQ_OBJECT.h>
20#endif
21
10eb3d17 22class AliMUONPainterMasterFrame;
90037e4e 23class TGMainFrame;
24
25class AliMUONMchViewApplication : public TRint
26{
27 RQ_OBJECT("AliMUONMchViewApplication")
28
29public:
30 AliMUONMchViewApplication(const char* name, int* argc, char** argv,
31 Float_t wfraction, Float_t hfraction);
32 virtual ~AliMUONMchViewApplication();
33
34 void HandleMenu(Int_t i);
35
36 /// Return the version number of the mchview application
10eb3d17 37 static const char* Version() { return "0.91"; }
90037e4e 38
10eb3d17 39 /// Return the SVN revision and version number of the mchview application
40 static const char* FullVersion() { return Form("mchview Version %s ($Revision$)",Version()); }
41
42 void Open(const char* filename);
43
90037e4e 44private:
45 /// Not implemented
46 AliMUONMchViewApplication(const AliMUONMchViewApplication& rhs);
47 /// Not implemented
48 AliMUONMchViewApplication& operator=(const AliMUONMchViewApplication& rhs);
49
50 void CreateMenuBar(UInt_t w);
51 void Save();
52 void Save(const char* filename);
53 void Open();
10eb3d17 54 void PrintAs();
55
90037e4e 56private:
57 TGMainFrame* fMainFrame; ///< pointer to our mainframe
10eb3d17 58 AliMUONPainterMasterFrame* fPainterMasterFrame; ///< pointer to our main object
59
90037e4e 60 static const Int_t fgkFILESAVEAS; ///< File/Save As... menu
61 static const Int_t fgkFILEOPEN; ///< File/Open... menu
62 static const Int_t fgkFILEEXIT; ///< File/Exit menu
10eb3d17 63 static const Int_t fgkFILEPRINTAS; ///< File/Print As... menu
90037e4e 64
10eb3d17 65 static const char* fgkFileTypes[]; ///< For the open menu
66
67 ClassDef(AliMUONMchViewApplication,2) // mchview application
90037e4e 68};
69
70#endif