Exemple #1
0
Stack::~Stack() {
	if ( m_selectImage != nullptr ){
		Carta::State::ObjectManager* objMan = Carta::State::ObjectManager::objectManager();
		objMan->destroyObject( m_selectImage->getId());
		m_selectImage = nullptr;
	}
	Carta::State::ObjectManager* objMan = Carta::State::ObjectManager::objectManager();
	int selectCount = m_selects.size();
	for ( int i = 0; i < selectCount; i++ ){
		if ( m_selects[i] != nullptr){
			objMan->destroyObject(m_selects[i]->getId());
			m_selects[i] = nullptr;
		}
	}
	m_selects.clear();
}
Exemple #2
0
QString AnimatorType::_makeSelection(){
    Carta::State::ObjectManager* objManager = Carta::State::ObjectManager::objectManager();
    if ( m_select != nullptr ){
        objManager->destroyObject( m_select->getId());
    }
    m_select = objManager->createObject<Selection>();
    connect( m_select, SIGNAL(indexChanged(bool)), this, SLOT(_selectionChanged(bool)));
    QString path = m_select->getPath();
    return path;
}
Exemple #3
0
AnimatorType::~AnimatorType(){
    if ( m_select != nullptr ){
        Carta::State::ObjectManager* objMan = Carta::State::ObjectManager::objectManager();
        objMan->destroyObject( m_select->getId());
    }
}