Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-03 04:10:00

0001 #ifndef Fireworks_Core_FWGUIEventDataAdder_h
0002 #define Fireworks_Core_FWGUIEventDataAdder_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWGUIEventDataAdder
0007 //
0008 /**\class FWGUIEventDataAdder FWGUIEventDataAdder.h Fireworks/Core/interface/FWGUIEventDataAdder.h
0009 
0010    Description: <one line class summary>
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Fri Jun 13 09:12:36 EDT 2008
0019 //
0020 
0021 // system include files
0022 #include <set>
0023 #include <vector>
0024 #include <string>
0025 #include <RQ_OBJECT.h>
0026 
0027 // user include files
0028 
0029 // forward declarations
0030 class FWEventItemsManager;
0031 class FWJobMetadataManager;
0032 class TGTransientFrame;
0033 class TGTextEntry;
0034 class TGTextButton;
0035 class TGCheckButton;
0036 class TFile;
0037 class FWTableWidget;
0038 class DataAdderTableManager;
0039 class TGFrame;
0040 
0041 class FWGUIEventDataAdder {
0042   RQ_OBJECT("FWGUIEventDataAdder")
0043 
0044 public:
0045   FWGUIEventDataAdder(UInt_t w, UInt_t, FWEventItemsManager*, TGFrame*, FWJobMetadataManager*);
0046   virtual ~FWGUIEventDataAdder();
0047 
0048   // ---------- const member functions ---------------------
0049 
0050   // ---------- static member functions --------------------
0051 
0052   // ---------- member functions ---------------------------
0053   void addNewItem();
0054   void addNewItemAndClose();
0055   void show();
0056 
0057   void windowIsClosing();
0058   void updateFilterString(const char* str);
0059   void rowClicked(Int_t iRow, Int_t iButton, Int_t iKeyMod, Int_t, Int_t);
0060 
0061   void metadataUpdatedSlot(void);
0062 
0063   void resetNameEntry();
0064 
0065   FWGUIEventDataAdder(const FWGUIEventDataAdder&) = delete;                   // stop default
0066   const FWGUIEventDataAdder& operator=(const FWGUIEventDataAdder&) = delete;  // stop default
0067 
0068 private:
0069   void createWindow();
0070   void newIndexSelected(int);
0071 
0072   // ---------- member data --------------------------------
0073   FWEventItemsManager* m_manager;
0074   FWJobMetadataManager* m_metadataManager;
0075 
0076   TGFrame* m_parentFrame;
0077   TGTransientFrame* m_frame;
0078   TGTextEntry* m_name;
0079   TGCheckButton* m_doNotUseProcessName;
0080   TGTextButton* m_apply;
0081   TGTextButton* m_applyAndClose;
0082   TGTextEntry* m_search;
0083 
0084   std::string m_purpose;
0085 
0086   std::string m_type;
0087   std::string m_moduleLabel;
0088   std::string m_productInstanceLabel;
0089   std::string m_processName;
0090 
0091   std::string m_expr;  // this the search term for use in searchData()
0092 
0093   DataAdderTableManager* m_tableManager;
0094   FWTableWidget* m_tableWidget;
0095 };
0096 
0097 #endif