2017-05-31 14:33:21 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2015 Albert Vaca <albertvaka@gmail.com>
|
2017-05-31 14:33:21 +01:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2017-05-31 14:33:21 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SENDREPLYDIALOG_H
|
|
|
|
#define SENDREPLYDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QSize>
|
2021-09-22 14:45:58 +01:00
|
|
|
#include <QTextEdit>
|
2017-05-31 14:33:21 +01:00
|
|
|
|
2017-08-03 16:23:12 +01:00
|
|
|
namespace Ui { class SendReplyDialog; }
|
2017-05-31 14:33:21 +01:00
|
|
|
|
|
|
|
class SendReplyDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-09-03 20:39:44 +01:00
|
|
|
explicit SendReplyDialog(const QString& originalMessage, const QString& replyId, const QString& topicName, QWidget* parent = nullptr);
|
2017-08-03 16:23:12 +01:00
|
|
|
~SendReplyDialog() override;
|
2017-09-03 21:00:06 +01:00
|
|
|
|
2017-05-31 14:33:21 +01:00
|
|
|
QSize sizeHint() const override;
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void sendButtonClicked();
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void sendReply(const QString& replyId, const QString& messageBody);
|
|
|
|
|
|
|
|
private:
|
2017-09-03 21:00:06 +01:00
|
|
|
const QString m_replyId;
|
2017-08-03 16:23:12 +01:00
|
|
|
const QScopedPointer<Ui::SendReplyDialog> m_ui;
|
2017-05-31 14:33:21 +01:00
|
|
|
};
|
|
|
|
|
2021-09-22 14:45:58 +01:00
|
|
|
class SendReplyTextEdit : public QTextEdit
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
SendReplyTextEdit(QWidget* parent);
|
|
|
|
|
|
|
|
void keyPressEvent(QKeyEvent* event) override;
|
|
|
|
|
|
|
|
Q_SIGNAL void send();
|
|
|
|
};
|
|
|
|
|
2017-05-31 14:33:21 +01:00
|
|
|
#endif
|