mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 02:49:12 -04:00
37 lines
910 B
C++
37 lines
910 B
C++
// Copyright (C) 2024-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "ChatView/ChatWidget.hpp"
|
|
#include <coreplugin/ioutputpane.h>
|
|
|
|
namespace QodeAssist::Chat {
|
|
|
|
class ChatOutputPane : public Core::IOutputPane
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ChatOutputPane(QObject *parent = nullptr);
|
|
~ChatOutputPane() override;
|
|
|
|
QWidget *outputWidget(QWidget *parent) override;
|
|
QList<QWidget *> toolBarWidgets() const override;
|
|
void clearContents() override;
|
|
void visibilityChanged(bool visible) override;
|
|
void setFocus() override;
|
|
bool hasFocus() const override;
|
|
bool canFocus() const override;
|
|
bool canNavigate() const override;
|
|
bool canNext() const override;
|
|
bool canPrevious() const override;
|
|
void goToNext() override;
|
|
void goToPrev() override;
|
|
|
|
private:
|
|
ChatWidget *m_chatWidget;
|
|
};
|
|
|
|
} // namespace QodeAssist::Chat
|