Commit b86e6ff4 authored by Jan Möbius's avatar Jan Möbius

More slot debugging output

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8342 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ce42ac1e
......@@ -146,6 +146,17 @@ void Core::slotObjectPropertiesChanged( int _id )
* See in the documentation of the texture plugin interfaces for further detail.
*/
void Core::slotAddTexture( QString _textureName , QString _filename, uint _dimension, int _id) {
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"addTexture( " + _textureName + "," + _filename + "," + QString::number(_dimension) + ", " + QString::number(_id) + tr(" ) called by ") +
QString( sender()->metaObject()->className() ) );
}
} else {
emit log(LOGINFO,"addTexture( " + _textureName + "," + _filename + "," + QString::number(_dimension) + ", " + QString::number(_id) + tr(" ) called by Core") );
}
}
emit addTexture(_textureName , _filename,_dimension,_id);
}
......@@ -153,6 +164,18 @@ void Core::slotAddTexture( QString _textureName , QString _filename, uint _dimen
* See in the documentation of the texture plugin interfaces for further detail.
*/
void Core::slotAddTexture( QString _textureName , QString _filename, uint _dimension) {
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"slotAddTexture( " + _textureName + "," + _filename + "," + QString::number(_dimension) + tr(" ) called by ") +
QString( sender()->metaObject()->className() ) );
}
} else {
emit log(LOGINFO,"slotAddTexture( " + _textureName + "," + _filename + "," +", " + QString::number(_dimension) + tr(" ) called by Core") );
}
}
emit addTexture(_textureName , _filename,_dimension);
}
......@@ -175,6 +198,18 @@ void Core::slotUpdateTexture( QString _name , int _identifier){
void Core::slotMultiTextureAdded( QString _textureGroup , QString _name , QString _filename , int _id , int& _textureId ) {
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"slotMultiTextureAdded( " + _textureGroup + ", " + _name + "," + _filename + "," + QString::number(_id) + tr(" ) called by ") +
QString( sender()->metaObject()->className() ) );
}
} else {
emit log(LOGINFO,"slotMultiTextureAdded( " + _textureGroup + ", " + _name + "," + _filename + "," + QString::number(_id) + tr(" ) called by Core") );
}
}
emit addMultiTexture( _textureGroup , _name , _filename , _id , _textureId );
}
......
......@@ -306,8 +306,10 @@ int Core::addEmptyObject( DataType _type ) {
// File plugins
for (int i=0; i < (int)supportedTypes_.size(); i++)
if ( supportedTypes_[i].type & _type )
if ( supportedTypes_[i].type & _type ) {
emit log(LOGERR, tr("File Plugins are not allowed to create empty objects anymore! ") );
retCode = supportedTypes_[i].plugin->addEmpty();
}
return retCode; // -1 if no plugin found
}
......@@ -318,6 +320,17 @@ int Core::addEmptyObject( DataType _type ) {
/// Slot for adding an empty object of given DataType
void Core::slotAddEmptyObject( DataType _type , int& _id ) {
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"slotAddEmptyObject( " + QString::number(_type) + "," + QString::number(_id) + tr(" ) called by ") +
QString( sender()->metaObject()->className() ) );
}
} else {
emit log(LOGINFO,"slotAddEmptyObject( " + QString::number(_type) + "," + QString::number(_id) + tr(" ) called by Core") );
}
}
_id = addEmptyObject( _type );
}
......
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