mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 06:25:37 +08:00
[GUI] Reorganise aircraft list view context menu
This commit is contained in:
@@ -159,6 +159,12 @@ namespace BlackGui
|
|||||||
//! Client COM related
|
//! Client COM related
|
||||||
static const QString &pathClientCom() { static const QString p("Client.ATC/COM"); return p; }
|
static const QString &pathClientCom() { static const QString p("Client.ATC/COM"); return p; }
|
||||||
|
|
||||||
|
//! Client flight plan
|
||||||
|
static const QString &pathClientFlightPlan() { static const QString p("Client.FlightPlan"); return p; }
|
||||||
|
|
||||||
|
//! Client follow in simulator
|
||||||
|
static const QString &pathClientFollowInSim() { static const QString p("Client.FollowInSim"); return p; }
|
||||||
|
|
||||||
//! Client simulation related
|
//! Client simulation related
|
||||||
static const QString &pathClientSimulation() { static const QString p("ClientSimulation"); return p; }
|
static const QString &pathClientSimulation() { static const QString p("ClientSimulation"); return p; }
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
if (m_withMenuFlightPlan && networkContext() && networkContext()->isConnected())
|
if (m_withMenuFlightPlan && networkContext() && networkContext()->isConnected())
|
||||||
{
|
{
|
||||||
menuActions.addAction(CIcons::appFlightPlan16(), "Flight plan", CMenuAction::pathClientNetwork(), { this, &CSimulatedAircraftView::showFlightPlanDialog });
|
menuActions.addAction(CIcons::appFlightPlan16(), "Flight plan", CMenuAction::pathClientFlightPlan(), { this, &CSimulatedAircraftView::showFlightPlanDialog });
|
||||||
}
|
}
|
||||||
if (m_withMenuEnableAircraft)
|
if (m_withMenuEnableAircraft)
|
||||||
{
|
{
|
||||||
@@ -113,7 +113,7 @@ namespace BlackGui
|
|||||||
}
|
}
|
||||||
if (m_withMenuHighlightAndFollow)
|
if (m_withMenuHighlightAndFollow)
|
||||||
{
|
{
|
||||||
menuActions.addAction(CIcons::appAircraft16(), "Follow in simulator", CMenuAction::pathClientSimulationDisplay(), { this, &CSimulatedAircraftView::requestFollowInSimulator });
|
menuActions.addAction(CIcons::appAircraft16(), "Follow in simulator", CMenuAction::pathClientFollowInSim(), { this, &CSimulatedAircraftView::requestFollowInSimulator });
|
||||||
if (!menuActions.isEmpty()) { menuActions.addSeparator(CMenuAction::pathClientSimulationDisplay()); }
|
if (!menuActions.isEmpty()) { menuActions.addSeparator(CMenuAction::pathClientSimulationDisplay()); }
|
||||||
if (aircraft.isPartsSynchronized())
|
if (aircraft.isPartsSynchronized())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user