Lines 442-481
void KHTMLPopupGUIClient::slotSaveImageA
Link Here
|
442 |
saveURL( d->m_khtml->widget(), i18n( "Save Image As" ), d->m_imageURL, metaData ); |
442 |
saveURL( d->m_khtml->widget(), i18n( "Save Image As" ), d->m_imageURL, metaData ); |
443 |
} |
443 |
} |
444 |
|
444 |
|
445 |
void KHTMLPopupGUIClient::slotCopyLinkLocation() |
445 |
void KHTMLPopupGUIClient::slotCopyLinkLocation() |
446 |
{ |
446 |
{ |
|
|
447 |
KURL safeURL(d->m_url); |
448 |
safeURL.setPass(QString::null); |
447 |
#ifndef QT_NO_MIMECLIPBOARD |
449 |
#ifndef QT_NO_MIMECLIPBOARD |
448 |
// Set it in both the mouse selection and in the clipboard |
450 |
// Set it in both the mouse selection and in the clipboard |
449 |
KURL::List lst; |
451 |
KURL::List lst; |
450 |
lst.append( d->m_url ); |
452 |
lst.append( safeURL ); |
451 |
QApplication::clipboard()->setSelectionMode(true); |
453 |
QApplication::clipboard()->setSelectionMode(true); |
452 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
454 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
453 |
QApplication::clipboard()->setSelectionMode(false); |
455 |
QApplication::clipboard()->setSelectionMode(false); |
454 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
456 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
455 |
#else |
457 |
#else |
456 |
QApplication::clipboard()->setText( d->m_url.url() ); //FIXME(E): Handle multiple entries |
458 |
QApplication::clipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries |
457 |
#endif |
459 |
#endif |
458 |
} |
460 |
} |
459 |
|
461 |
|
460 |
void KHTMLPopupGUIClient::slotStopAnimations() |
462 |
void KHTMLPopupGUIClient::slotStopAnimations() |
461 |
{ |
463 |
{ |
462 |
d->m_khtml->stopAnimations(); |
464 |
d->m_khtml->stopAnimations(); |
463 |
} |
465 |
} |
464 |
|
466 |
|
465 |
void KHTMLPopupGUIClient::slotCopyImageLocation() |
467 |
void KHTMLPopupGUIClient::slotCopyImageLocation() |
466 |
{ |
468 |
{ |
|
|
469 |
KURL safeURL(d->m_imageURL); |
470 |
safeURL.setPass(QString::null); |
467 |
#ifndef QT_NO_MIMECLIPBOARD |
471 |
#ifndef QT_NO_MIMECLIPBOARD |
468 |
// Set it in both the mouse selection and in the clipboard |
472 |
// Set it in both the mouse selection and in the clipboard |
469 |
KURL::List lst; |
473 |
KURL::List lst; |
470 |
lst.append( d->m_imageURL); |
474 |
lst.append( safeURL ); |
471 |
QApplication::clipboard()->setSelectionMode(true); |
475 |
QApplication::clipboard()->setSelectionMode(true); |
472 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
476 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
473 |
QApplication::clipboard()->setSelectionMode(false); |
477 |
QApplication::clipboard()->setSelectionMode(false); |
474 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
478 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
475 |
#else |
479 |
#else |
476 |
QApplication::clipboard()->setText(d->m_imageURL.url()); //FIXME(E): Handle multiple entries |
480 |
QApplication::clipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries |
477 |
#endif |
481 |
#endif |
478 |
} |
482 |
} |
479 |
|
483 |
|
480 |
void KHTMLPopupGUIClient::slotViewImage() |
484 |
void KHTMLPopupGUIClient::slotViewImage() |
481 |
{ |
485 |
{ |