mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-30 21:13:58 +02:00
41 lines
922 B
C++
41 lines
922 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 "core/file_utilities.h"
|
|
|
|
namespace Platform {
|
|
namespace internal {
|
|
|
|
class GtkIntegration {
|
|
public:
|
|
static GtkIntegration *Instance();
|
|
|
|
void load();
|
|
|
|
[[nodiscard]] std::optional<int> scaleFactor() const;
|
|
|
|
[[nodiscard]] std::optional<bool> getFileDialog(
|
|
QPointer<QWidget> parent,
|
|
QStringList &files,
|
|
QByteArray &remoteContent,
|
|
const QString &caption,
|
|
const QString &filter,
|
|
::FileDialog::internal::Type type,
|
|
QString startFile) const;
|
|
|
|
[[nodiscard]] bool showOpenWithDialog(const QString &filepath) const;
|
|
|
|
[[nodiscard]] QImage getImageFromClipboard() const;
|
|
|
|
private:
|
|
GtkIntegration();
|
|
};
|
|
|
|
} // namespace internal
|
|
} // namespace Platform
|