2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
#include "core_global.h"
|
2013-03-12 16:13:34 +01:00
|
|
|
#include "ioutputpane.h"
|
|
|
|
|
|
2019-03-18 17:58:33 +01:00
|
|
|
#include <QMetaType>
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QObject>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2019-03-16 18:21:37 +01:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QFont;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
namespace Core {
|
|
|
|
|
|
2013-09-05 01:52:17 +02:00
|
|
|
namespace Internal { class MainWindow; }
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
class CORE_EXPORT MessageManager : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2016-06-05 22:22:11 +03:00
|
|
|
static MessageManager *instance();
|
2013-09-05 01:52:17 +02:00
|
|
|
|
2019-03-16 18:21:37 +01:00
|
|
|
static void setFont(const QFont &font);
|
|
|
|
|
static void setWheelZoomEnabled(bool enabled);
|
|
|
|
|
|
2020-12-01 12:50:41 +01:00
|
|
|
static void writeSilently(const QString &message);
|
|
|
|
|
static void writeFlashing(const QString &message);
|
|
|
|
|
static void writeDisrupting(const QString &message);
|
|
|
|
|
|
|
|
|
|
static void writeSilently(const QStringList &messages);
|
|
|
|
|
static void writeFlashing(const QStringList &messages);
|
|
|
|
|
static void writeDisrupting(const QStringList &messages);
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
private:
|
2013-06-25 13:37:21 +02:00
|
|
|
MessageManager();
|
2018-05-07 15:00:03 +02:00
|
|
|
~MessageManager() override;
|
2020-01-30 12:45:10 +01:00
|
|
|
|
2013-09-05 01:52:17 +02:00
|
|
|
static void init();
|
2013-06-25 13:37:21 +02:00
|
|
|
friend class Core::Internal::MainWindow;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Core
|