swift
actionhotkeydefs.cpp
1 // SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 namespace swift::misc::input
7 {
8  const QString &pttHotkeyAction()
9  {
10  static const QString s("/Voice/Activate push-to-talk");
11  return s;
12  }
13 
14  CIcons::IconIndex pttHotkeyIcon() { return CIcons::StandardIconRadio16; }
15 
16  CIcons::IconIndex audioVolumeDecreaseHotkeyIcon() { return CIcons::StandardIconVolumeLow16; }
17 
18  CIcons::IconIndex audioVolumeIncreaseHotkeyIcon() { return CIcons::StandardIconVolumeHigh16; }
19 
20  const QString &audioVolumeDecreaseHotkeyAction()
21  {
22  static const QString s("/Audio/Volume decrease");
23  return s;
24  }
25 
26  const QString &audioVolumeIncreaseHotkeyAction()
27  {
28  static const QString s("/Audio/Volume increase");
29  return s;
30  }
31 
32  const QString &audioVolumeDecreaseCom1HotkeyAction()
33  {
34  static const QString s("/Audio/Volume (COM1) decrease");
35  return s;
36  }
37 
38  const QString &audioVolumeIncreaseCom1HotkeyAction()
39  {
40  static const QString s("/Audio/Volume (COM1) increase");
41  return s;
42  }
43 
44  const QString &audioVolumeDecreaseCom2HotkeyAction()
45  {
46  static const QString s("/Audio/Volume (COM2) decrease");
47  return s;
48  }
49 
50  const QString &audioVolumeIncreaseCom2HotkeyAction()
51  {
52  static const QString s("/Audio/Volume (COM2) increase");
53  return s;
54  }
55 
56  CIcons::IconIndex toggleXPDRStateHotkeyIcon() { return CIcons::StandardIconRadio16; }
57 
58  CIcons::IconIndex toggleXPDRIdentHotkeyIcon() { return CIcons::StandardIconRadio16; }
59 
60  const QString &toggleXPDRStateHotkeyAction()
61  {
62  static const QString s("/Own aircraft/Toggle XPDR state");
63  return s;
64  }
65 
66  const QString &toggleXPDRIdentHotkeyAction()
67  {
68  static const QString s("/Own aircraft/XPDR ident");
69  return s;
70  }
71 
72  const QString &radarZoomInHotkeyAction()
73  {
74  static const QString s("/Radar/Zoom in");
75  return s;
76  }
77 
78  CIcons::IconIndex radarZoomInHotkeyIcon() { return CIcons::StandardIconZoomIn16; }
79 
80  const QString &radarZoomOutHotkeyAction()
81  {
82  static const QString s("/Radar/Zoom out");
83  return s;
84  }
85 
86  CIcons::IconIndex radarZoomOutHotkeyIcon() { return CIcons::StandardIconZoomOut16; }
87 
88 } // namespace swift::misc::input
IconIndex
Index for each icon, allows to send them via DBus, efficiently store them, etc.
Definition: icons.h:32