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 by allowing for custom code when a spot report is selected.
#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();
}
}
}
{
&slot_onCurrentSelectionChanged, _1, &de));
}
{
info.
pluginDescription =
"This example shows how to work with the selection of spot reports.";
}