@ -151,6 +151,8 @@ KateMainWindow::KateMainWindow (TDEConfig *sconfig, const TQString &sgroup)
m_dcop = new KateMainWindowDCOPIface ( this ) ;
m_mainWindow - > installEventFilter ( this ) ;
// setup the most important widgets
setupMainWindow ( ) ;
@ -213,6 +215,7 @@ void KateMainWindow::setupMainWindow ()
KateMDI : : ToolView * ft = createToolView ( " kate_filelist " , KMultiTabBar : : Left , SmallIcon ( " application-vnd.tde.tdemultiple " ) , i18n ( " Documents " ) ) ;
filelist = new KateFileList ( this , m_viewManager , ft , " filelist " ) ;
filelist - > readConfig ( KateApp : : self ( ) - > config ( ) , " Filelist " ) ;
filelist - > viewport ( ) - > installEventFilter ( this ) ;
KateMDI : : ToolView * t = createToolView ( " kate_fileselector " , KMultiTabBar : : Left , SmallIcon ( " document-open " ) , i18n ( " Filesystem Browser " ) ) ;
fileselector = new KateFileSelector ( this , m_viewManager , t , " operator " ) ;
@ -888,6 +891,24 @@ void KateMainWindow::readProperties(TDEConfig *config)
config - > setGroup ( grp ) ;
}
bool KateMainWindow : : eventFilter ( TQObject * obj , TQEvent * ev )
{
if ( ev - > type ( ) = = TQEvent : : MouseButtonRelease )
{
TQMouseEvent * mouseEvent = static_cast < TQMouseEvent * > ( ev ) ;
switch ( mouseEvent - > button ( ) )
{
case TQMouseEvent : : HistoryBackButton :
filelist - > slotPrevDocument ( ) ;
return true ;
case TQMouseEvent : : HistoryForwardButton :
filelist - > slotNextDocument ( ) ;
return true ;
}
}
return false ;
}
//-------------------------------------------
void KateMainWindow : : slotSelectionChanged ( )
{