#include <Fireworks/Core/interface/FWSummaryManager.h>
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 42 of file FWSummaryManager.h.
FWSummaryManager::FWSummaryManager | ( | TGFrame * | iParent, |
FWSelectionManager * | sm, | ||
FWEventItemsManager * | eim, | ||
FWGUIManager * | gm, | ||
FWModelChangeManager * | cm, | ||
FWColorManager * | colorm | ||
) |
Definition at line 44 of file FWSummaryManager.cc.
References changesDone(), FWModelChangeManager::changeSignalsAreDone_, colorsChanged(), FWColorManager::colorsHaveChanged_, FWEventItemsManager::goingToClearItems_, FWModelChangeManager::itemsGoingToBeClearedSlot(), m_pack, newItem(), FWEventItemsManager::newItem_, removeAllItems(), selectionChanged(), and FWSelectionManager::selectionChanged_.
: m_guiManager(gm), m_colorManager(colorm), m_itemChanged(false) { colorm->colorsHaveChanged_.connect(boost::bind(&FWSummaryManager::colorsChanged,this)); sm->selectionChanged_.connect(boost::bind(&FWSummaryManager::selectionChanged,this,_1)); eim->newItem_.connect(boost::bind(&FWSummaryManager::newItem, this, _1) ); eim->goingToClearItems_.connect(boost::bind(&FWSummaryManager::removeAllItems, this)); eim->goingToClearItems_.connect(boost::bind(&FWModelChangeManager::itemsGoingToBeClearedSlot, cm)); m_pack = new TGVerticalFrame(iParent); m_pack->SetLayoutManager( new FWCompactVerticalLayout(m_pack)); const unsigned int backgroundColor=0x2f2f2f; m_pack->SetBackgroundColor(backgroundColor); cm->changeSignalsAreDone_.connect(boost::bind(&FWSummaryManager::changesDone,this)); }
FWSummaryManager::~FWSummaryManager | ( | ) | [virtual] |
Definition at line 74 of file FWSummaryManager.cc.
{ }
FWSummaryManager::FWSummaryManager | ( | const FWSummaryManager & | ) | [private] |
void FWSummaryManager::changesDone | ( | ) | [private] |
Definition at line 153 of file FWSummaryManager.cc.
References m_itemChanged, and m_pack.
Referenced by FWSummaryManager().
{ if(m_itemChanged) { m_pack->Layout(); m_itemChanged=false; } }
void FWSummaryManager::colorsChanged | ( | ) |
Definition at line 162 of file FWSummaryManager.cc.
References FWColorManager::backgroundColorIndex(), FWColorManager::isColorSetLight(), FWColorManager::kWhiteIndex, m_collectionWidgets, m_colorManager, and m_pack.
Referenced by FWSummaryManager().
{ bool backgroundIsWhite = m_colorManager->backgroundColorIndex()==FWColorManager::kWhiteIndex; if(m_colorManager->isColorSetLight()) { m_pack->SetBackgroundColor(TGFrame::GetDefaultFrameBackground()); } else { const unsigned int backgroundColor=0x2f2f2f; m_pack->SetBackgroundColor(backgroundColor); } gClient->NeedRedraw(m_pack); for(std::vector<FWCollectionSummaryWidget*>::iterator it = m_collectionWidgets.begin(), itEnd = m_collectionWidgets.end(); it != itEnd; ++it) { if(0!=*it) { (*it)->setBackgroundToWhite(backgroundIsWhite); } } }
void FWSummaryManager::itemChanged | ( | const FWEventItem * | ) | [private] |
Definition at line 123 of file FWSummaryManager.cc.
References m_itemChanged.
Referenced by newItem().
{ m_itemChanged = true; }
void FWSummaryManager::itemDestroyed | ( | const FWEventItem * | iItem | ) | [private] |
Definition at line 112 of file FWSummaryManager.cc.
References FWEventItem::id(), m_collectionWidgets, and m_pack.
Referenced by newItem().
{ m_pack->HideFrame(m_collectionWidgets[iItem->id()]); m_pack->RemoveFrame(m_collectionWidgets[iItem->id()]); delete m_collectionWidgets[iItem->id()]; m_collectionWidgets[iItem->id()]=0; m_pack->Layout(); gClient->NeedRedraw(m_pack); }
void FWSummaryManager::newItem | ( | FWEventItem * | iItem | ) | [private] |
Definition at line 94 of file FWSummaryManager.cc.
References FWColorManager::backgroundColorIndex(), FWEventItem::goingToBeDestroyed_, itemChanged(), FWEventItem::itemChanged_, itemDestroyed(), FWColorManager::kWhiteIndex, lst, m_collectionWidgets, m_colorManager, m_pack, and FWCollectionSummaryWidget::setBackgroundToWhite().
Referenced by FWSummaryManager().
{ TGLayoutHints* hints = new TGLayoutHints(kLHintsExpandX); FWCollectionSummaryWidget* lst = new FWCollectionSummaryWidget(m_pack,*iItem,hints); m_pack->AddFrame(lst, hints); m_collectionWidgets.push_back(lst); bool backgroundIsWhite = m_colorManager->backgroundColorIndex()==FWColorManager::kWhiteIndex; lst->setBackgroundToWhite(backgroundIsWhite); iItem->goingToBeDestroyed_.connect(boost::bind(&FWSummaryManager::itemDestroyed,this,_1)); iItem->itemChanged_.connect(boost::bind(&FWSummaryManager::itemChanged,this,_1)); lst->Connect("requestForInfo(FWEventItem*)","FWSummaryManager",this,"requestForInfo(FWEventItem*)"); lst->Connect("requestForFilter(FWEventItem*)","FWSummaryManager",this,"requestForFilter(FWEventItem*)"); lst->Connect("requestForErrorInfo(FWEventItem*)","FWSummaryManager",this,"requestForError(FWEventItem*)"); lst->Connect("requestForController(FWEventItem*)","FWSummaryManager",this,"requestForController(FWEventItem*)"); lst->Connect("requestForModelContextMenu(Int_t,Int_t)","FWSummaryManager",this,"requestForSelectedModelContextMenu(Int_t,Int_t)"); }
const FWSummaryManager& FWSummaryManager::operator= | ( | const FWSummaryManager & | ) | [private] |
void FWSummaryManager::removeAllItems | ( | ) | [private] |
Definition at line 129 of file FWSummaryManager.cc.
References m_collectionWidgets, and m_pack.
Referenced by FWSummaryManager().
{ for(std::vector<FWCollectionSummaryWidget*>::iterator it = m_collectionWidgets.begin(), itEnd = m_collectionWidgets.end(); it != itEnd; ++it) { if(0!=*it) { m_pack->HideFrame(*it); m_pack->RemoveFrame(*it); delete *it; *it=0; } } m_collectionWidgets.clear(); m_pack->Layout(); gClient->NeedRedraw(m_pack); }
void FWSummaryManager::requestForController | ( | FWEventItem * | iItem | ) |
Definition at line 200 of file FWSummaryManager.cc.
References m_guiManager, and FWGUIManager::showEDIFrame().
{ m_guiManager->showEDIFrame(); }
void FWSummaryManager::requestForError | ( | FWEventItem * | iItem | ) |
Definition at line 194 of file FWSummaryManager.cc.
References m_guiManager, and FWGUIManager::showEDIFrame().
{ m_guiManager->showEDIFrame(); }
void FWSummaryManager::requestForFilter | ( | FWEventItem * | iItem | ) |
Definition at line 189 of file FWSummaryManager.cc.
References kFilter, m_guiManager, and FWGUIManager::showEDIFrame().
{ m_guiManager->showEDIFrame(kFilter); }
void FWSummaryManager::requestForInfo | ( | FWEventItem * | iItem | ) |
Definition at line 184 of file FWSummaryManager.cc.
References kData, m_guiManager, and FWGUIManager::showEDIFrame().
{ m_guiManager->showEDIFrame(kData); }
void FWSummaryManager::requestForSelectedModelContextMenu | ( | Int_t | iGlobalX, |
Int_t | iGlobalY | ||
) |
Definition at line 206 of file FWSummaryManager.cc.
References m_guiManager, and FWGUIManager::showSelectedModelContextMenu().
{ m_guiManager->showSelectedModelContextMenu(iGlobalX,iGlobalY,0); }
void FWSummaryManager::selectionChanged | ( | const FWSelectionManager & | iSM | ) | [private] |
TGCompositeFrame * FWSummaryManager::widget | ( | ) | const |
Definition at line 215 of file FWSummaryManager.cc.
References m_pack.
Referenced by FWGUIManager::createList().
{ return m_pack; }
std::vector<FWCollectionSummaryWidget*> FWSummaryManager::m_collectionWidgets [private] |
Definition at line 84 of file FWSummaryManager.h.
Referenced by colorsChanged(), itemDestroyed(), newItem(), and removeAllItems().
FWColorManager* FWSummaryManager::m_colorManager [private] |
Definition at line 86 of file FWSummaryManager.h.
Referenced by colorsChanged(), and newItem().
FWGUIManager* FWSummaryManager::m_guiManager [private] |
Definition at line 85 of file FWSummaryManager.h.
Referenced by requestForController(), requestForError(), requestForFilter(), requestForInfo(), and requestForSelectedModelContextMenu().
bool FWSummaryManager::m_itemChanged [private] |
Definition at line 87 of file FWSummaryManager.h.
Referenced by changesDone(), and itemChanged().
TGCompositeFrame* FWSummaryManager::m_pack [private] |
Definition at line 83 of file FWSummaryManager.h.
Referenced by changesDone(), colorsChanged(), FWSummaryManager(), itemDestroyed(), newItem(), removeAllItems(), and widget().