CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/Fireworks/Core/interface/FWSummaryManager.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWSummaryManager_h
00002 #define Fireworks_Core_FWSummaryManager_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FWSummaryManager
00007 //
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Tue Mar  4 09:35:58 EST 2008
00019 // $Id: FWSummaryManager.h,v 1.11 2009/09/23 20:34:38 chrjones Exp $
00020 //
00021 
00022 // system include files
00023 #include <vector>
00024 #include "Rtypes.h"
00025 
00026 // user include files
00027 
00028 // forward declarations
00029 class TGPack;
00030 class TGFrame;
00031 class TGCompositeFrame;
00032 
00033 class FWEventItem;
00034 
00035 class FWSelectionManager;
00036 class FWEventItemsManager;
00037 class FWGUIManager;
00038 class FWModelChangeManager;
00039 class FWColorManager;
00040 class FWCollectionSummaryWidget;
00041 
00042 class FWSummaryManager
00043 {
00044 
00045 public:
00046    FWSummaryManager(TGFrame* iParent,
00047                     FWSelectionManager*,
00048                     FWEventItemsManager*,
00049                     FWGUIManager*,
00050                     FWModelChangeManager*,
00051                     FWColorManager*
00052    );
00053    virtual ~FWSummaryManager();
00054 
00055    // ---------- const member functions ---------------------
00056    TGCompositeFrame* widget() const;
00057    
00058    // ---------- static member functions --------------------
00059 
00060    // ---------- member functions ---------------------------
00061    void requestForInfo(FWEventItem*);
00062    void requestForFilter(FWEventItem*);
00063    void requestForError(FWEventItem*);
00064    void requestForController(FWEventItem*);
00065    void requestForSelectedModelContextMenu(Int_t iGlobalX, Int_t iGlobalY);
00066 
00067    void colorsChanged();
00068 private:
00069    FWSummaryManager(const FWSummaryManager&);    // stop default
00070 
00071    const FWSummaryManager& operator=(const FWSummaryManager&);    // stop default
00072 
00073    void selectionChanged(const FWSelectionManager&);
00074    void newItem(FWEventItem* iItem);
00075    void itemChanged(const FWEventItem*);
00076    void removeAllItems();
00077    void changesDone();
00078 
00079    void itemDestroyed(const FWEventItem*);
00080    
00081    // ---------- member data --------------------------------
00082    //TGPack* m_pack;
00083    TGCompositeFrame* m_pack;
00084    std::vector<FWCollectionSummaryWidget*> m_collectionWidgets;
00085    FWGUIManager* m_guiManager;
00086    FWColorManager* m_colorManager;
00087    bool m_itemChanged;
00088 };
00089 
00090 
00091 #endif