|
Minsky: 3.17.0
|
#include <ravelWrap.h>

Public Member Functions | |
| RavelLockGroup () | |
| void | addRavel (const std::weak_ptr< Ravel > &ravel) |
| const std::vector< std::weak_ptr< Ravel > > & | ravels () const |
| void | initialBroadcast () |
| broadcast first ravel's state to the remainder More... | |
| void | broadcast (const Ravel &ravel) |
| broadcast state from ravel to the lock group More... | |
| unsigned | colour () const |
| an identifying tag used to colour locked ravels on canvas More... | |
| void | validateLockHandleInfo () |
| checks handleLockInfo for non repeated handles, etc More... | |
| std::vector< std::string > | allLockHandles () const |
| populate handlesToLock by all handles present in the lock group More... | |
| std::vector< std::string > | ravelNames () const |
| return tooltips of the ravels in this lockGroup More... | |
| std::vector< std::string > | handleNames (size_t ravel_idx) const |
| return the handle descriptions of of ravel ravel_idx in ravels More... | |
| void | setLockHandles (const std::vector< std::string > &handles) |
| set handlesToLock to the handles in handles More... | |
| void | addHandleInfo (const std::weak_ptr< Ravel > &ravel) |
| add ravel's handles to handleLockInfo, for a ravel stashed in m_ravels More... | |
| void | removeFromGroup (const Ravel &) |
Public Attributes | |
| std::vector< HandleLockInfo > | handleLockInfo |
Private Attributes | |
| unsigned | m_colour |
| std::vector< std::weak_ptr< Ravel > > | m_ravels |
Static Private Attributes | |
| static unsigned | nextColour =1 |
Definition at line 225 of file ravelWrap.h.
|
inline |
Definition at line 231 of file ravelWrap.h.
| void minsky::RavelLockGroup::addHandleInfo | ( | const std::weak_ptr< Ravel > & | ravel | ) |
add ravel's handles to handleLockInfo, for a ravel stashed in m_ravels
Definition at line 797 of file ravelWrap.cc.
References handleLockInfo, handleNames(), and m_ravels.
Referenced by addRavel().


| void minsky::RavelLockGroup::addRavel | ( | const std::weak_ptr< Ravel > & | ravel | ) |
Definition at line 789 of file ravelWrap.cc.
References addHandleInfo(), handleLockInfo, and m_ravels.

| vector< string > minsky::RavelLockGroup::allLockHandles | ( | ) | const |
populate handlesToLock by all handles present in the lock group
Definition at line 736 of file ravelWrap.cc.
References m_ravels.
| void minsky::RavelLockGroup::broadcast | ( | const Ravel & | ravel | ) |
broadcast state from ravel to the lock group
Definition at line 610 of file ravelWrap.cc.
References minsky::Ravel::getState(), handleLockInfo, and m_ravels.
Referenced by initialBroadcast().


|
inline |
an identifying tag used to colour locked ravels on canvas
Definition at line 239 of file ravelWrap.h.
| std::vector< std::string > minsky::RavelLockGroup::handleNames | ( | size_t | ravel_idx | ) | const |
return the handle descriptions of of ravel ravel_idx in ravels
Definition at line 761 of file ravelWrap.cc.
References m_ravels.
Referenced by addHandleInfo(), and setLockHandles().

| void minsky::RavelLockGroup::initialBroadcast | ( | ) |
broadcast first ravel's state to the remainder
Definition at line 603 of file ravelWrap.cc.
References broadcast(), and m_ravels.

| std::vector< std::string > minsky::RavelLockGroup::ravelNames | ( | ) | const |
return tooltips of the ravels in this lockGroup
Definition at line 749 of file ravelWrap.cc.
References m_ravels.
|
inline |
Definition at line 233 of file ravelWrap.h.
| void minsky::RavelLockGroup::removeFromGroup | ( | const Ravel & | ravel | ) |
Definition at line 833 of file ravelWrap.cc.
References handleLockInfo, and m_ravels.
| void minsky::RavelLockGroup::setLockHandles | ( | const std::vector< std::string > & | handles | ) |
set handlesToLock to the handles in handles
Definition at line 768 of file ravelWrap.cc.
References handleLockInfo, handleNames(), and m_ravels.

| void minsky::RavelLockGroup::validateLockHandleInfo | ( | ) |
checks handleLockInfo for non repeated handles, etc
| if | error |
Definition at line 716 of file ravelWrap.cc.
References handleLockInfo, and m_ravels.
| std::vector<HandleLockInfo> minsky::RavelLockGroup::handleLockInfo |
Definition at line 240 of file ravelWrap.h.
Referenced by addHandleInfo(), addRavel(), broadcast(), removeFromGroup(), setLockHandles(), and validateLockHandleInfo().
|
private |
Definition at line 228 of file ravelWrap.h.
|
private |
Definition at line 229 of file ravelWrap.h.
Referenced by addHandleInfo(), addRavel(), allLockHandles(), broadcast(), handleNames(), initialBroadcast(), ravelNames(), removeFromGroup(), setLockHandles(), and validateLockHandleInfo().
|
staticprivate |
Definition at line 227 of file ravelWrap.h.