aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/debugview/debugviewwidget.h
blob: 6df2909aa8cc72210116a676f23bfd4b512bab7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <QWidget>

#include "ui_debugviewwidget.h"

namespace QmlDesigner {

namespace Internal {

class DebugViewWidget : public QWidget
{
    Q_OBJECT
public:
    DebugViewWidget(QWidget *parent = nullptr);

    void addLogMessage(const QString &topic, const QString &message, bool highlight = false);
    void addErrorMessage(const QString &topic, const QString &message);
    void addLogInstanceMessage(const QString &topic, const QString &message, bool highlight = false);
    void setPuppetStatus(const QString &text);

    void setDebugViewEnabled(bool b);

    void enabledCheckBoxToggled(bool b);

private:
    Ui::DebugViewWidget m_ui;
};

} //namespace Internal

} //namespace QmlDesigner