]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONMchViewApplication.h
Coverity fix (BAD_OVERRIDE)
[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
90037e4e 18
fcabdc0c 19class TList;
632a2059 20class TDirectory;
90037e4e 21class TGMainFrame;
fcabdc0c 22class AliMUONPainterMatrix;
23class TGTab;
90037e4e 24
25class AliMUONMchViewApplication : public TRint
26{
90037e4e 27public:
28 AliMUONMchViewApplication(const char* name, int* argc, char** argv,
1ffbeb9d 29 UInt_t w=0, UInt_t h=0, UInt_t ox=0, UInt_t oy=0);
90037e4e 30 virtual ~AliMUONMchViewApplication();
31
32 void HandleMenu(Int_t i);
33
34 /// Return the version number of the mchview application
301ca128 35 static const char* Version() { return "1.11"; }
90037e4e 36
10eb3d17 37 /// Return the SVN revision and version number of the mchview application
4a3224ff 38 static const char* FullVersion() { return Form("mchview Version %s ($Id$)",Version()); }
10eb3d17 39
40 void Open(const char* filename);
41
90037e4e 42private:
43 /// Not implemented
44 AliMUONMchViewApplication(const AliMUONMchViewApplication& rhs);
45 /// Not implemented
46 AliMUONMchViewApplication& operator=(const AliMUONMchViewApplication& rhs);
47
49419555 48 void CompareData();
301ca128 49 void CompareAlignments();
90037e4e 50 void CreateMenuBar(UInt_t w);
51 void Save();
52 void Save(const char* filename);
53 void Open();
10eb3d17 54 void PrintAs();
49419555 55 void ReleaseNotes();
632a2059 56 void ReadDir(TDirectory& dir);
fcabdc0c 57 AliMUONPainterMatrix* GenerateStartupMatrix();
58
90037e4e 59private:
60 TGMainFrame* fMainFrame; ///< pointer to our mainframe
fcabdc0c 61 TList* fPainterMasterFrameList; ///< list of painterMasterFrame objects
62 TGTab* fTabs; ///< our tabs
10eb3d17 63
90037e4e 64 static const Int_t fgkFILESAVEAS; ///< File/Save As... menu
65 static const Int_t fgkFILEOPEN; ///< File/Open... menu
66 static const Int_t fgkFILEEXIT; ///< File/Exit menu
10eb3d17 67 static const Int_t fgkFILEPRINTAS; ///< File/Print As... menu
49419555 68 static const Int_t fgkABOUT; ///< About menu
69 static const Int_t fgkCOMPAREDATA; ///< Tools/Compare Data menu
301ca128 70 static const Int_t fgkCOMPAREALIGNMENTS; ///< Tools/Compare Alignments menu
49419555 71
10eb3d17 72 static const char* fgkFileTypes[]; ///< For the open menu
73
fcabdc0c 74 ClassDef(AliMUONMchViewApplication,5) // mchview application
90037e4e 75};
76
77#endif