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

More functions for slot debugging

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5367 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9c86513d
...@@ -189,7 +189,17 @@ void Core::slotLoad(QString _filename, DataType _type, int& _id) { ...@@ -189,7 +189,17 @@ void Core::slotLoad(QString _filename, DataType _type, int& _id) {
} }
/// Slot gets called after a file-plugin has opened an object /// Slot gets called after a file-plugin has opened an object
void Core::slotObjectOpened ( int _id ) { void Core::slotObjectOpened ( int _id ) {
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"slotObjectOpened( " + QString::number(_id) + " ) called by " +
QString( sender()->metaObject()->className() ) );
}
} else {
emit log(LOGINFO,"slotObjectOpened( " + QString::number(_id) + " ) called by Core" );
}
}
// get the opened object // get the opened object
BaseObjectData* object; BaseObjectData* object;
...@@ -250,10 +260,22 @@ void Core::slotLoad(QString _filename, DataType _type, int& _id) { ...@@ -250,10 +260,22 @@ void Core::slotLoad(QString _filename, DataType _type, int& _id) {
} }
// objectRoot_->dumpTree(); // objectRoot_->dumpTree();
} }
/// Slot gets called after a file-plugin has opened an object /// Slot gets called after a file-plugin has opened an object
void Core::slotEmptyObjectAdded ( int _id ) { void Core::slotEmptyObjectAdded ( int _id ) {
if ( OpenFlipper::Options::doSlotDebugging() ) {
if ( sender() != 0 ) {
if ( sender()->metaObject() != 0 ) {
emit log(LOGINFO,"slotEmptyObjectAdded( " + QString::number(_id) + " ) called by " +
QString( sender()->metaObject()->className() ) );
}
} else {
emit log(LOGINFO,"slotEmptyObjectAdded( " + QString::number(_id) + " ) called by Core" );
}
}
// Tell the Plugins that the Object List and the active object have changed // Tell the Plugins that the Object List and the active object have changed
emit signalObjectUpdated(_id); emit signalObjectUpdated(_id);
emit objectSelectionChanged(_id); emit objectSelectionChanged(_id);
...@@ -270,7 +292,7 @@ void Core::slotLoad(QString _filename, DataType _type, int& _id) { ...@@ -270,7 +292,7 @@ void Core::slotLoad(QString _filename, DataType _type, int& _id) {
// QString filename = object->path() + OpenFlipper::Options::dirSeparator() + object->name(); // QString filename = object->path() + OpenFlipper::Options::dirSeparator() + object->name();
// addRecent(filename); // addRecent(filename);
} }
//======================================================================================== //========================================================================================
// === Menu Slots ============================ // === Menu Slots ============================
......
<?xml version = '1.0' encoding = 'UTF-8'?> <?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE KDevPrjSession> <!DOCTYPE KDevPrjSession>
<KDevPrjSession> <KDevPrjSession>
<DocsAndViews NumberOfDocuments="0" /> <DocsAndViews NumberOfDocuments="3" >
<Doc0 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper-Free/Plugin-Selection/SelectionPluginT.cc" >
<View0 Encoding="" line="60" Type="Source" />
</Doc0>
<Doc1 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper-Free/OpenMesh/Doc/Concepts/MeshKernel.hh" >
<View0 Encoding="" line="96" Type="Source" />
</Doc1>
<Doc2 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper-Free/OpenMesh/Core/Mesh/IteratorsT.hh" >
<View0 Encoding="" line="78" Type="Source" />
</Doc2>
</DocsAndViews>
<pluginList> <pluginList>
<kdevdebugger> <kdevdebugger>
<breakpointList/> <breakpointList/>
......
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