LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
FileMenu.h
Go to the documentation of this file.
1 #ifndef EVDB_FILEMENU_H
9 #define EVDB_FILEMENU_H
10 #include "TQObject.h"
11 #include "RQ_OBJECT.h"
12 
13 class TGMainFrame;
14 class TGMenuBar;
15 class TGPopupMenu;
16 class TGLayoutHints;
17 
18 namespace evdb {
19  class FileMenu {
20  RQ_OBJECT("evdb::FileMenu")
21 
22  public:
23  FileMenu(TGMenuBar* menubar, TGMainFrame* mf);
24  virtual ~FileMenu();
25 
26  // slots
27  void HandleFileMenu(int menu);
28 
29  private:
30  int Open();
31  int Save();
32  int SaveAs();
33  int Close();
34  int Print();
35  int Quit();
36  int NoImpl(const char* m);
37 
38  private:
39  TGMainFrame* fMainFrame;
40  TGPopupMenu* fFileMenu;
41  TGLayoutHints* fLayout;
42 
43  };
44 }
45 #endif // EVDB_FILEMENU_H
46 
TGPopupMenu * fFileMenu
The file menu.
Definition: FileMenu.h:40
Manage all things related to colors for the event display.
virtual ~FileMenu()
Definition: FileMenu.cxx:59
TGLayoutHints * fLayout
How to layout the menu.
Definition: FileMenu.h:41
TGMainFrame * fMainFrame
Main graphics frame.
Definition: FileMenu.h:39
int NoImpl(const char *m)
Definition: FileMenu.cxx:132
void HandleFileMenu(int menu)
Definition: FileMenu.cxx:67
FileMenu(TGMenuBar *menubar, TGMainFrame *mf)
Definition: FileMenu.cxx:35