]> git.uio.no Git - u/mrichter/AliRoot.git/blame - DISPLAY/AliMenu.h
(martin) pt vs eta correction matrix calculation macro using CorrectionMatrix2D class.
[u/mrichter/AliRoot.git] / DISPLAY / AliMenu.h
CommitLineData
7bb7ac14 1#ifndef ALIMENU_H
2#define ALIMENU_H
3/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/////////////////////////////////////////////////////////////////////////
7// ALICE MENU CLASS //
8// Author: Mayeul ROUSSELET //
9// e-mail: Mayeul.Rousselet@cern.ch //
10// Last update:26/08/2003 //
11/////////////////////////////////////////////////////////////////////////
12
13#include <Rtypes.h>
14#include <RQ_OBJECT.h>
15#include <TGToolBar.h>
16
17class TGMenuBar;
18class TGLayoutHints;
19class TGPopupMenu;
20class TGButton;
21
22class AliMenu {
23 //This class implement both the menu and the toolbar
24
25public:
26
27 AliMenu(TGCompositeFrame *p, UInt_t w, UInt_t h, UInt_t options);
28 virtual ~AliMenu();
29
30 void AddPictureButton( const char *fname, const char *tiptext,UInt_t id, UInt_t spacing);//add a picture button to the toolbar
31 //slots
32 void DoMenu(Int_t id=0);
33 void DoToolBar(Int_t id=0);
34
35private:
36
37 TGMenuBar *fMenuBar; // Menu bar
38 TGToolBar *fToolBar; // Tool bar
39 TGLayoutHints *fMenuBarLayout; // Menu bar layout
40 TGLayoutHints *fMenuBarItemLayout; // Menu bar item layout
41 TGPopupMenu *fMenuFile; // Menu file
42 TGPopupMenu *fMenuOptions; // Menu options
43 TGPopupMenu *fMenuHelp; // Menu help
44 TGPopupMenu *fMenuView; // Menu view
45 TGLayoutHints *fToolBarLayout; // Tool bar layout
46 ToolBarData_t *fTBD; // Tool bar data
47 TGButton *fButton; // Button
48
49 RQ_OBJECT("AliMenu")
50
51 ClassDef(AliMenu,0);
52};
53
54#endif