File indexing completed on 2024-04-06 12:11:32
0001 #ifndef Fireworks_Core_FWSummaryManager_h
0002 #define Fireworks_Core_FWSummaryManager_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <vector>
0023 #include "Rtypes.h"
0024
0025
0026
0027
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
0052 TGCompositeFrame* widget() const;
0053
0054
0055
0056
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;
0066
0067 const FWSummaryManager& operator=(const FWSummaryManager&) = delete;
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
0079
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