The Add Entity Info Page example demonstrates the following:
- How to add a new page to the Entity Information dialog
Adding a New Page to the Entity Information Dialog
The Add Entity Info Page example demonstrates how to add a new page to the Entity Information dialog. The page that is added is blank and is designed to be a starting point. For an example of adding items to the page, see the addStateProperty example.
How to Run the Example
This example demonstrates how to add a new page to the Entity Information Dialog.
Usage
In the Launcher, click the Plug-ins button to bring up the Plug-ins Selection dialog. Enable the plugin. Then launch VR-Forces.
-
Start VR-Forces GUI and SIM.
-
Load a scenario - e.g. HawaiiGround.scnx.
-
Open the Entity Information dialog for an entity
-
The dialog will have an extra page at the bottom. The tab for the page is named 'Example Page' and has a green arrow icon.
Classes
| DtExampleInfoPage | The new blank page which is subclassed from DtInformationDialogPage |
Plugin Entry Points
#include <QtWidgets/QMenu>
#include <QtWidgets/QMessageBox>
#include <boost/bind/bind.hpp>
using namespace makVrf;
using namespace exampleInfoPage;
{
DtInformationDialogManager& dialogManager =
DtInformationDialogManager::instance(*de);
dialogManager.informationPageAssembler().registerPageCreator(
if (vrfApp)
{
informationPageConfiguration().addPagePath(
}
return true;
}
{
}