FileMenu.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file FileMenu.h
3 /// \brief The file pull down menu
4 ///
5 /// \version $Id: FileMenu.h,v 1.1.1.1 2010-12-22 16:18:52 p-nusoftart Exp $
6 /// \author messier@indiana.edu
7 ////////////////////////////////////////////////////////////////////////
8 #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; ///< Main graphics frame
40  TGPopupMenu* fFileMenu; ///< The file menu
41  TGLayoutHints* fLayout; ///< How to layout the menu
42 
43  };
44 }
45 #endif // EVDB_FILEMENU_H
46 ////////////////////////////////////////////////////////////////////////
static const double m
Definition: Units.h:79
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