diff options
Diffstat (limited to 'doc/html/fileiconview-example.html')
-rw-r--r-- | doc/html/fileiconview-example.html | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html index bc63cc7bc..a4619fe8d 100644 --- a/doc/html/fileiconview-example.html +++ b/doc/html/fileiconview-example.html @@ -81,7 +81,7 @@ public: const char* format( int i ) const; <a href="tqbytearray.html">TQByteArray</a> encodedData( const char* mime ) const; 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 ); + void append( const <a href="tqicondragitem.html">TQIconDragItem</a> &item, const <a href="tqrect.html">TQRect</a> &pr, const <a href="tqrect.html">TQRect</a> &tr, const <a href="tqstring.html">TQString</a> &url ); private: <a href="tqstringlist.html">TQStringList</a> urls; @@ -155,7 +155,7 @@ protected: <a href="tqdir.html">TQDir</a> viewDir; int newFolderNum; <a href="tqsize.html">TQSize</a> sz; - <a href="ntqpixmap.html">TQPixmap</a> pix; + <a href="tqpixmap.html">TQPixmap</a> pix; ViewMode vm; TQtFileIconViewItem *openItem; @@ -228,7 +228,7 @@ protected: #include "tqfileiconview.h" #include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="tqstringlist-h.html">tqstringlist.h</a>> -#include <<a href="qpixmap-h.html">ntqpixmap.h</a>> +#include <<a href="tqpixmap-h.html">tqpixmap.h</a>> #include <<a href="tqmime-h.html">tqmime.h</a>> #include <<a href="tqstrlist-h.html">tqstrlist.h</a>> #include <<a href="tqdragobject-h.html">tqdragobject.h</a>> @@ -237,7 +237,7 @@ protected: #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="qcursor-h.html">ntqcursor.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> -#include <<a href="qwmatrix-h.html">ntqwmatrix.h</a>> +#include <<a href="tqwmatrix-h.html">tqwmatrix.h</a>> #include <stdlib.h> @@ -503,8 +503,8 @@ static void cleanup() 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, - const <a href="ntqrect.html">TQRect</a> &tr, const <a href="tqstring.html">TQString</a> &url ) +<a name="x829"></a>void TQtFileIconDrag::<a href="tqicondrag.html#append">append</a>( const <a href="tqicondragitem.html">TQIconDragItem</a> &item, const <a href="tqrect.html">TQRect</a> &pr, + const <a href="tqrect.html">TQRect</a> &tr, const <a href="tqstring.html">TQString</a> &url ) { TQIconDrag::<a href="tqicondrag.html#append">append</a>( item, pr, tr ); <a href="tqstring.html">TQString</a> ourUrl = url; @@ -690,24 +690,24 @@ TQtFileIconViewItem::~TQtFileIconViewItem() { if ( !iconFolderLockedLarge ) { <a href="ntqapplication.html#qAddPostRoutine">tqAddPostRoutine</a>( cleanup ); - <a href="ntqwmatrix.html">TQWMatrix</a> m; -<a name="x876"></a> m.<a href="ntqwmatrix.html#scale">scale</a>( 0.6, 0.6 ); - <a href="ntqpixmap.html">TQPixmap</a> iconpix( folder_locked_icon ); - iconFolderLockedLarge = new <a href="ntqpixmap.html">TQPixmap</a>( folder_locked_icon ); -<a name="x863"></a> iconpix = iconpix.<a href="ntqpixmap.html#xForm">xForm</a>( m ); - iconFolderLockedSmall = new <a href="ntqpixmap.html">TQPixmap</a>( iconpix ); + <a href="tqwmatrix.html">TQWMatrix</a> m; +<a name="x876"></a> m.<a href="tqwmatrix.html#scale">scale</a>( 0.6, 0.6 ); + <a href="tqpixmap.html">TQPixmap</a> iconpix( folder_locked_icon ); + iconFolderLockedLarge = new <a href="tqpixmap.html">TQPixmap</a>( folder_locked_icon ); +<a name="x863"></a> iconpix = iconpix.<a href="tqpixmap.html#xForm">xForm</a>( m ); + iconFolderLockedSmall = new <a href="tqpixmap.html">TQPixmap</a>( iconpix ); iconpix = TQPixmap( folder_icon ); - iconFolderLarge = new <a href="ntqpixmap.html">TQPixmap</a>( folder_icon ); - iconpix = iconpix.<a href="ntqpixmap.html#xForm">xForm</a>( m ); - iconFolderSmall = new <a href="ntqpixmap.html">TQPixmap</a>( iconpix ); + iconFolderLarge = new <a href="tqpixmap.html">TQPixmap</a>( folder_icon ); + iconpix = iconpix.<a href="tqpixmap.html#xForm">xForm</a>( m ); + iconFolderSmall = new <a href="tqpixmap.html">TQPixmap</a>( iconpix ); iconpix = TQPixmap( file_icon ); - iconFileLarge = new <a href="ntqpixmap.html">TQPixmap</a>( file_icon ); - iconpix = iconpix.<a href="ntqpixmap.html#xForm">xForm</a>( m ); - iconFileSmall = new <a href="ntqpixmap.html">TQPixmap</a>( iconpix ); + iconFileLarge = new <a href="tqpixmap.html">TQPixmap</a>( file_icon ); + iconpix = iconpix.<a href="tqpixmap.html#xForm">xForm</a>( m ); + iconFileSmall = new <a href="tqpixmap.html">TQPixmap</a>( iconpix ); iconpix = TQPixmap( link_icon ); - iconLinkLarge = new <a href="ntqpixmap.html">TQPixmap</a>( link_icon ); - iconpix = iconpix.<a href="ntqpixmap.html#xForm">xForm</a>( m ); - iconLinkSmall = new <a href="ntqpixmap.html">TQPixmap</a>( iconpix ); + iconLinkLarge = new <a href="tqpixmap.html">TQPixmap</a>( link_icon ); + iconpix = iconpix.<a href="tqpixmap.html#xForm">xForm</a>( m ); + iconLinkSmall = new <a href="tqpixmap.html">TQPixmap</a>( iconpix ); } vm = Large; @@ -722,7 +722,7 @@ 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#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> & ) ), + <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="tqpoint.html">TQPoint</a> & ) ), this, TQ_SLOT( slotRightPressed( <a href="tqiconviewitem.html">TQIconViewItem</a> * ) ) ); <a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>( AlwaysOff ); @@ -877,7 +877,7 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="tqiconviewi if ( !currentItem() ) return 0; -<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>() ) ); +<a name="x809"></a> <a href="tqpoint.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="tqdragobject.html#setPixmap">setPixmap</a>( *currentItem()->pixmap(), TQPoint( <a href="tqiconview.html#currentItem">currentItem</a>()->pixmapRect().width() / 2, currentItem()->pixmapRect().height() / 2 ) ); @@ -887,11 +887,11 @@ void <a name="f308"></a>TQtFileIconView::itemDoubleClicked( <a href="tqiconviewi <a href="tqicondragitem.html">TQIconDragItem</a> id; <a name="x833"></a> id.<a href="tqicondragitem.html#setData">setData</a>( TQCString( item->filename() ) ); drag-><a href="tqicondrag.html#append">append</a>( id, -<a name="x864"></a><a name="x844"></a> TQRect( item-><a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).x() - orig.<a href="ntqpoint.html#x">x</a>(), -<a name="x865"></a> item-><a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).y() - orig.<a href="ntqpoint.html#y">y</a>(), +<a name="x864"></a><a name="x844"></a> TQRect( item-><a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).x() - orig.<a href="tqpoint.html#x">x</a>(), +<a name="x865"></a> item-><a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>( FALSE ).y() - orig.<a href="tqpoint.html#y">y</a>(), item-><a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>().width(), item-><a href="tqiconviewitem.html#pixmapRect">pixmapRect</a>().height() ), -<a name="x852"></a> TQRect( item-><a href="tqiconviewitem.html#textRect">textRect</a>( FALSE ).x() - orig.<a href="ntqpoint.html#x">x</a>(), - item-><a href="tqiconviewitem.html#textRect">textRect</a>( FALSE ).y() - orig.<a href="ntqpoint.html#y">y</a>(), +<a name="x852"></a> TQRect( item-><a href="tqiconviewitem.html#textRect">textRect</a>( FALSE ).x() - orig.<a href="tqpoint.html#x">x</a>(), + item-><a href="tqiconviewitem.html#textRect">textRect</a>( FALSE ).y() - orig.<a href="tqpoint.html#y">y</a>(), item-><a href="tqiconviewitem.html#textRect">textRect</a>().width(), item-><a href="tqiconviewitem.html#textRect">textRect</a>().height() ), TQString( item->filename() ) ); } @@ -1140,7 +1140,7 @@ protected slots: #include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>> #include <<a href="tqtoolbar-h.html">tqtoolbar.h</a>> #include <<a href="qcombobox-h.html">ntqcombobox.h</a>> -#include <<a href="qpixmap-h.html">ntqpixmap.h</a>> +#include <<a href="tqpixmap-h.html">tqpixmap.h</a>> #include <<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>> #include <<a href="tqdir-h.html">tqdir.h</a>> #include <<a href="tqfileinfo-h.html">tqfileinfo.h</a>> @@ -1225,7 +1225,7 @@ void <a name="f325"></a>FileMainWindow::setup() <a name="x895"></a> toolbar-><a href="tqtoolbar.html#addSeparator">addSeparator</a>(); - <a href="ntqpixmap.html">TQPixmap</a> pix; + <a href="tqpixmap.html">TQPixmap</a> pix; pix = TQPixmap( cdtoparent_xpm ); upButton = new <a href="tqtoolbutton.html">TQToolButton</a>( pix, "One directory up", <a href="tqstring.html#TQString-null">TQString::null</a>, |