#include <Fireworks/Core/interface/FWSelectionManager.h>
Public Member Functions | |
void | clearItemSelection () |
void | clearModelSelectionLeaveItem () |
void | clearSelection () |
FWSelectionManager (FWModelChangeManager *iCM) | |
const std::set< FWModelId > & | selected () const |
const std::set< FWEventItem * > & | selectedItems () const |
Public Attributes | |
sigc::signal< void, const FWSelectionManager & > | itemSelectionChanged_ |
sigc::signal< void, const FWSelectionManager & > | selectionChanged_ |
Private Member Functions | |
void | finishedAllSelections () |
FWSelectionManager (const FWSelectionManager &)=delete | |
void | itemChanged (const FWEventItem *) |
const FWSelectionManager & | operator= (const FWSelectionManager &)=delete |
void | select (const FWModelId &iId) |
void | selectItem (FWEventItem *) |
void | unselect (const FWModelId &iId) |
void | unselectItem (FWEventItem *) |
Private Attributes | |
FWModelChangeManager * | m_changeManager |
std::vector< std::pair< int, sigc::connection > > | m_itemConnectionCount |
std::set< FWEventItem * > | m_itemSelection |
std::set< FWModelId > | m_newSelection |
std::set< FWModelId > | m_selection |
bool | m_wasChanged |
Friends | |
class | FWEventItem |
Description: Manages the list of selected Model items
Usage: <usage>
Definition at line 34 of file FWSelectionManager.h.
FWSelectionManager::FWSelectionManager | ( | FWModelChangeManager * | iCM | ) |
Definition at line 34 of file FWSelectionManager.cc.
References cms::cuda::assert(), FWModelChangeManager::changeSignalsAreDone_, finishedAllSelections(), and m_changeManager.
|
privatedelete |
void FWSelectionManager::clearItemSelection | ( | ) |
Definition at line 72 of file FWSelectionManager.cc.
References mps_monitormerge::items, and m_itemSelection.
Referenced by clearSelection().
void FWSelectionManager::clearModelSelectionLeaveItem | ( | ) |
Definition at line 83 of file FWSelectionManager.cc.
References m_changeManager, and m_selection.
void FWSelectionManager::clearSelection | ( | ) |
Definition at line 63 of file FWSelectionManager.cc.
References clearItemSelection(), m_changeManager, and m_selection.
Referenced by FWCollectionSummaryWidget::infoClicked(), FWCollectionSummaryWidget::labelClicked(), FWTableView::modelSelected(), FWCollectionSummaryWidget::modelSelected(), FWEveViewManager::selectionCleared(), FWCollectionSummaryWidget::stateClicked(), and CmsShowMain::~CmsShowMain().
|
private |
Definition at line 91 of file FWSelectionManager.cc.
References m_newSelection, m_selection, m_wasChanged, and selectionChanged_.
Referenced by FWSelectionManager().
|
private |
Definition at line 129 of file FWSelectionManager.cc.
References cms::cuda::assert(), LaserClient_cfi::high, FWEventItem::id(), LaserClient_cfi::low, m_itemConnectionCount, m_newSelection, m_selection, and m_wasChanged.
Referenced by select().
|
privatedelete |
|
private |
Definition at line 99 of file FWSelectionManager.cc.
References FWEventItem::id(), FWModelId::item(), itemChanged(), m_itemConnectionCount, m_newSelection, m_wasChanged, and FWEventItem::preItemChanged_.
Referenced by FWEventItem::select(), and FWEventItem::toggleSelect().
const std::set< FWModelId > & FWSelectionManager::selected | ( | ) | const |
Definition at line 168 of file FWSelectionManager.cc.
References m_selection.
Referenced by FWInvMassDialog::Calculate(), CmsShowEDI::changeSelectionColor(), FWModelContextMenuHandler::chosenItem(), FWModelContextMenuHandler::colorChangeRequested(), CmsShowModelPopup::fillModelPopup(), FWGUIManager::open3DRegion(), FWViewContextMenuHandlerGL::select(), FWModelContextMenuHandler::showSelectedModelContext(), and FWGUIManager::showSelectedModelContextMenu().
const std::set< FWEventItem * > & FWSelectionManager::selectedItems | ( | ) | const |
Definition at line 170 of file FWSelectionManager.cc.
References m_itemSelection.
Referenced by CmsShowEDI::fillEDIFrame().
|
private |
Definition at line 157 of file FWSelectionManager.cc.
References itemSelectionChanged_, and m_itemSelection.
Referenced by FWEventItem::selectItem(), and FWEventItem::toggleSelectItem().
|
private |
Definition at line 117 of file FWSelectionManager.cc.
References cms::cuda::assert(), FWEventItem::id(), FWModelId::item(), m_itemConnectionCount, m_newSelection, and m_wasChanged.
Referenced by FWEventItem::destroy(), FWEventItem::toggleSelect(), and FWEventItem::unselect().
|
private |
Definition at line 161 of file FWSelectionManager.cc.
References itemSelectionChanged_, and m_itemSelection.
Referenced by FWEventItem::toggleSelectItem(), and FWEventItem::unselectItem().
|
friend |
Definition at line 36 of file FWSelectionManager.h.
sigc::signal<void, const FWSelectionManager&> FWSelectionManager::itemSelectionChanged_ |
Definition at line 54 of file FWSelectionManager.h.
Referenced by CmsShowEDI::CmsShowEDI(), selectItem(), and unselectItem().
|
private |
Definition at line 70 of file FWSelectionManager.h.
Referenced by clearModelSelectionLeaveItem(), clearSelection(), and FWSelectionManager().
|
private |
Definition at line 74 of file FWSelectionManager.h.
Referenced by itemChanged(), select(), and unselect().
|
private |
Definition at line 75 of file FWSelectionManager.h.
Referenced by clearItemSelection(), selectedItems(), selectItem(), and unselectItem().
|
private |
Definition at line 72 of file FWSelectionManager.h.
Referenced by finishedAllSelections(), itemChanged(), select(), and unselect().
|
private |
Definition at line 71 of file FWSelectionManager.h.
Referenced by clearModelSelectionLeaveItem(), clearSelection(), finishedAllSelections(), itemChanged(), and selected().
|
private |
Definition at line 73 of file FWSelectionManager.h.
Referenced by finishedAllSelections(), itemChanged(), select(), and unselect().
sigc::signal<void, const FWSelectionManager&> FWSelectionManager::selectionChanged_ |
Definition at line 53 of file FWSelectionManager.h.
Referenced by CmsShowModelPopup::CmsShowModelPopup(), finishedAllSelections(), and FWSummaryManager::FWSummaryManager().