]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/EveBase/AliEveMainWindow.h
Missing #ifdef ZMQ added in AliEveEventManager.cxx
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveMainWindow.h
CommitLineData
2e29a658 1// Author: Mihai Niculescu 2013
2
3/**************************************************************************
4 * Copyright(c) 1998-2009, ALICE Experiment at CERN, all rights reserved. *
5 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
6 * full copyright notice. *
7 **************************************************************************/
8
9#ifndef AliEveMainWindow_H
10#define AliEveMainWindow_H
11
12#include <TGFrame.h>
13
14class TEveManager;
15class TGMenuBar;
16class TGPicturePool;
17class TGPopupMenu;
18class TGToolBar;
19class AliEveMainWindow;
20class AliEveFileDialog;
21
0a52a55f 22// AliEveMainWindow
23//
24
25class AliEveMainWindow : public TGMainFrame
2e29a658 26{
0a52a55f 27public:
28 AliEveMainWindow(const char* title, UInt_t width=800, UInt_t height=600);
29 ~AliEveMainWindow();
30// Items IDs for MenuBar
31enum MENU_ITEM_IDS
32{ // File Menu
33 MENU_FILE_OPEN=0,
2e29a658 34 MENU_FILE_OPEN_URL,
35 MENU_FILE_OPEN_CONNECTION,
36 MENU_FILE_EXPORT_VIEWS,
0a52a55f 37 MENU_FILE_EXIT,
38 // Edit Menu
2e29a658 39 MENU_EDIT_UNDO,
40 MENU_EDIT_REDO,
41 MENU_EDIT_CUT,
42 MENU_EDIT_COPY,
43 MENU_EDIT_PASTE,
44 MENU_EDIT_DELETE,
0a52a55f 45 MENU_EDIT_PROP,
46 // View Menu
2e29a658 47 MENU_VIEW_TOOLBAR_MAIN,
48 MENU_VIEW_TOOLBAR_NAV, // event navigation toolbar
49 MENU_VIEW_TOOLBAR_PROP, // Properties Sidebar - event info, objects list, etc...
50 MENU_VIEW_TOOLBAR_HIST, // History sidebar
51 MENU_VIEW_RELOAD,
52 MENU_VIEW_ZOOM_IN,
53 MENU_VIEW_ZOOM_OUT,
0a52a55f 54 MENU_VIEW_ZOOM_RESET,
55 // Go Menu
2e29a658 56 MENU_GO_NEXT_EVENT,
57 MENU_GO_PREV_EVENT,
58 MENU_GO_FIRST_EVENT,
59 MENU_GO_LAST_EVENT,
0a52a55f 60 MENU_GO_PLAY,
61 // History Menu
2e29a658 62 MENU_HIST_SHOW_ALL,
0a52a55f 63 MENU_HIST_CLEAR_RECENT,
64 // Tools Menu
2e29a658 65 MENU_TOOLS_MACROS,
0a52a55f 66 MENU_TOOLS_QA,
67 // Help Menu
2e29a658 68 MENU_HELP_CONTENTS,
69 MENU_HELP_ABOUT
70};
71
2e29a658 72public: // SLOTS
73 void onMenuFileItem(UInt_t id);
74 void onMenuEditItem(UInt_t id);
75 void onMenuViewItem(UInt_t id);
76 void onMenuGoItem(UInt_t id);
77
78protected:
79 void setupMenus();
80 void setupToolbars();
81
be736e6d 82 void loadFiles();
2e29a658 83
84private:
85 AliEveMainWindow(const AliEveMainWindow& other);// Not implemented
86 AliEveMainWindow& operator=(const AliEveMainWindow& other);
87
88
89 // Menubar
90 TGMenuBar* fMenuBar;
91 TGPopupMenu *fMenuFile;
92 TGPopupMenu *fMenuEdit;
93 TGPopupMenu *fMenuView;
94 TGPopupMenu *fMenuViewToolbars;
95 TGPopupMenu *fMenuViewSidebars;
96 TGPopupMenu *fMenuGo;
97 TGPopupMenu *fMenuTools;
98 TGPopupMenu *fMenuHelp;
99
100 // Toolbar
101 TGToolBar *fToolBar;
102
103 TGPicturePool* fPicturePool;
104
be2cafd0 105// TEveManager* fEve;
2e29a658 106 AliEveFileDialog* fFileDialog;
107
108 ClassDef(AliEveMainWindow, 0); // Short description.
109};
110
111#endif
112