mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
Add Ability to undock a chat lobby to a window.
This commit is contained in:
parent
27bbd50f1f
commit
b529de29e6
11 changed files with 362 additions and 62 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "ui_ChatLobbyDialog.h"
|
||||
#include "gui/common/RSTreeWidgetItem.h"
|
||||
#include "ChatDialog.h"
|
||||
#include "PopupChatWindow.h"
|
||||
|
||||
Q_DECLARE_METATYPE(RsGxsId)
|
||||
Q_DECLARE_METATYPE(QList<RsGxsId>)
|
||||
|
@ -51,16 +52,20 @@ public:
|
|||
ChatLobbyId id() const { return lobbyId ;}
|
||||
void sortParcipants();
|
||||
|
||||
inline bool isWindowed() const { return dynamic_cast<PopupChatWindow*>(this->window()) != nullptr; }
|
||||
|
||||
public slots:
|
||||
void leaveLobby() ;
|
||||
private slots:
|
||||
void participantsTreeWidgetCustomPopupMenu( QPoint point );
|
||||
void textBrowserAskContextMenu(QMenu* contextMnu, QString anchorForPosition, const QPoint point);
|
||||
void inviteFriends() ;
|
||||
void leaveLobby() ;
|
||||
void filterChanged(const QString &text);
|
||||
void showInPeopleTab();
|
||||
void showInPeopleTab();
|
||||
void toggleWindowed(){setWindowed(!isWindowed());}
|
||||
void setWindowed(bool windowed);
|
||||
|
||||
signals:
|
||||
void lobbyLeave(ChatLobbyId) ;
|
||||
void typingEventReceived(ChatLobbyId) ;
|
||||
void messageReceived(bool incoming, ChatLobbyId lobby_id, QDateTime time, QString senderName, QString msg) ;
|
||||
void peerJoined(ChatLobbyId) ;
|
||||
|
@ -103,9 +108,13 @@ private:
|
|||
|
||||
RSTreeWidgetItemCompareRole *mParticipantCompareRole ;
|
||||
|
||||
QToolButton *inviteFriendsButton ;
|
||||
QToolButton *undockButton ;
|
||||
QToolButton *inviteFriendsButton ;
|
||||
QToolButton *unsubscribeButton ;
|
||||
|
||||
bool mWindowedSetted;
|
||||
PopupChatWindow* mPCWindow;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::ChatLobbyDialog ui;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue