The Modify Task example demonstrates the following:
- How to build a plugin module for the VR-Forces Gui
- How to override existing task dialog functionality and replace with your own
- How to register a task dialog to override an existing task dialog
This example changes the "Move To Waypoint" dialog so that it no longer has the "Movement Method" selection box in the lower section of the dialog as well as add a label on the dialog to indicate that the dialog has been modified.
#include <QtGui/QGroupBox>
#include <QtGui/QLabel>
#include <QtGui/QLayout>
{
public:
: makVrf::DtTaskMoveToDialog(de, parent, flags)
{
}
protected:
{
QLabel* label =
new QLabel(tr(
"Modified By Example"), canvas);
((QVBoxLayout*)canvas->layout())->insertWidget(2, label);
return canvas;
}
};
{
public:
{
}
};
{
return true;
}
{
info.
pluginDescription =
"This example shows how to modify an existing task dialog (Move To Waypoint...) to add your own functionality.";
}