Split "Display and rendered" aircraft,

just to avoid accidentally disabling aircraft when using "follow"
This commit is contained in:
Klaus Basan
2020-03-26 19:03:33 +01:00
committed by Mat Sutcliffe
parent dab907df8c
commit cfb2fa9d22
3 changed files with 30 additions and 10 deletions

View File

@@ -102,7 +102,13 @@ namespace BlackGui
const CMenuAction &CMenuAction::subMenuDisplayModels()
{
static const CMenuAction subdir(CIcons::appAircraft16(), "Display and render models", CMenuAction::pathClientSimulationDisplay());
static const CMenuAction subdir(CIcons::appAircraft16(), "Render models", CMenuAction::pathClientSimulationRender());
return subdir;
}
const CMenuAction &CMenuAction::subMenuRenderModels()
{
static const CMenuAction subdir(CIcons::appAircraft16(), "Display models", CMenuAction::pathClientSimulationDisplay());
return subdir;
}
@@ -494,6 +500,12 @@ namespace BlackGui
return this->addAction(CMenuAction::subMenuDisplayModels());
}
CMenuAction CMenuActions::addMenuRenderModels()
{
if (this->containsMenu(CMenuAction::subMenuRenderModels().getPath())) { return CMenuAction(); }
return this->addAction(CMenuAction::subMenuRenderModels());
}
CMenuAction CMenuActions::addMenuDataTransfer()
{
if (this->containsMenu(CMenuAction::subMenuDataTransfer().getPath())) { return CMenuAction(); }

View File

@@ -165,6 +165,9 @@ namespace BlackGui
//! Client simulation/display related
static const QString &pathClientSimulationDisplay() { static const QString p("ClientSimulation.Display/Display"); return p; }
//! Client simulation/display related
static const QString &pathClientSimulationRender() { static const QString p("ClientSimulation.Display/Render"); return p; }
//! Client simulation/display related
static const QString &pathClientSimulationTransfer() { static const QString p("ClientSimulation.Transfer/Transfer"); return p; }
@@ -222,6 +225,7 @@ namespace BlackGui
static const CMenuAction &subMenuConsolidateModels();
static const CMenuAction &subMenuCom();
static const CMenuAction &subMenuDisplayModels();
static const CMenuAction &subMenuRenderModels();
static const CMenuAction &subMenuDataTransfer();
//! @}
@@ -372,6 +376,9 @@ namespace BlackGui
//! Add display model menu
CMenuAction addMenuDisplayModels();
//! Add render model menu
CMenuAction addMenuRenderModels();
//! Add data transfer menu
CMenuAction addMenuDataTransfer();