1 /******************************************************************************\
2  * Copyright (c) 2004-2020
3  *
4  * Author(s):
5  *  Volker Fischer
6  *
7  ******************************************************************************
8  *
9  * This program is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License as published by the Free Software
11  * Foundation; either version 2 of the License, or (at your option) any later
12  * version.
13  *
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU General Public License along with
20  * this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
22  *
23 \******************************************************************************/
24 
25 #pragma once
26 
27 #include <QLabel>
28 #include <QString>
29 #include <QLineEdit>
30 #include <QPushButton>
31 #include <QMenuBar>
32 #include <QWhatsThis>
33 #include <QLayout>
34 #include <QAccessible>
35 #include <QDesktopServices>
36 #include <QMessageBox>
37 #include "global.h"
38 #include "util.h"
39 #include "ui_chatdlgbase.h"
40 
41 /* Classes ********************************************************************/
42 class CChatDlg : public CBaseDlg, private Ui_CChatDlgBase
43 {
44     Q_OBJECT
45 
46 public:
47     CChatDlg ( QWidget* parent = nullptr );
48 
49     void AddChatText ( QString strChatText );
50 
51 public slots:
52     void OnSendText();
53     void OnLocalInputTextTextChanged ( const QString& strNewText );
54     void OnClearChatHistory();
55     void OnAnchorClicked ( const QUrl& Url );
56 
57 signals:
58     void NewLocalInputText ( QString strNewText );
59 };
60