Commit 9aefc4ea authored by Jan Möbius's avatar Jan Möbius

Function for object deletion

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8417 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2c56eba2
......@@ -999,6 +999,9 @@ private slots:
/// This slot is called by the object manager when a new object is created
void newObject(int _objectId);
/// This slot is called by the object manager when an object is deleted
void deletedObject(int _objectId);
/** @} */
private :
......
......@@ -324,6 +324,23 @@ void Core::newObject(int _objectId) {
}
/// This slot is called by the object manager when a object is deleted
void Core::deletedObject(int _objectId) {
// BaseObject* baseObject = 0;
// PluginFunctions::getObject(_objectId,baseObject);
//
// if ( baseObject ) {
// connect( baseObject, SIGNAL(visibilityChanged(int)), this, SLOT(slotVisibilityChanged(int)), Qt::DirectConnection) ;
// connect( baseObject, SIGNAL(objectSelectionChanged(int)), this, SLOT(slotObjectSelectionChanged(int)), Qt::DirectConnection );
// connect( baseObject, SIGNAL(objectPropertiesChanged(int)), this, SLOT(slotObjectPropertiesChanged(int)), Qt::DirectConnection );
// } else {
// emit log(LOGERR,tr("newObject received from objectManager with invalid id! This should not happen. The new Object will not work correctly!"));
// }
//
emit log(LOGERR,tr("deletedObject received from objectManager!"));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment