#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 &) | |
void | itemChanged (const FWEventItem *) |
const FWSelectionManager & | operator= (const FWSelectionManager &) |
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 35 of file FWSelectionManager.cc.
References assert(), FWModelChangeManager::changeSignalsAreDone_, finishedAllSelections(), and m_changeManager.
|
private |
void FWSelectionManager::clearItemSelection | ( | ) |
Definition at line 81 of file FWSelectionManager.cc.
References m_itemSelection.
Referenced by clearSelection().
void FWSelectionManager::clearModelSelectionLeaveItem | ( | ) |
Definition at line 96 of file FWSelectionManager.cc.
References m_changeManager, and m_selection.
void FWSelectionManager::clearSelection | ( | ) |
Definition at line 68 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 108 of file FWSelectionManager.cc.
References m_newSelection, m_selection, m_wasChanged, and selectionChanged_.
Referenced by FWSelectionManager().
|
private |
Definition at line 152 of file FWSelectionManager.cc.
References assert(), FWEventItem::id(), m_itemConnectionCount, m_newSelection, m_selection, and m_wasChanged.
Referenced by select().
|
private |
|
private |
Definition at line 118 of file FWSelectionManager.cc.
References FWEventItem::id(), FWModelId::item(), itemChanged(), m_itemConnectionCount, m_newSelection, m_wasChanged, and FWEventItem::preItemChanged_.
Referenced by Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.AbstractView.AbstractView::restoreSelection(), FWEventItem::select(), and FWEventItem::toggleSelect().
const std::set< FWModelId > & FWSelectionManager::selected | ( | ) | const |
Definition at line 199 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 205 of file FWSelectionManager.cc.
References m_itemSelection.
Referenced by CmsShowEDI::fillEDIFrame().
|
private |
Definition at line 184 of file FWSelectionManager.cc.
References itemSelectionChanged_, and m_itemSelection.
Referenced by FWEventItem::selectItem(), and FWEventItem::toggleSelectItem().
|
private |
Definition at line 138 of file FWSelectionManager.cc.
References 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 190 of file FWSelectionManager.cc.
References itemSelectionChanged_, and m_itemSelection.
Referenced by FWEventItem::toggleSelectItem(), and FWEventItem::unselectItem().
|
friend |
Definition at line 37 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().