Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:31

0001 #ifndef Fireworks_Core_FWGUIEventSelector_h
0002 #define Fireworks_Core_FWGUIEventSelector_h
0003 
0004 #include "TGFrame.h"
0005 
0006 class TGLabel;
0007 class TGCheckButton;
0008 class TGComboBox;
0009 
0010 struct FWEventSelector;
0011 class FWHLTValidator;
0012 class FWCustomIconsButton;
0013 class FWGUIValidatingTextEntry;
0014 
0015 class FWGUIEventSelector : public TGHorizontalFrame {
0016 public:
0017   FWGUIEventSelector(TGCompositeFrame* p, FWEventSelector* sel, std::vector<std::string>& triggerProcessList);
0018   ~FWGUIEventSelector() override;
0019 
0020   void deleteCallback();
0021   void enableCallback(bool);
0022   void expressionCallback(char*);
0023   void triggerProcessCallback(const char*);
0024   void updateNEvents();
0025 
0026   FWEventSelector* guiSelector() { return m_guiSelector; }
0027   FWEventSelector* origSelector() { return m_origSelector; }
0028   void setOrigSelector(FWEventSelector* s) { m_origSelector = s; }
0029 
0030   void removeSelector(FWGUIEventSelector*);  // *SIGNAL*
0031   void selectorChanged();                    // *SIGNAL*
0032 
0033 private:
0034   FWGUIEventSelector(const FWGUIEventSelector&);                   // stop default
0035   const FWGUIEventSelector& operator=(const FWGUIEventSelector&);  // stop default
0036 
0037   FWEventSelector* m_guiSelector;
0038   FWEventSelector* m_origSelector;
0039 
0040   FWGUIValidatingTextEntry* m_text1;
0041   FWGUIValidatingTextEntry* m_text2;
0042   TGCheckButton* m_enableBtn;
0043   FWCustomIconsButton* m_deleteBtn;
0044   TGLabel* m_nEvents;
0045 
0046   TGComboBox* m_combo;
0047   FWHLTValidator* m_validator;
0048 
0049   ClassDefOverride(FWGUIEventSelector, 0);  // Manager for EVE windows.
0050 };
0051 
0052 #endif