[KBear-cvs] kbear/kbear/plugins/recentconnections kbearrecentconnectionsplugin.cpp,1.4,1.5 kbearrece
Brought to you by:
kbjorn
|
From: <kb...@us...> - 2003-07-21 18:06:55
|
Update of /cvsroot/kbear/kbear/kbear/plugins/recentconnections
In directory sc8-pr-cvs1:/tmp/cvs-serv1599/kbear/plugins/recentconnections
Modified Files:
kbearrecentconnectionsplugin.cpp
kbearrecentconnectionsplugin.h
Log Message:
Bugfixes and feature improvements
Index: kbearrecentconnectionsplugin.cpp
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/plugins/recentconnections/kbearrecentconnectionsplugin.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** kbearrecentconnectionsplugin.cpp 6 Jul 2003 18:04:34 -0000 1.4
--- kbearrecentconnectionsplugin.cpp 21 Jul 2003 18:06:50 -0000 1.5
***************
*** 11,19 ****
// Qt specific include files
#include <qvbox.h>
- #include <qpopupmenu.h>
//////////////////////////////////////////////////////////////////////
// KDE specific include files
//////////////////////////////////////////////////////////////////////
// System specific include files
#include <klocale.h>
#include <kglobal.h>
--- 11,19 ----
// Qt specific include files
#include <qvbox.h>
//////////////////////////////////////////////////////////////////////
// KDE specific include files
//////////////////////////////////////////////////////////////////////
// System specific include files
+ #include <kpopupmenu.h>
#include <klocale.h>
#include <kglobal.h>
***************
*** 60,64 ****
connect( m_recentAction, SIGNAL( activated( const QString& ) ), this, SLOT(slotOpenRecent( const QString& ) ) );
! connect( core(), SIGNAL( newSite( const SiteInfo&, const SiteInfo& ) ), this, SLOT(slotAddToRecent( const SiteInfo&, const SiteInfo& ) ) );
m_config = KBearRecentConnectionsPluginFactory::instance()->config();
--- 60,66 ----
connect( m_recentAction, SIGNAL( activated( const QString& ) ), this, SLOT(slotOpenRecent( const QString& ) ) );
! connect( m_api->core(), SIGNAL( newSite( const SiteInfo&, const SiteInfo& ) ), this, SLOT(slotAddToRecent( const SiteInfo&, const SiteInfo& ) ) );
! connect( m_api->core(), SIGNAL( systemTrayMenuNeeded( KPopupMenu* ) ),
! this, SLOT( slotSystemTrayMenuNeeded( KPopupMenu* ) ) );
m_config = KBearRecentConnectionsPluginFactory::instance()->config();
***************
*** 87,90 ****
--- 89,97 ----
loadRecent();
+ }
+ //-----------------------------------------------
+ void KBearRecentConnectionsPlugin::slotSystemTrayMenuNeeded( KPopupMenu* menu ) {
+ if( menu )
+ action("open_recent_list")->plug( menu );
}
//-----------------------------------------------
Index: kbearrecentconnectionsplugin.h
===================================================================
RCS file: /cvsroot/kbear/kbear/kbear/plugins/recentconnections/kbearrecentconnectionsplugin.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** kbearrecentconnectionsplugin.h 1 Jul 2003 23:24:19 -0000 1.3
--- kbearrecentconnectionsplugin.h 21 Jul 2003 18:06:51 -0000 1.4
***************
*** 29,32 ****
--- 29,33 ----
class KSelectAction;
class KConfig;
+ class KPopupMenu;
namespace KBear {
***************
*** 52,55 ****
--- 53,57 ----
void slotContextMenu( KListView*, QListViewItem*, const QPoint& );
void slotOpenSelected();
+ void slotSystemTrayMenuNeeded( KPopupMenu* );
private:
void loadRecent();
|