Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-03 04:09:57

0001 #ifndef Fireworks_Core_CSGActionSupervisor_h
0002 #define Fireworks_Core_CSGActionSupervisor_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     CSGActionSupervisor
0007 //
0008 /**\class CSGActionSupervisor CSGActionSupervisor.h Fireworks/Core/interface/CSGActionSupervisor.h
0009 
0010    Description: <one line class summary>
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:
0018 //         Created: Aug 2009
0019 
0020 #include <vector>
0021 #include "Rtypes.h"
0022 
0023 class CSGAction;
0024 class TGPopupMenu;
0025 struct Event_t;
0026 
0027 class CSGActionSupervisor {
0028 public:
0029   CSGActionSupervisor();
0030   virtual ~CSGActionSupervisor();
0031 
0032   const std::vector<CSGAction*>& getListOfActions() const;
0033   void addToActionMap(CSGAction* action);
0034 
0035   virtual void defaultAction();
0036 
0037   CSGAction* getAction(const std::string& name);
0038 
0039   virtual void enableActions(bool enable = true);
0040 
0041   Bool_t activateMenuEntry(int entry);
0042   Bool_t activateToolBarEntry(int entry);
0043   void resizeMenu(TGPopupMenu* menu);
0044   virtual void HandleMenu(Int_t id);
0045 
0046   Long_t getToolTipDelay() const;
0047 
0048   CSGActionSupervisor(const CSGActionSupervisor&) = delete;                   // stop default
0049   const CSGActionSupervisor& operator=(const CSGActionSupervisor&) = delete;  // stop default
0050 
0051 protected:
0052   std::vector<CSGAction*> m_actionList;
0053 
0054 private:
0055   // ---------- member data --------------------------------
0056 
0057   Long_t m_tooltipDelay;
0058 };
0059 
0060 #endif