|
|
@ -145,6 +145,8 @@ KDirOperator::KDirOperator(const KURL& _url,
|
|
|
|
setupMenu();
|
|
|
|
setupMenu();
|
|
|
|
|
|
|
|
|
|
|
|
setFocusPolicy(TQWidget::WheelFocus);
|
|
|
|
setFocusPolicy(TQWidget::WheelFocus);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
installEventFilter(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KDirOperator::~KDirOperator()
|
|
|
|
KDirOperator::~KDirOperator()
|
|
|
@ -1046,6 +1048,11 @@ void KDirOperator::connectView(KFileView *view)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
m_fileView = view;
|
|
|
|
m_fileView = view;
|
|
|
|
|
|
|
|
m_fileView->widget()->installEventFilter(this);
|
|
|
|
|
|
|
|
if (m_fileView->widget()->inherits("TQScrollView"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
(static_cast<TQScrollView *>(m_fileView->widget()))->viewport()->installEventFilter(this);
|
|
|
|
|
|
|
|
}
|
|
|
|
m_fileView->setDropOptions(d->dropOptions);
|
|
|
|
m_fileView->setDropOptions(d->dropOptions);
|
|
|
|
viewActionCollection = 0L;
|
|
|
|
viewActionCollection = 0L;
|
|
|
|
KFileViewSignaler *sig = view->signaler();
|
|
|
|
KFileViewSignaler *sig = view->signaler();
|
|
|
@ -1734,6 +1741,24 @@ TQString KDirOperator::viewConfigGroup() const
|
|
|
|
return d->configGroup;
|
|
|
|
return d->configGroup;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool KDirOperator::eventFilter(TQObject *obj, TQEvent *ev)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (ev->type() == TQEvent::MouseButtonRelease)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TQMouseEvent *mouseEv = static_cast<TQMouseEvent *>(ev);
|
|
|
|
|
|
|
|
switch (mouseEv->button())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
case TQMouseEvent::HistoryBackButton:
|
|
|
|
|
|
|
|
back();
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
case TQMouseEvent::HistoryForwardButton:
|
|
|
|
|
|
|
|
forward();
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KDirOperator::virtual_hook( int, void* )
|
|
|
|
void KDirOperator::virtual_hook( int, void* )
|
|
|
|
{ /*BASE::virtual_hook( id, data );*/ }
|
|
|
|
{ /*BASE::virtual_hook( id, data );*/ }
|
|
|
|
|
|
|
|
|
|
|
|