mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
Added "peer is typing" functionality to private chat. This shoudld be extended to additional stuff like "idle", and to public chat. Also the display is the status bar of the chat window could be made nicer, e.g. directly in the msg window. Suppressed ChatDialog class that is not more used
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1164 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ce3db07a63
commit
e144e75ba6
18 changed files with 495 additions and 975 deletions
|
@ -122,7 +122,6 @@ int main(int argc, char *argv[])
|
|||
RsIface *iface = createRsIface(*notify);
|
||||
RsControl *rsServer = createRsControl(*iface, *notify);
|
||||
|
||||
notify->setRsIface(iface);
|
||||
|
||||
/* save to the global variables */
|
||||
rsiface = iface;
|
||||
|
@ -140,14 +139,17 @@ int main(int argc, char *argv[])
|
|||
//skinWindow->setCentralWidget(w);
|
||||
|
||||
/* Attach the Dialogs, to the Notify Class */
|
||||
notify->setNetworkDialog(w->networkDialog);
|
||||
notify->setPeersDialog(w->peersDialog);
|
||||
notify->setDirDialog(w->sharedfilesDialog);
|
||||
notify->setTransfersDialog(w->transfersDialog);
|
||||
notify->setChatDialog(w->chatDialog);
|
||||
notify->setMessagesDialog(w->messagesDialog);
|
||||
notify->setChannelsDialog(w->channelsDialog);
|
||||
notify->setMessengerWindow(w->messengerWindow);
|
||||
// Not needed anymore since the notify class is directly connected by Qt signals/slots to the correct widgets below.
|
||||
//
|
||||
// notify->setRsIface(iface);
|
||||
// notify->setNetworkDialog(w->networkDialog);
|
||||
// notify->setPeersDialog(w->peersDialog);
|
||||
// notify->setDirDialog(w->sharedfilesDialog);
|
||||
// notify->setTransfersDialog(w->transfersDialog);
|
||||
// notify->setChatDialog(w->chatDialog);
|
||||
// notify->setMessagesDialog(w->messagesDialog);
|
||||
// notify->setChannelsDialog(w->channelsDialog);
|
||||
// notify->setMessengerWindow(w->messengerWindow);
|
||||
|
||||
// I'm using a signal to transfer the hashing info to the mainwindow, because Qt schedules signals properly to
|
||||
// avoid clashes between infos from threads.
|
||||
|
@ -167,6 +169,8 @@ int main(int argc, char *argv[])
|
|||
QObject::connect(notify,SIGNAL(messagesChanged()) ,w->messagesDialog ,SLOT(insertMessages() )) ;
|
||||
QObject::connect(notify,SIGNAL(configChanged()) ,w->messagesDialog ,SLOT(displayConfig() )) ;
|
||||
|
||||
QObject::connect(notify,SIGNAL(chatStatusChanged(const QString&,const QString&)),w->peersDialog,SLOT(updatePeerStatusString(const QString&,const QString&)));
|
||||
|
||||
/* only show window, if not startMinimized */
|
||||
if (!startMinimised)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue