diff options
Diffstat (limited to 'doc/html/fileiconview-example.html')
-rw-r--r-- | doc/html/fileiconview-example.html | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html index 2116877b9..efb5f37b9 100644 --- a/doc/html/fileiconview-example.html +++ b/doc/html/fileiconview-example.html @@ -80,7 +80,7 @@ public: const char* format( int i ) const; <a href="qbytearray.html">TQByteArray</a> encodedData( const char* mime ) const; - static bool canDecode( <a href="qmimesource.html">TQMimeSource</a>* e ); + static bool canDecode( <a href="tqmimesource.html">TQMimeSource</a>* e ); void append( const <a href="tqicondragitem.html">TQIconDragItem</a> &item, const <a href="ntqrect.html">TQRect</a> &pr, const <a href="ntqrect.html">TQRect</a> &tr, const <a href="tqstring.html">TQString</a> &url ); private: @@ -127,7 +127,7 @@ signals: protected slots: void itemDoubleClicked( <a href="tqiconviewitem.html">TQIconViewItem</a> *i ); - void slotDropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ); + void slotDropped( <a href="tqdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ); void viewLarge(); void viewSmall(); @@ -186,7 +186,7 @@ public: { return itemType; } <a href="tqstring.html">TQString</a> filename() const { return itemFileName; } - virtual bool acceptDrop( const <a href="qmimesource.html">TQMimeSource</a> *e ) const; + virtual bool acceptDrop( const <a href="tqmimesource.html">TQMimeSource</a> *e ) const; virtual void setText( const <a href="tqstring.html">TQString</a> &text ); virtual TQPixmap *pixmap() const; @@ -198,7 +198,7 @@ public: void paintItem( <a href="ntqpainter.html">TQPainter</a> *p, const <a href="qcolorgroup.html">TQColorGroup</a> &cg ); protected: - virtual void dropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ); + virtual void dropped( <a href="tqdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ); <a href="tqstring.html">TQString</a> itemFileName; <a href="ntqfileinfo.html">TQFileInfo</a> *itemFileInfo; @@ -229,9 +229,9 @@ protected: #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <<a href="tqstringlist-h.html">tqstringlist.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> -#include <<a href="qmime-h.html">ntqmime.h</a>> +#include <<a href="tqmime-h.html">tqmime.h</a>> #include <<a href="tqstrlist-h.html">tqstrlist.h</a>> -#include <<a href="qdragobject-h.html">ntqdragobject.h</a>> +#include <<a href="tqdragobject-h.html">tqdragobject.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="qevent-h.html">ntqevent.h</a>> #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> @@ -474,7 +474,7 @@ static void cleanup() { } -<a name="x832"></a>const char* TQtFileIconDrag::<a href="qmimesource.html#format">format</a>( int i ) const +<a name="x832"></a>const char* TQtFileIconDrag::<a href="tqmimesource.html#format">format</a>( int i ) const { if ( i == 0 ) return "application/x-qiconlist"; @@ -497,10 +497,10 @@ static void cleanup() return a; } -<a name="x830"></a>bool TQtFileIconDrag::<a href="tqicondrag.html#canDecode">canDecode</a>( <a href="qmimesource.html">TQMimeSource</a>* e ) +<a name="x830"></a>bool TQtFileIconDrag::<a href="tqicondrag.html#canDecode">canDecode</a>( <a href="tqmimesource.html">TQMimeSource</a>* e ) { -<a name="x819"></a> return e-><a href="qdropevent.html#provides">provides</a>( "application/x-qiconlist" ) || - e-><a href="qdropevent.html#provides">provides</a>( "text/uri-list" ); +<a name="x819"></a> return e-><a href="tqdropevent.html#provides">provides</a>( "application/x-qiconlist" ) || + e-><a href="tqdropevent.html#provides">provides</a>( "text/uri-list" ); } <a name="x829"></a>void TQtFileIconDrag::<a href="tqicondrag.html#append">append</a>( const <a href="tqicondragitem.html">TQIconDragItem</a> &item, const <a href="ntqrect.html">TQRect</a> &pr, @@ -514,7 +514,7 @@ static void cleanup() <a name="x810"></a> ourUrl = dir.<a href="ntqdir.html#absPath">absPath</a>(); } #endif - urls << TQUriDrag::<a href="quridrag.html#localFileToUri">localFileToUri</a>(ourUrl); + urls << TQUriDrag::<a href="tquridrag.html#localFileToUri">localFileToUri</a>(ourUrl); } /***************************************************************************** @@ -622,29 +622,29 @@ TQtFileIconViewItem::~TQtFileIconViewItem() } } -<a name="x836"></a>bool TQtFileIconViewItem::<a href="tqiconviewitem.html#acceptDrop">acceptDrop</a>( const <a href="qmimesource.html">TQMimeSource</a> *e ) const +<a name="x836"></a>bool TQtFileIconViewItem::<a href="tqiconviewitem.html#acceptDrop">acceptDrop</a>( const <a href="tqmimesource.html">TQMimeSource</a> *e ) const { - if ( type() == Dir && e-><a href="qdropevent.html#provides">provides</a>( "text/uri-list" ) && + if ( type() == Dir && e-><a href="tqdropevent.html#provides">provides</a>( "text/uri-list" ) && dropEnabled() ) return TRUE; return FALSE; } -<a name="x839"></a>void TQtFileIconViewItem::<a href="tqiconviewitem.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ) +<a name="x839"></a>void TQtFileIconViewItem::<a href="tqiconviewitem.html#dropped">dropped</a>( <a href="tqdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ) { timer.stop(); if ( !TQUriDrag::canDecode( e ) ) { -<a name="x818"></a> e-><a href="qdropevent.html#ignore">ignore</a>(); +<a name="x818"></a> e-><a href="tqdropevent.html#ignore">ignore</a>(); return; } <a href="tqstringlist.html">TQStringList</a> lst; -<a name="x873"></a> TQUriDrag::<a href="quridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst ); +<a name="x873"></a> TQUriDrag::<a href="tquridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst ); <a href="tqstring.html">TQString</a> str; -<a name="x817"></a> if ( e-><a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ) +<a name="x817"></a> if ( e-><a href="tqdropevent.html#action">action</a>() == TQDropEvent::Copy ) str = "Copy\n\n"; else str = "Move\n\n"; @@ -654,10 +654,10 @@ TQtFileIconViewItem::~TQtFileIconViewItem() "To\n\n" " %1" ).arg( filename() ); -<a name="x859"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( iconView(), e-><a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" ); - if ( e-><a href="qdropevent.html#action">action</a>() == TQDropEvent::Move ) +<a name="x859"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( iconView(), e-><a href="tqdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" ); + if ( e-><a href="tqdropevent.html#action">action</a>() == TQDropEvent::Move ) TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( iconView(), "Remove" , str, "Not Implemented" ); -<a name="x816"></a> e-><a href="qdropevent.html#acceptAction">acceptAction</a>(); +<a name="x816"></a> e-><a href="tqdropevent.html#acceptAction">acceptAction</a>(); } <a name="x837"></a>void TQtFileIconViewItem::<a href="tqiconviewitem.html#dragEntered">dragEntered</a>() @@ -720,8 +720,8 @@ TQtFileIconViewItem::~TQtFileIconViewItem() this, TQ_SLOT( itemDoubleClicked( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ) ); <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#returnPressed">returnPressed</a>( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ), this, TQ_SLOT( itemDoubleClicked( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ) ); - <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#dropped">dropped</a>( <a href="qdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ) ), - this, TQ_SLOT( slotDropped( <a href="qdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ) ) ); + <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#dropped">dropped</a>( <a href="tqdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ) ), + this, TQ_SLOT( slotDropped( <a href="tqdropevent.html">TQDropEvent</a> *, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ) ) ); <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL( <a href="tqiconview.html#contextMenuRequested">contextMenuRequested</a>( <a href="tqiconviewitem.html">TQIconViewItem</a> *, const <a href="ntqpoint.html">TQPoint</a> & ) ), this, TQ_SLOT( slotRightPressed( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ) ); @@ -879,7 +879,7 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="tqiconviewi <a name="x809"></a> <a href="ntqpoint.html">TQPoint</a> orig = <a href="ntqscrollview.html#viewportToContents">viewportToContents</a>( <a href="ntqscrollview.html#viewport">viewport</a>()->mapFromGlobal( TQCursor::<a href="ntqcursor.html#pos">pos</a>() ) ); TQtFileIconDrag *drag = new TQtFileIconDrag( <a href="ntqscrollview.html#viewport">viewport</a>() ); -<a name="x815"></a> drag-><a href="ntqdragobject.html#setPixmap">setPixmap</a>( *currentItem()->pixmap(), +<a name="x815"></a> drag-><a href="tqdragobject.html#setPixmap">setPixmap</a>( *currentItem()->pixmap(), TQPoint( <a href="tqiconview.html#currentItem">currentItem</a>()->pixmapRect().width() / 2, currentItem()->pixmapRect().height() / 2 ) ); for ( TQtFileIconViewItem *item = (TQtFileIconViewItem*)<a href="tqiconview.html#firstItem">firstItem</a>(); item; <a name="x841"></a> item = (TQtFileIconViewItem*)item-><a href="tqiconviewitem.html#nextItem">nextItem</a>() ) { @@ -909,20 +909,20 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="tqiconviewi TQIconView::<a href="tqwidget.html#keyPressEvent">keyPressEvent</a>( e ); } -void <a name="f309"></a>TQtFileIconView::slotDropped( <a href="qdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ) +void <a name="f309"></a>TQtFileIconView::slotDropped( <a href="tqdropevent.html">TQDropEvent</a> *e, const <a href="tqvaluelist.html">TQValueList</a><TQIconDragItem> & ) { if ( openItem ) openItem->timer.stop(); if ( !TQUriDrag::canDecode( e ) ) { - e-><a href="qdropevent.html#ignore">ignore</a>(); + e-><a href="tqdropevent.html#ignore">ignore</a>(); return; } <a href="tqstringlist.html">TQStringList</a> lst; - TQUriDrag::<a href="quridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst ); + TQUriDrag::<a href="tquridrag.html#decodeLocalFiles">decodeLocalFiles</a>( e, lst ); <a href="tqstring.html">TQString</a> str; - if ( e-><a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ) + if ( e-><a href="tqdropevent.html#action">action</a>() == TQDropEvent::Copy ) str = "Copy\n\n"; else str = "Move\n\n"; @@ -932,10 +932,10 @@ void <a name="f309"></a>TQtFileIconView::slotDropped( <a href="qdropevent.html"> "To\n\n" " %1" ).arg( viewDir.absPath() ); - TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, e-><a href="qdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" ); - if ( e-><a href="qdropevent.html#action">action</a>() == TQDropEvent::Move ) + TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, e-><a href="tqdropevent.html#action">action</a>() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" ); + if ( e-><a href="tqdropevent.html#action">action</a>() == TQDropEvent::Move ) <a name="x872"></a> TQMessageBox::<a href="ntqmessagebox.html#information">information</a>( this, "Remove" , TQDir::convertSeparators(lst.<a href="tqstringlist.html#join">join</a>("\n")), "Not Implemented" ); - e-><a href="qdropevent.html#acceptAction">acceptAction</a>(); + e-><a href="tqdropevent.html#acceptAction">acceptAction</a>(); openItem = 0; } |