The SelectionStack class. More...

Inheritance diagram for score::SelectionStack:

Detailed Description

The SelectionStack class.

A stack of selected elements. Each time a selection of objects is done in the software, it should be added to this stack using SelectionDispatcher. This way, the user will be able to browse through his previous selections.

Public Member Functions

bool canUnselect () const
 
bool canReselect () const
 
void clear ()
 
void clearAllButLast ()
 
void unselect ()
 
void reselect ()
 
void deselect ()
 
void deselectObjects (const Selection &toDeselect)
 
Selection currentSelection () const
 
void pushNewSelection (const Selection &s)
 
void currentSelectionChanged (const Selection &old, const Selection &current)
 
void prune (IdentifiedObjectAbstract *p)
 
vvvvvvvvvvvvoid pruneRecursively (IdentifiedObjectAbstract *p)
 
void pruneConnections ()
 

Static Public Member Functions

static void w_GetAccessSpecifierHelper (std::integral_constant< decltype((&W_ThisType::prune)), &W_ThisType::prune >)
 
static void w_GetAccessSpecifierHelper (std::integral_constant< decltype((&W_ThisType::pruneRecursively)), &W_ThisType::pruneRecursively >)
 

Public Attributes

pppppppppppprivate __pad0__: void push(const Selection& s)
 
QStack< Selectionm_unselectable
 
QStack< Selectionm_reselectable
 
ossia::hash_map< const IdentifiedObjectAbstract *, QMetaObject::Connection > m_connections
 

Friends

constexpr friend auto w_state (w_internal::Index< w_internal::stateCount< __COUNTER__, w_internal::MethodStateTag, W_ThisType ** >>, w_internal::MethodStateTag, W_ThisType **) -> decltype((w_internal::makeMetaMethodInfo((&W_ThisType::prune), w_internal::viewLiteral("prune"), std::integral_constant< decltype((&W_ThisType::prune)), &W_ThisType::prune >(), w_internal::viewParsedLiterals< w_internal::countParsedLiterals("" "")>("" ""), w_internal::W_EmptyFlag)))
 
constexpr friend auto w_state (w_internal::Index< w_internal::stateCount< __COUNTER__, w_internal::MethodStateTag, W_ThisType ** >>, w_internal::MethodStateTag, W_ThisType **) -> decltype((w_internal::makeMetaMethodInfo((&W_ThisType::pruneRecursively), w_internal::viewLiteral("pruneRecursively"), std::integral_constant< decltype((&W_ThisType::pruneRecursively)), &W_ThisType::pruneRecursively >(), w_internal::viewParsedLiterals< w_internal::countParsedLiterals("" "")>("" ""), w_internal::W_EmptyFlag)))
 

The documentation for this class was generated from the following files: