LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
JobMenu.h
Go to the documentation of this file.
1 #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 {
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;
44  TGPopupMenu* fConfigMenu;
45  TGPopupMenu* fServiceMenu;
46  TGLayoutHints* fLayout;
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
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
Float_t w
Definition: plot.C:20
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