mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T609, encapsulate PTT action/key
This commit is contained in:
26
src/blackmisc/input/actionhotkeydefs.cpp
Normal file
26
src/blackmisc/input/actionhotkeydefs.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
/* 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;
|
||||
}
|
||||
|
||||
const QPixmap &pttHotkeyIcon()
|
||||
{
|
||||
return CIcons::radio16();
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
31
src/blackmisc/input/actionhotkeydefs.h
Normal file
31
src/blackmisc/input/actionhotkeydefs.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKMISC_INPUT_ACTIONHOTKEYDEFS_H
|
||||
#define BLACKMISC_INPUT_ACTIONHOTKEYDEFS_H
|
||||
|
||||
#include "blackmisc/icon.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Input
|
||||
{
|
||||
//! PTT key
|
||||
BLACKMISC_EXPORT const QString &pttHotkeyAction();
|
||||
|
||||
//! PTT key
|
||||
BLACKMISC_EXPORT const QPixmap &pttHotkeyIcon();
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user