The Spot Report example demonstrates the following:
- How to build a plugin module for the VR-Forces Gui
- How to make spot reports selectable
- How to know when spot reports are selected
- How to know when spot reports are double clicked on
- How to know when spot reports are right clicked on
The Spot Report Manipulation example demonstrates how to manipulate the selection of spot report objects
#include <QtGui/QMainWindow>
#include <QtGui/QStatusBar>
using namespace makVrf;
{
return true;
}
void slot_onCurrentSelectionChanged(
{
if (main)
{
main->statusBar()->showMessage("");
main->statusBar()->hide();
}
makVrv::DtSelectionManager::IdSet::const_iterator it = selectedSet.begin();
for(; it != selectedSet.end(); ++it)
{
{
if (main)
{
main->statusBar()->show();
main->statusBar()->showMessage("A spot report was selected");
return;
}
}
}
}
{
if (main)
{
{
main->statusBar()->show();
main->statusBar()->showMessage("A spot report was double clicked on");
}
else
{
main->statusBar()->hide();
}
}
}
{
if (main)
{
{
main->statusBar()->show();
main->statusBar()->showMessage("A spot report was right clicked on");
}
else
{
main->statusBar()->hide();
}
}
}
{
&slot_onCurrentSelectionChanged, _1, &de));
boost::bind(&slot_unhandledEdit, _1, &de));
boost::bind(&slot_unhandledRightClick, _1, _2, _3, &de));
}
{
info.
pluginDescription =
"This example shows how to work with the selection of spot reports.";
}