T& TUICore<T>::setPos( Vec2i const& pos ) { Vec2i offset = pos - mBoundRect.min; mBoundRect.min = pos; mBoundRect.max += offset; _removeFlag( UF_WORLD_POS_VAILD ); removeChildFlag( UF_WORLD_POS_VAILD ); _this()->onChangePos( pos , true ); return *_this(); }
T& TUICore<T>::enable( bool beE = true ) { if ( isEnable() != beE ) { if ( beE ) _removeFlag( UF_DISABLE ); else _addFlag( UF_DISABLE ); _this()->onEnable( beE ); } return *_this(); }
void CDestination::Undelete( int32 originalIndex) { if (_removeFlag(DELETED)) { Document()->SetModified(); CUpdateHint hint; hint.AddInt32("DestID", m_id); hint.AddInt32("DocAttrs", CMeVDoc::Update_AddDest); Document()->PostUpdate(&hint); } }
void CDestination::SetDisabled( bool disabled) { bool changed = false; if (disabled) changed = _addFlag(DISABLED); else changed = _removeFlag(DISABLED); if (changed) { Disabled(disabled); CUpdateHint hint; hint.AddInt32("DestID", m_id); hint.AddInt32("DestAttrs",Update_Flags); PostUpdate(&hint); } }
T& TUICore<T>::show( bool beS ) { if ( isShow() != beS ) { if ( beS ) _removeFlag( UF_BE_HIDDEN ); else _addFlag( UF_BE_HIDDEN ); _this()->onShow( beS ); TUICore* ui = mChild; while ( ui ) { ui->show( beS ); ui = ui->mNext; } } return *_this(); }
void CDestination::SetSolo( bool solo) { D_ACCESS(("CDestination::SetSolo(%s)\n", solo ? "true" : "false")); ASSERT(IsWriteLocked()); bool changed = false; if (solo) changed = _addFlag(SOLO); else changed = _removeFlag(SOLO); if (changed) { Soloed(solo); Document()->SetModified(); CUpdateHint hint; hint.AddInt32("DestID", m_id); hint.AddInt32("DestAttrs", Update_Flags); PostUpdate(&hint); } }
void CDestination::SetMuted( bool muted) { D_ACCESS(("CDestination::SetMuted(%s)\n", muted ? "true" : "false")); ASSERT(IsWriteLocked()); bool changed = false; if (muted) changed = _addFlag(MUTED); else changed = _removeFlag(MUTED); if (changed) { Muted(muted); Document()->SetModified(); CUpdateHint hint; hint.AddInt32("DestID", m_id); hint.AddInt32("DestAttrs", Update_Flags); PostUpdate(&hint); } }