mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-19 19:38:57 -04:00
Chat lobby:
- 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
This commit is contained in:
parent
fc949ce5d0
commit
6c626e180f
21 changed files with 934 additions and 420 deletions
38
retroshare-gui/src/gui/chat/ChatTabWidget.h
Normal file
38
retroshare-gui/src/gui/chat/ChatTabWidget.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue