JobMenu.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file JobMenu.h
3 /// \brief The job pull down menu
4 ///
5 /// \version $Id: JobMenu.h,v 1.2 2011-05-26 13:30:34 brebel Exp $
6 /// \author messier@indiana.edu
7 ////////////////////////////////////////////////////////////////////////
8 #ifndef EVDB_JOBMENU_H
9 #define EVDB_JOBMENU_H
10 #include <vector>
11 #include "TObject.h"
12 #include "TQObject.h"
13 #include "RQ_OBJECT.h"
14 
15 class TGMainFrame;
16 class TGMenuBar;
17 class TGPopupMenu;
18 class TGLayoutHints;
19 
20 namespace evdb {
21  /// The job pull dow menu
22  class JobMenu
23  {
24  RQ_OBJECT("evdb::JobMenu")
25 
26  public:
27  JobMenu(TGMenuBar* menubar, TGMainFrame* mf);
28  virtual ~JobMenu();
29  void SetWorkers(const std::vector<std::string>& w);
30  void SetServices(const std::vector<std::string>& w);
31 
32  // slots
33  void HandleMenu(int menu);
34  void EditConfig(int cfg);
35  void EditService(int cfg);
36 
37  private:
38  int OpenJob();
39  void ResetJob();
40 
41  private:
42  // TGMainFrame* fMainFrame; ///< Main graphics frame - never used in .cxx file except to set it
43  TGPopupMenu* fJobMenu; ///< The file menu
44  TGPopupMenu* fConfigMenu; ///< The module configuration menu
45  TGPopupMenu* fServiceMenu; ///< The user service configuration menu
46  TGLayoutHints* fLayout; ///< How to layout the menu
47  };
48 }
49 #endif // EVDB_FILEMENU_H
50 ////////////////////////////////////////////////////////////////////////
TGPopupMenu * fJobMenu
The file menu.
Definition: JobMenu.h:43
TGPopupMenu * fConfigMenu
The module configuration menu.
Definition: JobMenu.h:44
TGLayoutHints * fLayout
How to layout the menu.
Definition: JobMenu.h:46
cfg
Definition: dbjson.py:29
Manage all things related to colors for the event display.
void HandleMenu(int menu)
Definition: JobMenu.cxx:114
void SetWorkers(const std::vector< std::string > &w)
Definition: JobMenu.cxx:80
The job pull dow menu.
Definition: JobMenu.h:22
void EditConfig(int cfg)
Definition: JobMenu.cxx:136
void ResetJob()
Definition: JobMenu.cxx:183
void EditService(int cfg)
Definition: JobMenu.cxx:146
virtual ~JobMenu()
Definition: JobMenu.cxx:69
JobMenu(TGMenuBar *menubar, TGMainFrame *mf)
Definition: JobMenu.cxx:35
int OpenJob()
Definition: JobMenu.cxx:156
void SetServices(const std::vector< std::string > &w)
Definition: JobMenu.cxx:97
TGPopupMenu * fServiceMenu
The user service configuration menu.
Definition: JobMenu.h:45