Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef Fireworks_Core_FWSummaryManager_h
0002 #define Fireworks_Core_FWSummaryManager_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWSummaryManager
0007 //
0008 /**\class FWSummaryManager FWSummaryManager.h Fireworks/Core/interface/FWSummaryManager.h
0009 
0010    Description: <one line class summary>
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Tue Mar  4 09:35:58 EST 2008
0019 //
0020 
0021 // system include files
0022 #include <vector>
0023 #include "Rtypes.h"
0024 
0025 // user include files
0026 
0027 // forward declarations
0028 class TGPack;
0029 class TGFrame;
0030 class TGCompositeFrame;
0031 
0032 class FWEventItem;
0033 
0034 class FWSelectionManager;
0035 class FWEventItemsManager;
0036 class FWGUIManager;
0037 class FWModelChangeManager;
0038 class FWColorManager;
0039 class FWCollectionSummaryWidget;
0040 
0041 class FWSummaryManager {
0042 public:
0043   FWSummaryManager(TGFrame* iParent,
0044                    FWSelectionManager*,
0045                    FWEventItemsManager*,
0046                    FWGUIManager*,
0047                    FWModelChangeManager*,
0048                    FWColorManager*);
0049   virtual ~FWSummaryManager();
0050 
0051   // ---------- const member functions ---------------------
0052   TGCompositeFrame* widget() const;
0053 
0054   // ---------- static member functions --------------------
0055 
0056   // ---------- member functions ---------------------------
0057   void requestForInfo(FWEventItem*);
0058   void requestForFilter(FWEventItem*);
0059   void requestForError(FWEventItem*);
0060   void requestForController(FWEventItem*);
0061   void requestForSelectedModelContextMenu(Int_t iGlobalX, Int_t iGlobalY);
0062 
0063   void colorsChanged();
0064 
0065   FWSummaryManager(const FWSummaryManager&) = delete;  // stop default
0066 
0067   const FWSummaryManager& operator=(const FWSummaryManager&) = delete;  // stop default
0068 
0069 private:
0070   void selectionChanged(const FWSelectionManager&);
0071   void newItem(FWEventItem* iItem);
0072   void itemChanged(const FWEventItem*);
0073   void removeAllItems();
0074   void changesDone();
0075 
0076   void itemDestroyed(const FWEventItem*);
0077 
0078   // ---------- member data --------------------------------
0079   //TGPack* m_pack;
0080   TGCompositeFrame* m_pack;
0081   std::vector<FWCollectionSummaryWidget*> m_collectionWidgets;
0082   FWGUIManager* m_guiManager;
0083   FWColorManager* m_colorManager;
0084   bool m_itemChanged;
0085 };
0086 
0087 #endif