mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
The GUI converts icon indexes to QPixmap indexes when needed. This fixes the context unittest that was broken by audio context changes.
84 lines
2.2 KiB
C++
84 lines
2.2 KiB
C++
/* Copyright (C) 2019
|
|
* swift project community / contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
|
* or distributed except according to the terms contained in the LICENSE file.
|
|
*/
|
|
|
|
#include "actionhotkeydefs.h"
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Input
|
|
{
|
|
const QString &pttHotkeyAction()
|
|
{
|
|
static const QString s("/Voice/Activate push-to-talk");
|
|
return s;
|
|
}
|
|
|
|
CIcons::IconIndex pttHotkeyIcon()
|
|
{
|
|
return CIcons::StandardIconRadio16;
|
|
}
|
|
|
|
const QString &pttCom1HotkeyAction()
|
|
{
|
|
static const QString s("/Voice/Activate push-to-talk COM1");
|
|
return s;
|
|
}
|
|
|
|
const QString &pttCom2HotkeyAction()
|
|
{
|
|
static const QString s("/Voice/Activate push-to-talk COM2");
|
|
return s;
|
|
}
|
|
|
|
CIcons::IconIndex audioVolumeDecreaseHotkeyIcon()
|
|
{
|
|
return CIcons::StandardIconVolumeLow16;
|
|
}
|
|
|
|
CIcons::IconIndex audioVolumeIncreaseHotkeyIcon()
|
|
{
|
|
return CIcons::StandardIconVolumeHigh16;
|
|
}
|
|
|
|
const QString &audioVolumeDecreaseHotkeyAction()
|
|
{
|
|
static const QString s("/Audio/Volume decrease");
|
|
return s;
|
|
}
|
|
|
|
const QString &audioVolumeIncreaseHotkeyAction()
|
|
{
|
|
static const QString s("/Audio/Volume increase");
|
|
return s;
|
|
}
|
|
|
|
CIcons::IconIndex toggleXPDRStateHotkeyIcon()
|
|
{
|
|
return CIcons::StandardIconRadio16;
|
|
}
|
|
|
|
CIcons::IconIndex toggleXPDRIdentHotkeyIcon()
|
|
{
|
|
return CIcons::StandardIconRadio16;
|
|
}
|
|
|
|
const QString &toggleXPDRStateHotkeyAction()
|
|
{
|
|
static const QString s("/Own aircraft/Toggle XPDR state");
|
|
return s;
|
|
}
|
|
|
|
const QString &toggleXPDRIdentHotkeyAction()
|
|
{
|
|
static const QString s("/Own aircraft/XPDR ident");
|
|
return s;
|
|
}
|
|
|
|
} // ns
|
|
} // ns
|