Plugin test message boxes

git-svn-id: http://svn.osgeo.org/qgis/trunk@136 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2002-10-13 22:08:02 +00:00
parent 6c5c5b6015
commit ecfbcfd009

View File

@ -581,7 +581,8 @@ void QgisApp::testPluginFunctions()
std::cout << "Plugin name: " << pl->pluginName() << std::endl; std::cout << "Plugin name: " << pl->pluginName() << std::endl;
std::cout << "Plugin version: " << pl->pluginVersion() << std::endl; std::cout << "Plugin version: " << pl->pluginVersion() << std::endl;
std::cout << "Plugin description: " << pl->pluginDescription() << std::endl; std::cout << "Plugin description: " << pl->pluginDescription() << std::endl;
QMessageBox::information(this,"Plugin Information","QGis loaded the following plugin:\nName: "
+ pl->pluginName() + "\nVersion: " + pl->pluginVersion() + "\nDescription: " + pl->pluginDescription());
// unload the plugin (delete it) // unload the plugin (delete it)
std::cout << "Attempting to resolve the unload function" << std::endl; std::cout << "Attempting to resolve the unload function" << std::endl;
unload_t *ul = (unload_t *) myLib.resolve("unload"); unload_t *ul = (unload_t *) myLib.resolve("unload");
@ -589,11 +590,13 @@ void QgisApp::testPluginFunctions()
ul(pl); ul(pl);
std::cout << "Unloaded the plugin\n"; std::cout << "Unloaded the plugin\n";
} else { } else {
std::cout << "Unable to resolve unload function. Plugin was not unloaded\n"; std::cout << "Unable to resolve unload function. Plugin was not unloaded\n";
} }
} }
} else } else{
std::cout << "Unable to load library" << std::endl; QMessageBox::warning(this,"Unable to Load Plugin","QGis was unable to load the plugin from: ../plugins/libqgisplugin.so.1.0.0");
std::cout << "Unable to load library" << std::endl;
}
} }
void QgisApp::saveWindowState() void QgisApp::saveWindowState()