2018-09-29 12:18:26 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2022-02-05 15:15:24 +00:00
|
|
|
namespace Shortcuts {
|
|
|
|
enum class Command;
|
|
|
|
} // namespace Shortcuts
|
|
|
|
|
2018-09-29 12:18:26 +00:00
|
|
|
namespace Support {
|
|
|
|
|
|
|
|
enum class SwitchSettings {
|
|
|
|
None,
|
|
|
|
Next,
|
|
|
|
Previous,
|
|
|
|
};
|
|
|
|
|
2022-02-05 15:15:24 +00:00
|
|
|
[[nodiscard]] Qt::KeyboardModifiers SkipSwitchModifiers();
|
|
|
|
[[nodiscard]] bool HandleSwitch(Qt::KeyboardModifiers modifiers);
|
|
|
|
[[nodiscard]] std::optional<Shortcuts::Command> GetSwitchCommand(
|
|
|
|
SwitchSettings value);
|
|
|
|
[[nodiscard]] FnMut<bool()> GetSwitchMethod(SwitchSettings value);
|
2018-09-29 12:18:26 +00:00
|
|
|
|
|
|
|
} // namespace Support
|