Files
AyuGramDesktop/Telegram/SourceFiles/menu/menu_timecode_action.h
T

32 lines
644 B
C++

/*
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
#include "base/basic_types.h"
class QAction;
namespace Ui {
class InputField;
class PopupMenu;
} // namespace Ui
namespace Menu {
void InsertTextAtCursor(
not_null<Ui::InputField*> field,
const QString &text);
not_null<QAction*> AddTimecodeAction(
not_null<Ui::PopupMenu*> menu,
const QString &timecode,
rpl::producer<QString> updates,
Fn<void()> callback);
} // namespace Menu