mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-02 03:40:10 -05:00

- added new notifier to p3ChatService GUI: - list all public and private chat lobbies - added subscribe/unsubscribe - added new basic widget ChatTabWidget and use it in PopupChatWindow and ChatLobbyDialog - added a tabbed dialog for every subscribed chat lobby git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4782 b45a01b8-16f6-495d-af2f-9b41ad6348cc
39 lines
715 B
C++
39 lines
715 B
C++
#ifndef CHATTABWIDGET_H
|
|
#define CHATTABWIDGET_H
|
|
|
|
#include <QTabWidget>
|
|
|
|
namespace Ui {
|
|
class ChatTabWidget;
|
|
}
|
|
|
|
class PopupChatDialog;
|
|
|
|
class ChatTabWidget : public QTabWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ChatTabWidget(QWidget *parent = 0);
|
|
~ChatTabWidget();
|
|
|
|
void addDialog(PopupChatDialog *dialog);
|
|
void removeDialog(PopupChatDialog *dialog);
|
|
|
|
void getInfo(bool &isTyping, bool &hasNewMessage, QIcon *icon);
|
|
|
|
signals:
|
|
void tabChanged(PopupChatDialog *dialog);
|
|
void infoChanged();
|
|
|
|
private slots:
|
|
void tabClose(int tab);
|
|
void tabChanged(int tab);
|
|
void tabInfoChanged(PopupChatDialog *dialog);
|
|
|
|
private:
|
|
Ui::ChatTabWidget *ui;
|
|
};
|
|
|
|
#endif // CHATTABWIDGET_H
|