From kde-commits Sun Apr 07 23:03:50 2002 From: Martijn Klingens Date: Sun, 07 Apr 2002 23:03:50 +0000 To: kde-commits Subject: kdenonbeta/kopete/kopete/library/ui X-MARC-Message: https://marc.info/?l=kde-commits&m=101822078224886 kdenonbeta/kopete/kopete/library/ui kopetechatwindow.cpp,NONE,1.1 kopetechatwindow.h,NONE,1.1 Makefile.am,1.26,1.27 Author: mklingens Mon Apr 8 01:03:50 CEST 2002 In directory office:/tmp/cvs-serv17739 Modified Files: Makefile.am Added Files: kopetechatwindow.cpp kopetechatwindow.h Log Message: Committing the KopetChatWindow class. It is now a class that seems to look ok, but most of the functions are not properly filled in yet. Therefore none of the plugins uses it yet. Ryan, if you have time to port ICQ and add the missing parts in the API, that would be more than welcome :-) To see what the dialog looks like, apply below patch. It will show the new dialog next to the old one, just for testing. For real-world use this patch is worthless. It probably even leaks the dialog... I wonder how much stuff is missing in here. Let's hope it is not _too_ much. Index: kopetewindow.cpp =================================================================== RCS file: /home/kde/kdenonbeta/kopete/kopete/library/ui/kopetewindow.cpp,v retrieving revision 1.23 diff -u -p -r1.23 kopetewindow.cpp --- kopetewindow.cpp 2002/04/07 21:50:20 1.23 +++ kopetewindow.cpp 2002/04/07 23:00:02 @@ -31,6 +31,8 @@ #include #include +#include "kopetechatwindow.h" + KopeteWindow::KopeteWindow(QWidget *parent, const char *name ): KMainWindow(parent,name) { kdDebug() << "[KopeteWindow] KopeteWindow()" << endl; @@ -216,7 +218,10 @@ void KopeteWindow::slotExecuted( QListVi { KopeteContact *contact = dynamic_cast(item); if ( contact ) + { + ( new KopeteChatWindow( contact, contact, 0L, "chatWin" ) )->show(); contact->execute(); + } } // vim: set noet sw=4 ts=4 sts=4: